What is the sum of the digits of the sum of all the integers x such that x + 1 2 3 and x + 4 5 6 are both square numbers?
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.
There are, in fact, three more factor pairs: (-1,-333), (-3,-111),(-9,-37), and the order of the numbers in each pair matters (you could for example have a + b = 9 and a − b = 3 7 , giving a = 2 3 , b = − 1 4 ), unless you specify that you are only interested in a , b being nonnegative integers, in which case it is OK to assume that a ≥ b ≥ 0 .
The nonnegative integer pairing ( a , b ) = ( 2 3 , 1 4 ) is associated with four distinct integer pairings ( a , b ) = ( 2 3 , 1 4 ) , ( 2 3 , − 1 4 ) , ( − 2 3 , 1 4 ) , ( − 2 3 , − 1 4 ) , all of which give the same value x = 7 3 . Thus there are twelve integer solutions for a , b , but only three possible values of x .
Problem Loading...
Note Loading...
Set Loading...
See my solution on Squares and sums for a head start!
Let's use the difference of two squares to solve this one.
We can set up two simultaneous equations:
x + 4 5 6 = a 2
x + 1 2 3 = b 2
Subtracting these gives a 2 − b 2 = 3 3 3 , which we can rewrite as ( a + b ) ( a − b ) = 3 3 3
We can quickly find that the only positive factors of 3 3 3 are, in pairs, ( 1 ) ( 3 3 3 ) , ( 3 ) ( 1 1 1 ) and ( 9 ) ( 3 7 )
Note: since both a and b will ultimately be squared, we need only consider positive values, and hence the positive factors.
Now we can write:
CASE 1: a + b = 3 3 3 , a − b = 1 which gives a = 1 6 7 , b = 1 6 6
CASE 2: a + b = 1 1 1 , a − b = 3 which gives a = 5 7 , b = 5 4
CASE 3: a + b = 3 7 , a − b = 9 which gives a = 2 3 , b = 1 4
Substituting these pairs of a and/or b into our two simultaneous equations yields x = 2 7 4 3 3 , 2 7 9 3 , 7 3
Let's check these values:
2 7 4 3 3 + 4 5 6 = 2 7 8 8 9 = 1 6 7 2 , 2 7 4 3 3 + 1 2 3 = 2 7 5 5 6 = 1 6 6 2
2 7 9 3 + 4 5 6 = 3 2 4 9 = 5 7 2 , 2 7 9 3 + 1 2 3 = 2 9 1 6 = 5 4 2
7 3 + 4 5 6 = 5 2 9 = 2 3 2 , 7 3 + 1 2 3 = 1 9 6 = 1 4 2
Summing these values for x gives 3 0 2 9 9 .