I need to create a loop (1 To n) that separates numbers into (digits)^3.
Then, if the sum of the digits^3 = the original number it should print it.
Let's say the number 153.
1^3 + 5^3 + 3^3 = 1 + 125 + 27 = 153. So that number should be printed.
I need to create a loop (1 To n) that separates numbers into (digits)^3.
Then, if the sum of the digits^3 = the original number it should print it.
Let's say the number 153.
1^3 + 5^3 + 3^3 = 1 + 125 + 27 = 153. So that number should be printed.
Last edited by Sam9530130; 11-24-2012 at 02:28 AM.
Hi
How about
ryloPlease Login or Register to view this content.
What are you trying to achieve?
I haven't done a mathematic proof, but it looks to me that there are only 4 numbers, excluding 0 and 1, that meet your condition.
153
370
371
407
This workbook is setup to test from 1 to 100,000
Select from the drop-down in A1 to check the results.
If you need any more information, please feel free to ask.
However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....
Also
اس کی مدد کرتا ہے اگر
شکریہ کہنے کے لئے سٹار کلک کریں
If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks