Delta2
Homework Helper
- 6,002
- 2,628
@Jonathanlikesmath now you are very rigorous but you did it the very hard way, I had in mind something like what @PeroK suggests at post #29.
More specifically, if we write the product as ##n(n+1)(n+2)(n+3)(n+4)## then it will be either ##n\pmod 5=0## in which case we are finished, or one of the cases of ##n\pmod 5=1,n\pmod 5=2,n\pmod 5=3,n\pmod 5=4##. If for example ##n\pmod 5=1## then ##(n+4)\pmod 5=n\pmod 5+4\pmod 5=1+4\pmod 5=5\pmod 5 =0##, hence in this case 5 divides n+4. Similarly we can handle the other cases.
More specifically, if we write the product as ##n(n+1)(n+2)(n+3)(n+4)## then it will be either ##n\pmod 5=0## in which case we are finished, or one of the cases of ##n\pmod 5=1,n\pmod 5=2,n\pmod 5=3,n\pmod 5=4##. If for example ##n\pmod 5=1## then ##(n+4)\pmod 5=n\pmod 5+4\pmod 5=1+4\pmod 5=5\pmod 5 =0##, hence in this case 5 divides n+4. Similarly we can handle the other cases.
Last edited: