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

Home > Numbers
N, N^2, and N^3 (Posted on 2023-10-26) Difficulty: 3 of 5
Find as many positive integers, N, not ending in 0, as you can, such that N^3 contains both N and N^2.

See The Solution Submitted by K Sengupta    
Rating: 5.0000 (1 votes)

Comments: ( Back to comment list | You must be logged in to post comments.)
Some Thoughts computer solution Comment 1 of 1
I found 3 solutions
N   N^2   N^3
1    1        1
5    25      125
25  625     15625

I do not have a proof that there are no other solutions.
--------------
big = 100000000
squares = [str(n*n) for n in range(big+1)]
cubes = [str(n*n*n) for n in range(big+1)]

for n in range(big+1):
    sn = str(n)
    if sn[-1] == '0':
        continue
    if sn in cubes[n] and squares[n] in cubes[n]:
        print(sn,squares[n], cubes[n])

  Posted by Larry on 2023-10-26 11:36:02
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 (12)
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