Squares and Sums I

What is the sum of all the integers x x such that x + 38 x+38 and x + 19 x+19 are both square numbers?


The answer is 62.

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

Katherine Barnes
Jan 18, 2021

Here's an approach to the problem that is a little more rigorous than trial and error:

The key to solving this problem is a familiarity with the concept of the difference of two squares .

Let x + 38 = a 2 x+38=a^2 and let x + 19 = b 2 x+19=b^2 for positive integers a a and b b ( a > b a>b )

So a 2 b 2 = 19 a^2-b^2=19 , which we can rewrite as ( a + b ) ( a b ) = 19 (a+b)(a-b)=19

Considering the positive factors of 19, we have ( 1 ) ( 19 ) (1)(19) only. So now we can set up a pair of simultaneous equations:

a + b = 19 a+b=19

a b = 1 a-b=1

The solutions to these are a = 10 , b = 9 a=10, b=9

Now we can sub one of these values back into one of our original equations involving x x (let's use a a for now, although b b would yield an equally valid solution):

x + 38 = ( 10 ) 2 = 100 x+38=(10)^2=100

x = 62 x=62

And sure enough, 62 + 38 = 100 , 62 + 19 = 81 62+38=100, 62+19=81

Now since there is only one pair of positive factors for 19 (as it is prime), there is only one solution for x x .

62 is the only value for x x which satisfies the conditions so the sum of all the integers x x is simply 62 .

Here's a similar problem to try: Squares and sums II

This is nice.

In general you can say for any prime p, you'll find:

X = (p^2 + 1)/4 - 3/2*p

It gives the same result:x+2p and x+p are both square.

It is very nice.

Kris Hauchecorne - 4 months, 3 weeks ago

Nice solution, but wouldn’t it be possible to also have the equations a+b=1 and a-b=19, since a and b are integers? Not that it yields another x.

Vin Benzin - 4 months, 3 weeks ago

Log in to reply

Thank you! Certainly this is possible, but since it doesn't yield another x (because we're squaring a and b anyway), I thought it wasn't necessary to include. You could also use -1 and -19 since these multiply to make 19, but again we find that x is 62.

Katherine Barnes - 4 months, 3 weeks ago
Zakir Husain
Jan 19, 2021

let x + 38 = a 2 . . . . . . . . . . [ 1 ] x+38=a^2..........[1] and x + 19 = b 2 . . . . . . . . . . [ 2 ] x+19=b^2..........[2] where a , b N a,b \in \mathbb{N}

[ 1 ] [ 2 ] x + 38 x 19 = a 2 b 2 [1]-[2]\Rightarrow \cancel{x}+38-\cancel{x}-19=a^2-b^2 19 = ( a b ) ( a + b ) \Rightarrow 19=(a-b)(a+b)

C a s e 1 Case 1 : a b = 1.......... [ A 1 ] a-b=1..........[A_1] a + b = 19.......... [ B 1 ] a+b=19..........[B_1] [ A 1 ] + [ B 1 ] 2 a = 20 a = 10 [A_1]+[B_1]\Rightarrow 2a=20 \therefore \boxed{a=10} x + 38 = 1 0 2 = 100 x = 62 \therefore x+38=10^2=100\Rightarrow\boxed{x=62}

C a s e 2 Case 2 : a b = 19.......... [ A 2 ] a-b=19..........[A_2] a + b = 1.......... [ B 2 ] a+b=1..........[B_2] [ A 2 ] + [ B 2 ] 2 a = 20 a = 10 [A_2]+[B_2]\Rightarrow 2a=20 \therefore \boxed{a=10} x + 38 = 1 0 2 = 100 x = 62 \therefore x+38=10^2=100\Rightarrow\boxed{x=62}

C a s e 3 Case 3 : a b = 19.......... [ A 3 ] a-b=-19..........[A_3] a + b = 1.......... [ B 3 ] a+b=-1..........[B_3] [ A 3 ] + [ B 3 ] 2 a = 20 a = 10 [A_3]+[B_3]\Rightarrow 2a=-20 \therefore \boxed{a=-10} x + 38 = ( 10 ) 2 = 100 x = 62 \therefore x+38=(-10)^2=100\Rightarrow\boxed{x=62}

Therefore the only possible value of x x is 62 \boxed{\blue{62}}

You forgot a-b=-1, a+b=-19 and vice versa. But, however a^2=100 and b^2=81

Lingga Musroji - 4 months, 3 weeks ago

Log in to reply

Thank you to remind!

Zakir Husain - 4 months, 3 weeks ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...