MHB Whatzit? Number Fun - 144 / (1 + 4 + 4) = 1*4*4

  • Thread starter Thread starter Wilmer
  • Start date Start date
  • Tags Tags
    Fun
AI Thread Summary
The discussion centers around a mathematical relationship where a three-digit number can be expressed as the product of its digits multiplied by their sum. The example given is 144, which satisfies the equation 144 / (1 + 4 + 4) = 1 * 4 * 4. A Python code snippet is shared to identify such numbers, revealing that 144 and 135 are the only three-digit numbers that meet this criterion. Attempts to find similar relationships in two-digit and four-digit numbers yielded no results. The conversation highlights the effectiveness of the code in identifying these specific numbers, emphasizing the uniqueness of the findings.
Wilmer
Messages
303
Reaction score
0
144 / (1 + 4 + 4) = 1*4*4

There is another 3digit number that works similarly: whatzit?
 
Physics news on Phys.org
Simple python code found it:
[sp]
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)
It found 144 and 135. Those are the only ones!
[/sp]
 
Yepper!
Your code is exactly like mine; I use UBasic.

Tried with 2digit and 4digit numbers: none.
 
Ackbach said:
Simple python code found it:
[sp]
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)
It found 144 and 135. Those are the only ones!
[/sp]

Erm... range(1,9) = (1,...,8) in python.
It's a good thing there are no numbers with a 9 in it!
 
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!

Oops! How embarrassing.
 
Go stand in the corner for 13.5 minutes :)
 
Similar to the 2024 thread, here I start the 2025 thread. As always it is getting increasingly difficult to predict, so I will make a list based on other article predictions. You can also leave your prediction here. Here are the predictions of 2024 that did not make it: Peter Shor, David Deutsch and all the rest of the quantum computing community (various sources) Pablo Jarrillo Herrero, Allan McDonald and Rafi Bistritzer for magic angle in twisted graphene (various sources) Christoph...
Thread 'My experience as a hostage'
I believe it was the summer of 2001 that I made a trip to Peru for my work. I was a private contractor doing automation engineering and programming for various companies, including Frito Lay. Frito had purchased a snack food plant near Lima, Peru, and sent me down to oversee the upgrades to the systems and the startup. Peru was still suffering the ills of a recent civil war and I knew it was dicey, but the money was too good to pass up. It was a long trip to Lima; about 14 hours of airtime...
Back
Top