Problem:
Let . Find the largest value of the integer such that divides .
Problem:
Let . Find the largest value of the integer such that divides .
Solution:
If is even, then note that and so , i.e., .
On the other hand, if is odd, note that so , i.e., but .
Thus the greatest value of for which divides is if is odd, and if is even.
Summing up over gives us .