Hypotenuse = 512 2 512 \sqrt 2

m 2 + n 2 = 2 19 m^2 + n^2 = 2^{19} Find all ordered pairs of positive integers ( m , n ) (m,n) satisfying the above equation. Then add up all the sums m + n m+n of those pairs.


The answer is 1024.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

2 solutions

Zico Quintina
May 5, 2018

We can use a method similar to infinite descent, though this one only requires a finite number of steps, to show that the only integer solution to the given equation is ( 512 , 512 ) (512,512) .

Note that m m and n n cannot have opposite parity, else m 2 + n 2 m^2+n^2 would be odd. Also, if m m and n n are both odd, then m 2 m^2 and n 2 n^2 are both 1 \equiv 1 mod 4 4 (see note at bottom), so m 2 + n 2 2 m^2 + n^2 \equiv 2 mod 4 4 , but 2 19 0 2^{19} \equiv 0 mod 4 4 . So m m and n n must both be even.

Say m = 2 p m=2p and n = 2 q n=2q for some p < m , q < n p<m, q<n and p , q N p,q \in \mathbb{N} . Then we have

m 2 + n 2 = 2 19 ( 2 p ) 2 + ( 2 q ) 2 = 2 19 4 p 2 + 4 q 2 = 2 19 p 2 + q 2 = 2 17 \begin{aligned} m^2 + n^2 &= 2^{19} \\ (2p)^2 + (2q)^2 &= 2^{19} \\ 4p^2 + 4q^2 &= 2^{19} \\ p^2 + q^2 &= 2^{17} \end{aligned}

We now have essentially the same equation we started with, but with the power of 2 2 decreased by 2. Everything we said about m , n m, n and 2 19 2^{19} still holds for p , q p, q and 2 17 2^{17} , so we can replace p p with 2 s , q 2s, q with 2 t 2t , getting the equation s 2 + t 2 = 2 15 s^2 + t^2 = 2^{15} , and so on.

We can continue this process until we get a power of 2 2 low enough that it is no longer 0 \equiv 0 mod 4 4 , which of course happens when we reach 2 1 2^1 . At that point the only possible solution to the resulting equation is 1 2 + 1 2 = 2 1 1^2 + 1^2 = 2^1 . Then the two variables in the previous cycle, call them x x and y y , would have to be x = 2 1 = 2 x = 2 \cdot 1 = 2 and y = 2 1 = 2 y = 2 \cdot 1 =2 ; the variables in cycle before that one, call them u u and v v , would have to be u = 2 x = 2 2 u = 2x = 2^2 and v = 2 y = 2 2 v = 2y = 2^2 ; and so on, going back up through our chain.

It took nine cycles to reach the end of our chain, so it will take nine steps to go back up; our only solution for ( m , n ) (m,n) is ( 2 9 , 2 9 ) (2^9,2^9) and our answer is 2 9 + 2 9 = 2 10 = 1024 2^9 + 2^9 = 2^{10} = \boxed{1024}

Note: to see that n 1 n \equiv 1 mod 2 n 2 1 2 \implies n^2 \equiv 1 mod 4 4 , let n = 2 k + 1 n = 2k + 1 , then n 2 = 4 k 2 + 4 k + 1 n^2 = 4k^2 + 4k + 1 , and the result follows.

I'm certain an induction proof would be quite straightforward here as well, but given the choice between an induction proof and a non-induction proof, I always prefer the latter.

Giorgos K.
May 5, 2018

using M a t h e m a t i c a Mathematica

PowersRepresentations[2^19,2,2]

returns only one pair: {{512, 512}}

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...