If is a positive integer, how many values of satisfy ?
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 question is basically asking the number of values n for which 1 ! + 2 ! + ⋯ + n ! is a perfect square.
Let's observe :
1 ! = 1 ( which is a perfect square )
1 ! + 2 ! = 3
1 ! + 2 ! + 3 ! = 9 (which is a perfect square)
1 ! + 2 ! + 3 ! + 4 ! = 3 3 ( observe that the last digit is 3)
1 ! + 2 ! + 3 ! + 4 ! + 5 ! = 1 2 0 + 3 3 = 1 5 3 .
Now observe that now for every next term the unit digit would be 3 and we know that a number with unit digit 3 can't be a perfect square. And thus our answer is 2