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

Home > Numbers
Year Yearn 4 (Posted on 2022-12-18) Difficulty: 3 of 5
Determine all possible triplets (x,y,n) of positive integers, with n>1, that satisfy this equation:
                 xn - yn = 2015

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.)
re(2): computer findings | Comment 3 of 5 |
(In reply to re: computer findings by K Sengupta)

clearvars,clc
 for n=3:5
   for y0=1:10000
     y=sym(y0);
     x=(y^n+2015)^sym(1/n);
     if abs(x-round(x))<.0000000000001
       if x^n-y^n==2015
       disp([x y n]);
       end
     end
   end
 end

finds

[14, 9, 3]

14^3 - 9^3 = 2015

Some spurious results follow that, for the fifth power, as the large numbers, even with the extended precision, lead the "close enough" margin to include incorrect results.

Further debugging on the original program shows that while I allowed latitude when determining the solution, I didn't use the integral value in checking the solution.  It should have been

clearvars,clc
 for n=2:5
   for y=1:1000000
 
     x=(y^n+2015)^(1/n);
     if abs(x-round(x))<.0000000000001
       if round(x)^n-y^n==2015
       disp([x y n]);
       end
     end
   end
 end

The tiny, allowable due to rounding error, fractional part of x prevented the match to 2015.

  Posted by Charlie on 2022-12-18 16:35:23
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 (9)
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