Look at the end for a neat short cut

The solution below is based upon the one submitted by Anna of Parkside school. I liked the explanation of how Anna arrrived at the factorisation.

The youngest person to send in a solution was Sairah of Kings Park School, Lurgan and Barinder sent an excellent solution with lots of clear explanation.

Just three of the large number of solutions to this problem. Well done to you all!

If xn = (n+1)2 +(n+2)2 + [(n + 1)(n + 2)]2 then
xn = n2 + 2n + 1 +n2 + 4n + 4 + [n2 + 3n + 2]2

= 2n2 + 6n + 5 + n4 + 3n3 + 2n2 + 3n3 + 9n2 + 6n +2n2 + 6n + 4

=n4 + 6n3 + 15n2 + 18n + 9

If this can be made into a perfect square the perfect square must have n2 as it's highest term to get n4 when you multiply out. The lowest term must be 3 to give 9.

The middle term must be some number of n (an). an×n2 ×2 must give 6n3

As the only parts of the square which can multiply together to give n3 are n and n2. an×n2 ×2 = 6n3, so 2an=6n, so a=3.

So the perfect square must be: (n2+3n+3)2.

To check, this multiplies out to: n4+3n3+3n2+3n3+9n2+9n+3n2+9n+9 = n4+6n3+15n2+18n+9.

(n2+3n+3)2 is a perfect square, and it is the solution for xn.


Now you don't actually need to worry about the n value matching the n of the left hand side . . . .

You just need to establish that (n)2 +(n+1)2 + [n(n + 1)]2 is always a square of something

Can you follow that through, expanding and simplifying until you get : n4 + 2n3 + 3n2 + 2n + 1

I'll leave you to decide what 'square' that is, but you might think of something inspired just from looking at the algebra, or maybe calculate the first line from the problem (it should come to 49) and take it from there .

Look out for this kind of 'simpler version' of the algebra when you are problem solving, it isn't always easy to spot but it can save you some effort when you do notice the possibility.