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

Home > Numbers
Leonard and Fifi (Posted on 2025-04-12) Difficulty: 3 of 5

Leonard Pisano's young daughter, Fifi, was visiting him at work.

Fifi read from a letter on her father's desk. ‘Find a square number which, being increased or diminished by 5, gives a square number. What does that mean?'

'It's John's congruum problem, considered over the rationals,' Leonard replied. 'One solution is 31^2/12^2, 41^2/12^2, and 49^2/12^2, since 49^2/12^2-41^2/12^2=41^2/12^2-31^2=5. It's a neat problem - people will likely still be puzzling over it 800 years from now.'

'And does it just work for a gap of 5?' asked Fifi, 'or other numbers as well?'

'Great question,' said Leonard. 'Solutions for gaps of 6,14,15, and so on are ten a penny. 5 took a little thought, and 7 even more. In principle there should be solutions for 13 and 29, too, but I'm still working on those.'

Can you find a solution with a gap of 7? Can you show that it is minimal?

If so, how about 13 and 29?

No Solution Yet Submitted by broll    
No Rating

Comments: ( Back to comment list | You must be logged in to post comments.)
Solution For a difference of 7 | Comment 1 of 2
clearvars
sqs=[1:1000].^2;
for asub=1:1000
  a=sym(sqs(asub));
  for bsub=1:700
    b=sym(sqs(bsub));
    if a/b>=7
      if gcd(a,b)==1
      t1=a/b+7; t2=a/b-7;
      [n,d]=numden(t1);
      if round(sqrt(n))^2==n
        if round(sqrt(d))^2==d
      [n,d]=numden(t2);
      if round(sqrt(n))^2==n
        if round(sqrt(d))^2==d
          disp([a,b, sqrt(a),sqrt(b), a/b,t1,t2])
        end
      end
        end
      end
    end
    end 
  end
end

For difference of 7, it's 113569/14400:

                 square
                 roots
   num     den  num  den    fraction         + 7           - 7          
[113569, 14400, 337, 120, 113569/14400, 214369/14400, 12769/14400]


463^2 = 214369 and 113^2=12769

  Posted by Charlie on 2025-04-12 12:22:41
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 (5)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On

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