-1

I want to show that if $n$ is a positive integer greater than $3$, then $n^3+(n+1)^3+(n+2)^3$ is divisible by $9$. By expanding the expression and combining the like terms, I get $n^3+(n+1)^3+(n+2)^3=3(n+1)\left[(n+1)^{2}+2\right]$. The factor $3$ is easy to see. I wonder how to get the other factor $3$. Thanks.

YuiTo Cheng
  • 4,705

2 Answers2

1

Alternatively, Newton's interpolation formula gives $$ n^3+(n+1)^3+(n+2)^3 = 9 \binom{n}{0} + 27 \binom{n}{1} + 36 \binom{n}{2} + 18 \binom{n}{3} $$ Yet another way, by induction:

Let $f(n)=n^3+(n+1)^3+(n+2)^3$. Then $f(n+1)-f(n)=(n+3)^3-n^3=9 n^2 + 27 n + 27$. The result follows by induction because $f(0)=9$.

lhf
  • 216,483
1

Integers cubed $\bmod 9$ are $0,1,-1,0,1,-1,0,1,-1$ and that pattern 'loops'. Adding any three consecutive cubes gives $0 \bmod 9$