How can you find a 3-digit number "ABC", such that (ABC)/N = AxBxC ? Here, N=4.

234 Views Asked by At

How can you find a 3-digit number "ABC", such that (ABC)/N = AxBxC ? Here, N=4. Like, if abc/7= axbxc, answer is 735

1

There are 1 best solutions below

7
On BEST ANSWER

I'm not sure if there is a general solution for arbitrary $N$ to your question, but you can write a simple code to check this (for example in python):

N = 4
for a in range(1, 10):
    for b in range(10):
        for c in range(10):
            if 100*a + 10*b + c == N * a * b * c:
                print(100*a + 10*b + c)

Output:

384