Wilmer
- 303
- 0
144 / (1 + 4 + 4) = 1*4*4
There is another 3digit number that works similarly: whatzit?
There is another 3digit number that works similarly: whatzit?
[FONT=Courier New]
for i in range(1,9):
for j in range(1,9):
for k in range(1,9):
if 100*i + 10*j + k == i*j*k*(i + j + k):
print(i,j,k)
Ackbach said:Simple python code found it:
[sp]
It found 144 and 135. Those are the only ones!Code:[FONT=Courier New] for i in range(1,9): for j in range(1,9): for k in range(1,9): if 100*i + 10*j + k == i*j*k*(i + j + k): print(i,j,k)
[/sp]
I like Serena said:Erm... range(1,9) = (1,...,8) in python.
It's a good thing there are no numbers with a 9 in it!