I need to find the remainder ∀n∈N when dividing by 36 of:
n∑i=1(−1)i⋅i!
I should use congruence or the definitions of integer division as that's whave we've seen so far in the course. I don't know where to start. Any suggestions? Thanks!
Answer
Hint:
For n≥6 one has:
n∑i=1(−1)ii!=5∑i=1(−1)ii!+n∑i=6(−1)ii!
Next, notice that for all i≥6 one has i!=1⋅2⋅3⋅4⋅5⋅6⋯(i−1)⋅i
implying that for i≥6 one has 36 divides evenly into i!. What does the right sum contribute to the remainder when divided by 36 then?
From here it should be easy enough to brute force the remainder of the solution.
No comments:
Post a Comment