How many such numbers are there so that 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.
For any arbitrary positive integer a , a 2 ≡ 0 , 1 , 4 m o d 5
And, for n ≥ 5 , n ! ≡ 0 m o d 5
let, p 2 = 1 ! + 2 ! + 3 ! + . . . + n !
Now, for n ≥ 5 , 1 ! + 2 ! + 3 ! + 4 ! + 5 ! + . . . + n ! ≡ 1 ! + 2 ! + 3 ! + 4 ! ≡ 3 m o d 5 ⇒ p 2 ≡ 3 m o d 5
which contradicts the original statement for n ≥ 5 .
Now we are left with only n = { 1 , 2 , 3 , 4 } . Its trivial to find that n = 1 and 3 are the solutions.
∴ the answer is 2