I wanted to prove that 9 divides the cubes of 3 consecutive integers. I represented this as:
For $n \in \mathbb{Z}, 9|n^3 + (n+1)^3 + (n+2)^3$
By the definition of divisibility, if $9|n^3 + (n+1)^3 + (n+2)^3$ then there would exist an integer, let's say m such that $n^3 + (n+1)^3 + (n+2)^3 = 9m$
$$n^3 + (n+1)^3 + (n+2)^3 = 3n^3 + 9n^2 + 15n + 9$$ $$= (9n+9) + (3n^3 +5n)$$ $$= 9(n^2 + 1) + 3(n^3 + 5n)$$ At this point I noticed that if I could prove $3|n^3 + 5n \rightarrow n^3 + 5n = 3q$, for some $q \in \mathbb{Z}$ and I'd have essentially completed the proof.
I proved this by induction, I will omit the trivial base case $n=1$. I assumed that for an arbitrary intger $k$, that $3|k^3 + 5k \rightarrow k^3 + 5k = 3p$ for $p \in \mathbb{Z}$. I sought to prove that for an arbitrary integer $k+1$, that $3|(k+1)^3 + 5(k+1)$.
$$(k+1)^3 +5(k+1) = k^3 + 3k^2 + 8k + 6$$ $$= (k^3 + 5k) + (3k^2 + 6)$$ $$= 3p + 3k^2 + 6$$ $$= 3(p+ k^2 + 2)$$ $$= 3q$$ Where by multiplicative closure of the integers, $q=p+k^2+2$.
So by induction $3|k^3 + 5k \rightarrow k^3+5k = 3q$ where $q$ is some integer.
Now we can finish where we left off.
$$9(n^2+1)+3(k^3+5k)$$ $$= 9(n^2+1) + 3(3q)$$ $$= 9(n^2 + 1 + q)$$
Since $n^2, 1, q \in \mathbb{Z}, n^2 + 1 + q \in \mathbb{Z}$ by additive closure. We denote the integer sum $n^2 + 1 + q$ as $m$ so we now have:
$$n^3 + (n+1)^3 + (n+2)^3 =9m$$ where $m \in \mathbb{Z}$, so I've rearranged the formula to show that the sum of the cubes of 3 consecutive integers is divisible by 9 by the definition of divisibility.
My question is, for most other proofs like this, I've had to use induction before. Am I able to rigorously say that this will hold $\forall n \in \mathbb{Z}$ even though I did not prove it with induction? To me, it would seem the case, just operating off the divisibility definition, but I am not sure if this actually proves that 9 divides that sum for all $n$, or if I just did some algebra that appears, to show that, but wouldn't hold up under scrutiny?
I am sorry if this is considered a "duplicate", I am just not sure if this is an acceptable way to prove the claim, without induction.
It should be fine that you have split out part of it to be proven by induction, while the other part is true algebraically without induction.
Another way to see what Will and John mentioned is that with three consecutive integers, you will always have one of each remainder (divide by 3) from 0, 1, and 2. Say you are given consecutive integers $a$, $b+1$, and $c+2$, where $3|a,b,c$ and $a$, $b$, or $c$ may be equal to one another. You can derive after cubing and expanding the binomials that the sum divides 9, algebraically.