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?
The discussion centers around a mathematical property of three-digit numbers, specifically the equation 144 / (1 + 4 + 4) = 1*4*4, which leads to the discovery of two unique numbers: 144 and 135. Participants utilized Python code to identify these numbers, confirming that they are the only solutions within the specified range. The code iterates through combinations of digits from 1 to 8, validating the equation for three-digit numbers.
PREREQUISITESMathematicians, educators, Python programmers, and enthusiasts interested in number theory and algorithmic problem-solving.
[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!