All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars    
perplexus dot info

Home > Numbers
Some definite results (Posted on 2015-09-17) Difficulty: 3 of 5
Find the possible outcomes of the following algorithm:

1.Take a random positive integer, divisible by three.
2.Consider its base 10 digits.
3.Take the sum of their cubes.
4.Go back to step 2.

Rem: You may limit your research for n<1000.

See The Solution Submitted by Ady TZIDON    
No Rating

Comments: ( Back to comment list | You must be logged in to post comments.)
re: non-analytic solution | Comment 2 of 5 |
(In reply to non-analytic solution by Paul)

don't know enough about ruby to determine where you went wrong with your code.  However, consider 25

2^3+5^3=133
1^3+3^3+3^3=55
5^3+5^3=250
2^3+5^3=133

and thus it will cycle indefinitely and never reach 153 as you proposed.

  Posted by Daniel on 2015-09-18 00:52:10
Please log in:
Login:
Password:
Remember me:
Sign up! | Forgot password


Search:
Search body:
Forums (0)
Newest Problems
Random Problem
FAQ | About This Site
Site Statistics
New Comments (3)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On

Chatterbox:
Copyright © 2002 - 2024 by Animus Pactum Consulting. All rights reserved. Privacy Information