is a positive integer, what is the remainder when is divided by 6?
If
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.
The sum of the first n squares, 1 2 + 2 2 + . . . + n 2 = n ( n + 1 ) ( 2 n + 1 ) / 6 .
If n and ( n + 1 ) are consecutive integers then exactly one of them will be even and divisible by 2. If neither n nor ( n + 1 ) is divisible by 3 then ( n + 2 ) will be. Therefore n ( n + 1 ) ( 2 n + 1 ) is divisible by both 2 and 3.