wu :: forums (http://www.ocf.berkeley.edu/~wwu/cgi-bin/yabb/YaBB.cgi)
riddles >> easy >> Divide two expressions, get perfect square?
(Message started by: K Sengupta on Jul 27th, 2007, 8:06am)

Title: Divide two expressions, get perfect square?
Post by K Sengupta on Jul 27th, 2007, 8:06am
Analytically determine whether there exists any pair of positive integers (x, y) satisfying:
(x2000 – 1)/(x-1) = y2

Title: Re: Divide two expressions, get perfect square?
Post by Eigenray on Jul 31st, 2007, 10:58am
I must be missing the "easy" solution!  First observe:

[hideb]x2000-1 = http://www.ocf.berkeley.edu/~wwu/YaBBImages/symbols/prod.gifhttp://www.ocf.berkeley.edu/~wwu/YaBBImages/symbols/phi.gifn(x),
where the product is over divisors n of 2000, and http://www.ocf.berkeley.edu/~wwu/YaBBImages/symbols/phi.gifn is the n-th cyclotomic polynomial.

Now, for n http://www.ocf.berkeley.edu/~wwu/YaBBImages/symbols/ne.gif m, http://www.ocf.berkeley.edu/~wwu/YaBBImages/symbols/phi.gifn and http://www.ocf.berkeley.edu/~wwu/YaBBImages/symbols/phi.gifm are relatively prime, since they are both irreducible, and therefore 1 is a linear combination of http://www.ocf.berkeley.edu/~wwu/YaBBImages/symbols/phi.gifn and http://www.ocf.berkeley.edu/~wwu/YaBBImages/symbols/phi.gifm, with coefficients in http://www.ocf.berkeley.edu/~wwu/YaBBImages/symbols/bbq.gif[x].  Clearing denominators, we get a relation of the form d = f http://www.ocf.berkeley.edu/~wwu/YaBBImages/symbols/phi.gifn + g http://www.ocf.berkeley.edu/~wwu/YaBBImages/symbols/phi.gifm, where d is an integer, and f,g http://www.ocf.berkeley.edu/~wwu/YaBBImages/symbols/in.gifhttp://www.ocf.berkeley.edu/~wwu/YaBBImages/symbols/bbz.gif[x].  Then for any integer x, gcd(http://www.ocf.berkeley.edu/~wwu/YaBBImages/symbols/phi.gifn(x), http://www.ocf.berkeley.edu/~wwu/YaBBImages/symbols/phi.gifm(x)) must divide d.  For any given n,m, this value d can be found using the Euclidean algorithm, and it turns out that for n,m divisors of 2000, d is either 1,2, or 5.[/hideb]
Here's a [link=http://www.ocf.berkeley.edu/~wwu/cgi-bin/yabb/YaBB.cgi?board=riddles_putnam;action=display;num=1185906352]question[/link] (but this goes beyond easy, I'm sure): find a closed form for d, in terms of n and m.

Anyway, given the above, lets find all integer solutions:[hideb]
Since any two factors http://www.ocf.berkeley.edu/~wwu/YaBBImages/symbols/phi.gifn(x) and http://www.ocf.berkeley.edu/~wwu/YaBBImages/symbols/phi.gifm(x) have a gcd of 1,2, or 5, and the product is a square, it follows that each factor is of the form 2a5b*y2, where a,b are either 0 or 1.  [Note that for n>2, http://www.ocf.berkeley.edu/~wwu/YaBBImages/symbols/phi.gifn(x)>0 for all x, since it has no real root.]

Since http://www.ocf.berkeley.edu/~wwu/YaBBImages/symbols/phi.gif8(x) = x4+1 is never divisible by 5, it is either a square, or twice a square.  But if x4+1=y2, then 1=y2-x4 is the difference of two squares, which happens only for y2=1, x=0.  Aside from this solution, we can conclude therefore that x4+1 is twice a square, and therefore x is odd.

Now observe that http://www.ocf.berkeley.edu/~wwu/YaBBImages/symbols/phi.gif5(x) = 1+x+x2+x3+x4, and http://www.ocf.berkeley.edu/~wwu/YaBBImages/symbols/phi.gif10(x) = http://www.ocf.berkeley.edu/~wwu/YaBBImages/symbols/phi.gif5(-x) are always odd.  Moreover, http://www.ocf.berkeley.edu/~wwu/YaBBImages/symbols/phi.gif5(x) is divisible by 5 iff x=1 mod 5, and 5 | http://www.ocf.berkeley.edu/~wwu/YaBBImages/symbols/phi.gif10(x) iff x=-1 mod 5.  WLOG, then (replacing x with -x if necessary), http://www.ocf.berkeley.edu/~wwu/YaBBImages/symbols/phi.gif5(x) is not divisible by 5.

It follows now that http://www.ocf.berkeley.edu/~wwu/YaBBImages/symbols/phi.gif5(x) must be a square.  But! x is odd, and
(x2+(x-1)/2)2 < x4+x3+x2+x+1 < (x2+(x+1)/2)2,
since the difference on the left is 7x2/4+3x/2+3/4 > 0, and the difference on the right is x2/4 - x/2 - 3/4 > 0 when x < -1, or x > 3.  This leaves only x=-1,1,3 to consider, which is straightforward.[/hideb]

Thus the only integer solutions are (0,http://www.ocf.berkeley.edu/~wwu/YaBBImages/symbols/pm.gif1), and (-1, 0).  Phew!

Title: Re: Divide two expressions, get perfect square?
Post by towr on Jul 31st, 2007, 12:16pm
Can't we do something with (x2000 – 1)/(x-1) = http://www.ocf.berkeley.edu/~wwu/YaBBImages/symbols/sum.gif1999i=0 xi?


[e] If I'm not mistaken xi mod m is periodic with period m or some smaller factor of it. So among other things (x2000 – 1)/(x-1) should be 0 modulo every m that divides 2000. Right? But is that remotely useful... hmm[/e]

Title: Re: Divide two expressions, get perfect square?
Post by Eigenray on Jul 31st, 2007, 3:40pm
I'm not sure what.

If 2000 were odd, say f(x) is a monic polynomial of even degree 2n, we could expand http://www.ocf.berkeley.edu/~wwu/YaBBImages/symbols/surd.giff(x) = g(x) + O(1/x), where g is a polynomial with rational coefficients of degree n.  If f is not a perfect square, then f(x) - g(x)2 = c*xk + O(xk-1), with c http://www.ocf.berkeley.edu/~wwu/YaBBImages/symbols/ne.gif 0, and k < n.

For each congruence class of x mod the LCM of the denominators of g's coefficients, find a rational t, 0 http://www.ocf.berkeley.edu/~wwu/YaBBImages/symbols/le.gif t http://www.ocf.berkeley.edu/~wwu/YaBBImages/symbols/le.gif 1, such that g(x)-t is integer (don't take t=1 if c>0, nor t=0 if c<0).  Then

(g(x)-t)2 < f(x) < (g(x)+1-t)2

for x sufficiently large.  More generally, I guess if f(x) is monic of degree kn, and is not a perfect k-th power, then f(x)=yk has only finitely many solutions, which can be found constructively?  (Sounds right but if so I'm surprised I didn't know that.)

I didn't get anywhere considering (x2000-1)/(x-1) mod m for various m.

Title: Re: Divide two expressions, get perfect square?
Post by K Sengupta on Aug 6th, 2007, 8:05am
A proposed solution is furnished hereunder as follows:

[hide]Substituting (a, b, c) = {x^1000 + 1, x^500 + 1, (x^500 – 1)/(x-1)}

we obtain:

(x^2000 – 1)/(x-1) = abc

Now b and c divide a-2, while c divides b-2.

Accordingly, it follows that the gcd of any two of a, b and c is at most 2.

The product abc is a perfect square if a, b and c are either squares or doubles of squares.
It is clearly observed that neither a nor b can be squares of positive integers.

Accordingly, each of a and b must correspond to twice the square of positive integers.

Therefore, we must have:

4ab = 4*x^1500 + 4*x^1000 + 4*x^500 + 4 must be a perfect square.

However, in that situation:
(2*x^750 + x^250)^2 < 4*x^1500 + 4*x^1000 + 4*x^500 + 4
< (2*x^750 + x^250 + 1)^2

This implies that 4ab is not a perfect square, which leads to a contradiction.

Consequently, the given equation does not admit of positive  integer solutions.[/hide]

Of course, the non negative integer solutions are indeed : (0, +/-1), and (-1, 0) as rightly pointed out by Eigenray.

In conclusion, I personally consider the above solution in terms of  the current post to be much inferior in quality when compared to Eigenray's superior methodology.

Title: Re: Divide two expressions, get perfect square?
Post by Eigenray on Aug 7th, 2007, 6:21am

on 08/06/07 at 08:05:03, K Sengupta wrote:
In conclusion, I personally consider the above solution in terms of  the current post to be much inferior in quality when compared to Eigenray's superior methodology.

???  I don't know why you would say that.  Yours is more elementary and only requires that 2000 = 8n.  Mine only works for 2000 = 40n, where n is a product of powers of 2 and 5.



Powered by YaBB 1 Gold - SP 1.4!
Forum software copyright © 2000-2004 Yet another Bulletin Board