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

Home > Numbers
Add 100 to Cube, Get Square (Posted on 2023-07-13) Difficulty: 3 of 5
Each of x and y is a positive integer.

Determine the minimum value of x+y such that:

       x3 + 100 = y2
What are the next two smallest values of x+y in consonance with the given conditions?

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.)
Solution No Subject | Comment 1 of 2
If there were no requirement for x to be positive, then an additional solution would be:
0^3 = 0
10^2 = 100

-------------
5^3 = 125
15^2 = 225

20^3 = 8000
90^2 = 8100

24^3 = 13824
118^2 = 13924

2660^3   = 18821096000
137190^2 = 18821096100

no further solutions for x up to 100,000,000

------------------
def issquare(n):
    """ Input an integer, Returns True iff it is a perfect square. """
    if round(n**0.5)**2 == n:
        return True
    else:
        return False
    
for x in range(1,100000):
    y = (x**3 + 100)
    if issquare(y):
        print(x,int(y**.5), x**3, y)
        

  Posted by Larry on 2023-07-13 06:48:39
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