Find the largest positive integer n such that 1 + 2 + 3 + ⋯ + n 2 is divisible by 1 + 2 + 3 + ⋯ + n .
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.
Brian, the expression you used for the sum of the first n squares is not correct. That expression is for the sum of the first n cubes. I, too, when I first looked at the problem, thought it was cubes, but a careful look showed that I was wrong. Ed Gray
Log in to reply
The sum of the first n squares never appears in this problem. I'm guessing you're talking about 1 + 2 + 3 + ⋯ + n 2 = k = 1 ∑ n 2 k = 2 n 2 ( n 2 + 1 ) which is the sum of all the positive integers less than or equal to n 2 , not only the squares.
Log in to reply
Brian, you are absolutely correct. Thes old eyes have failed me. Best Regards, Ed
Problem Loading...
Note Loading...
Set Loading...
Note that 1 + 2 + 3 + ⋯ + n 1 + 2 + 3 + ⋯ + n 2 = 2 n ( n + 1 ) 2 n 2 ( n 2 + 1 ) = n + 1 n ( n 2 + 1 ) = n 2 − n + 2 − n + 1 2
It follows that 1 + 2 + 3 + ⋯ + n 2 is divisible by 1 + 2 + 3 + ⋯ + n if and only if 2 is divisible by n + 1 . Under this condition, n is maximized when n + 1 = 2 ⟺ n = 1