Power to Karl!

We are told that the equation 1818 = a 2 + b 2 1818=a^2+b^2 has one and only one integer solution with 0 < a < b 0<a<b . Find a + b a+b without the use of a calculator.

We dedicate this simple problem to the birthday of the great Karl Marx, who was born on May 5, 1818.


The answer is 60.

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.

3 solutions

Josh Banister
May 6, 2015

Firstly. Notice that 1818 = 100 × 18 + 1 × 18 = 101 × 18 1818 = 100 \times 18 + 1 \times 18 = 101 \times 18 . Using the Brahmagupta–Fibonacci identity, 1818 = 101 × 18 = ( 1 0 2 + 1 2 ) ( 3 2 + 3 2 ) = ( 10 × 3 + 1 × 3 ) 2 + ( 10 × 3 1 × 3 ) 2 = 3 3 2 + 2 7 2 1818 = 101 \times 18 \\ = (10^2 + 1^2 )(3^2 + 3^2)\\ =(10 \times 3 + 1 \times 3)^2 + (10 \times 3 - 1 \times 3)^2 \\ = 33^2 + 27^2

A quick bit of arithmetic gives 33 + 27 = 60 33 + 27 = \boxed{60}

Moderator note:

What a pleasant surprise! Superb observation.

Another delightfil solution; thanks! As you know, the identity you use is just the product rule for the modulus of complex numbers: ( a 2 + b 2 ) ( c 2 + d 2 ) = a + b i 2 c + d i 2 (a^2+b^2)(c^2+d^2)=|a+bi|^2|c+di|^2 = a c b d + ( a d + b c ) i 2 = ( a c b d ) 2 + ( a d + b c ) 2 =|ac-bd+(ad+bc)i|^2=(ac-bd)^2+(ad+bc)^2 The systematic way to do these problems is as follows:

Step 1: Find the prime factorization, 1818 = 2 × 3 2 × 101 1818=2\times3^2\times101

Step 2: Write each prime p with an odd power as a sum of two squares, if you can; this is possible if and only if p = 2 p=2 or p 1 ( m o d 4 ) p\equiv1\pmod4 . In our case, 2 = 1 2 + 1 2 2=1^2+1^2 and 101 = 1 0 2 + 1 2 101=10^2+1^2

Step 3: Use the product formula, 202 = 101 × 2 = ( 1 0 2 + 1 2 ) ( 1 2 + 1 2 ) 202=101\times2=(10^2+1^2)(1^2+1^2) = ( 10 1 ) 2 + ( 10 + 1 ) 2 = 9 2 + 1 1 2 =(10-1)^2+(10+1)^2=9^2+11^2 (this is also the formula Curtis used)

Step 4: Incorporate the even powers: 1818 = 9 × 202 = 3 2 ( 1 1 2 + 9 2 ) 1818=9\times202=3^2(11^2+9^2) = ( 3 × 11 ) 2 + ( 3 × 9 ) 2 = 3 3 2 + 2 7 2 . =(3\times11)^2+(3\times9)^2=33^2+27^2.

It's always good to look for shortcuts, of course, as Curtis and Josh did, but it is also good to have a systematic approach to fall back on.

Otto Bretscher - 6 years, 1 month ago

Log in to reply

it also comes from basic algebraic identity : (a^{2} + b^{2} ) (c^{2} + d^{2} ) = a^{2} c^{2} + a^{2} d^{2}
+ b^{2} c^{2} + b^{2} d^{2}
= a^{2} c^{2} + b^{2} d^{2} +2abcd + b^{2} c^{2} + a^{2} d^{2} -2abcd =(ac+bd)^{2} + (bc-ad)^{2}

Ananya Aaniya - 6 years ago

Log in to reply

Yes indeed!

Otto Bretscher - 6 years ago
Curtis Clement
May 5, 2015

To find the solution I noted that: 1818 2 × 3 0 2 1818 \approx 2 \times 30^2 Now from this I supposed what would happen if a was 'y' smaller than 30 and b was 'x' bigger than 30... ( 30 + x ) 2 + ( 30 y ) 2 = 1800 + 60 ( x y ) + ( x 2 + y 2 ) = 1818 (30+x)^2 +(30-y)^2 = 1800 +60(x-y) +(x^2 +y^2) = 1818 18 = 60 ( x y ) + ( x 2 + y 2 ) \implies\ 18 = 60(x-y) +(x^2 +y^2) Now it is clear that x = y \ x = y will produce a nice solution.. 2 x 2 = 18 x = 3 2 7 2 + 3 3 2 = 1818 2x^2 = 18 \implies\ x = 3 \Rightarrow\ 27^2 +33^2 = 1818 a + b = 60 \therefore\ a+b = 60

Nice creative solution! Great birthday present for Comrade Karl ;)

The short version of what you are saying is this: 1818 = 2 × 3 0 2 + 2 × 3 2 = ( 30 + 3 ) 2 + ( 30 3 ) 2 1818=2\times{30^2}+2\times{3^2}=(30+3)^2+(30-3)^2

Otto Bretscher - 6 years, 1 month ago

Log in to reply

Is there an elegant solution if the line "has one and only one integer solution" is not mentioned (without listing out all the perfect squares less than 1818)?

Pi Han Goh - 6 years, 1 month ago

Log in to reply

If there is an elegant solution in this special case, I'm sure you can find it! There is a theorem, of course: A solution is essentially unique (up to sign and order) iff n has at most one prime factor congruent to 1 mod 4.

I just wanted to honour my hero, Karl Marx, at the occasion of his birthday... I am delighted to see that this silly problem has generated some mathematical interest.

Otto Bretscher - 6 years, 1 month ago
Otto Bretscher
May 5, 2015

Nice creative solution! Great birthday present for Comrade Karl ;)

The short version of what you are saying is this: 1818 = 2 × 3 0 2 + 2 × 3 2 = ( 30 + 3 ) 2 + ( 30 3 ) 2 1818=2\times{30^2}+2\times{3^2}=(30+3)^2+(30-3)^2

@Otto Bretscher , we really liked your comment, and have converted it into a solution. If you subscribe to this solution, you will receive notifications about future comments.

Brilliant Mathematics Staff - 6 years, 1 month ago

Log in to reply

It's Curtis' solution, condensed! I had a longer solution in mind, much "mathier", based on the prime factorization of 1818 (the "standard" way to do these kinds of problems).

Otto Bretscher - 6 years, 1 month ago

Log in to reply

Oh great! Can you change your solution to your intended solution? Thank you.

Brilliant Mathematics Staff - 6 years, 1 month ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...