How many positive integer are there such that the expression above is a perfect square?
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 1! and 1!+2!+3! are perfect squares. Then, we will focus on the last digit for n ! .
1 ! ≡ 1 ( m o d 1 0 )
2 ! ≡ 2 ( m o d 1 0 )
3 ! ≡ 6 ( m o d 1 0 )
4 ! ≡ 4 ( m o d 1 0 )
For n ≥ 5 , we have that n ! ≡ 0 ( m o d 1 0 ) . So, 1 ! + 2 ! + 3 ! + 4 ! + . . . + n ! ≡ 3 ( m o d 1 0 ) for n ≥ 5 . Since the last digits of a perfect square are always 0, 1, 4, 5, 6, 9, the expression will not be a perfect square if n ≥ 4 . Thus, answer is 2 ( n = 1 , n = 3 ).