- Thread starter
- #1

- Thread starter Wilmer
- Start date

- Thread starter
- #1

- Admin
- #2

- Jan 26, 2012

- 4,197

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)
[/FONT]
```

- Thread starter
- #3

- Admin
- #4

- Mar 5, 2012

- 8,789

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) [/FONT]`

Erm... range(1,9) = (1,...,8) in python.

It's a good thing there are no numbers with a 9 in it!

It's a good thing there are no numbers with a 9 in it!

- Admin
- #5

- Jan 26, 2012

- 4,197

Oops! How embarrassing.Erm... range(1,9) = (1,...,8) in python.

It's a good thing there are no numbers with a 9 in it!

- Thread starter
- #6