Here's another way to prove this using the Binomial Theorem
Let (30)^99 = (31 - 1)^99
Let (61)^100 = (62 - 1)^100
So we have
[(99C0)(31)^99 - (99C1)(31)^98 + (99C2)(31)^97 + ....+ (99C98)(31) - 1 ]
+
[(100C0)(62)^100 - (100C1)(62)^99 + (100C2)(62)^98 + ..... +(100C98)(62)^2 - (100C99)(62) + 1 ]
And adding these, the last terms cancel, and every other term in both expressions is divisible by 31.....
How come 30^99 + 61^100 is divisible by 31
30≡−1(mod31) and 61≡−1(mod31)(−1)99+(−1)100?≡0(mod31)−1+1≡0(mod31)
Here's another way to prove this using the Binomial Theorem
Let (30)^99 = (31 - 1)^99
Let (61)^100 = (62 - 1)^100
So we have
[(99C0)(31)^99 - (99C1)(31)^98 + (99C2)(31)^97 + ....+ (99C98)(31) - 1 ]
+
[(100C0)(62)^100 - (100C1)(62)^99 + (100C2)(62)^98 + ..... +(100C98)(62)^2 - (100C99)(62) + 1 ]
And adding these, the last terms cancel, and every other term in both expressions is divisible by 31.....