- #1
timetraveller123
- 621
- 45
Homework Statement
determine the number of pairs of integers (a,b) 1≤b<a<200 such that the sum
##
(a+b) + ( a-b) + ab + \frac a b\
##
is the square of an integer
i have the solution to the problem this was the given solution
the given equation is equivalent to
##
\frac {a*(b+1)^2} b\\
##
hence
##
\frac a b = n^2\
##
hence a = bn2 ≤ 200
we must have b≥ 1 and n ≥2 where b and n are integers
thus the number of pairs is given by
##
floor(200/1^2) + floor (200/2^2) ... floor (200/14^2) ## = 112 pairs
this is the given solution i don't quite understand the last part are they using b = 1
i did another method but i am not sure what is wrong someone point the mistake to me thanks it is below
Homework Equations
The Attempt at a Solution
[/B]
the equation can also be written as
##
a( \sqrt b + \frac 1 {\sqrt b})^2 = k^2
##
meaning that a = n2 for some integer n and
##
\sqrt b + \frac 1 {\sqrt b} = l
##
for some integer l defining j = l2
b2 + b (2 - j ) + 1 = 0
taking discriminant it must be more than zero hence
j≤4
hence
l ≤ ±2
only j = 4 gets a real b
hence b = 1 so i got b = 1 is the only value for b is it correct
next
we have 4a = k2
4≤ k2 ≤ 800
the number of squares between the range is definitely not 112 so what am i doing wrong?
Last edited: