wu :: forums (http://www.ocf.berkeley.edu/~wwu/cgi-bin/yabb/YaBB.cgi)
riddles >> hard >> Hypothenuse numbers
(Message started by: JocK on Aug 14th, 2005, 9:26am)

Title: Hypothenuse numbers
Post by JocK on Aug 14th, 2005, 9:26am
For very large N, determine the likelihood that a randomly selected positive integer not exceeding N is a hypothenuse number*.





* a number with a square that is the sum of two nonzero squares




Title: Re: Hypothenuse numbers
Post by Eigenray on Aug 14th, 2005, 3:33pm
If n=2kp1a1...prar q1b1...qsbs, where each pi is 1 mod 4, and each qj is 3 mod 4, then n2 has 4(1+2a1)...(1+2ar) representations as the sum of two squares.  Since we always have the 4 trivial representations n2=02+(+/-n)2=(+/-n)2+02, n is an hypotenuse number iff some ai>0.

Thus, the complement of the set of hypotenuse numbers are those with no prime factor congruent to 1 mod 4.  Let p1,p2,... be an enumeration of these primes.  Then the set Sn of numbers with no prime factor in {p1,...pn} has density Dn=(1-1/p1)...(1-1/pn).
Since [sum] 1/pi diverges (and [sum] 1/pi2 converges), it follows that Dn goes to 0, and so the intersection of all the Sn has density 0.

Thus, as N goes to infinity, the probability that a random n<N is an hypotenuse number goes to 1.  It's probably something like 1 - 1/sqrt(log N), but don't quote me on that.



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