m 2 + n 2 = 2018 m^2+n^2=2018

m 2 + n 2 = 2018 \large m^2+n^2=2018

Let m m and n n be distinct positive integers satisfying the equation above. Find m + n m+n .


The answer is 56.

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.

4 solutions

Chew-Seong Cheong
Apr 24, 2018

Given that m 2 + n 2 = 2018 m^2 + n^2 = 2018 , since the RHS is even, this means that the LHS must also be even. Then either m m and n n are both even or both odd. If both m m and n n are even then the LHS is a multiple of 4, but the RHS is not a multiple of 4, therefore, both m m and n n are odd. Let m = 2 a + 1 m=2a+1 and n = 2 b + 1 n=2b+1 , where a , b N a,b \in \mathbb N . Then we have:

( 2 a + 1 ) 2 + ( 2 b + 1 ) 2 = 2018 4 a 2 + 4 a + 1 + 4 b 2 + 4 b + 1 = 2018 a 2 + a + b 2 + b = 504 a ( a + 1 ) + b ( b + 1 ) = 504 Note that a ( a + 1 ) and b ( b + 1 ) are even, a ( a + 1 ) 2 + b ( b + 1 ) 2 = 252 and a ( a + 1 ) 2 and b ( b + 1 ) 2 are integers, T a + T b = 252 and are triangular numbers T n . \begin{aligned} (2a+1)^2 + (2b+1)^2 & = 2018 \\ 4a^2 + 4a+1 + 4b^2 + 4b+1 & = 2018 \\ \implies a^2 + a + b^2 + b & = 504 \\ {\color{#3D99F6}a(a+1)} + {\color{#3D99F6}b(b+1)} & = 504 & \small \color{#3D99F6} \text{Note that }a(a+1) \text{ and }b(b+1) \text{ are even,} \\ {\color{#3D99F6}\frac {a(a+1)}2} + {\color{#3D99F6}\frac {b(b+1)}2} & = 252 & \small \color{#3D99F6} \text{and }\frac {a(a+1)}2 \text{ and }\frac {b(b+1)}2 \text{ are integers,} \\ {\color{#3D99F6}T_a} + {\color{#3D99F6}T_b} & = 252 & \small \color{#3D99F6} \text{and are triangular numbers }T_n. \end{aligned}

Let a > b a> b . We note that the largest a = 21 a=21 and we find that b = 6 b=6 is a solution, since T 21 + T 6 = 231 + 21 = 252 T_{21}+T_6 = 231 + 21 = 252 . From T 1 T_1 to T 21 T_{21} , there is only T 6 T_6 and T 21 T_{21} satisfy the equation. Therefore, m + n = 2 a + 1 + 2 b + 1 = 2 ( 21 ) + 1 + 2 ( 6 ) + 1 = 56 m + n = 2a+1 + 2b+1 = 2(21)+1+2(6)+1 = \boxed{56} .

Naren Bhandari
Apr 22, 2018

. Here is the same problem

Giorgos K.
Apr 22, 2018

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

PowersRepresentations[2018,2,2]

returns {{13, 43}}

Theodore Sinclair
Apr 22, 2018

4 3 2 + 1 3 2 = 2018 43^{2}+13^{2}=2018

43 + 13 = 56 43+13=56

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...