I have a favourite positive integer X.
When I add all the positive integers from 1 to X, I get a result of YYY, where Y is a positive integer from 0 to 9.
What is X?
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.
Note that Y Y Y = 1 1 1 Y . The sum of all the integers from 1 to X is 2 X ( X + 1 ) . Thus 2 X ( X + 1 ) X 2 + X X 2 + X − 2 2 2 Y X = 1 1 1 Y = 2 2 2 Y = 0 = 2 − 1 ± 1 + 8 8 8 Y
This can only be an integer if 1 + 8 8 8 Y is a perfect square. We know that Y is an integer with 1 ≤ Y ≤ 9 . Thus Y 1 2 3 4 5 6 7 8 9 1 + 8 8 8 Y 8 8 9 1 7 7 7 2 6 6 5 3 5 5 3 4 4 4 1 5 3 2 9 6 2 1 7 7 1 0 5 7 9 9 3 1 + 8 8 8 Y 8 8 9 1 7 7 7 2 6 6 5 3 5 5 3 4 4 4 1 7 3 6 2 1 7 7 1 4 5 7 9 9 3 Thus Y = 6 and X = 2 − 1 ± 7 3 . Taking the positive solution yields X = 2 7 2 = 3 6 .