I've seen a lot of questions about how to develop mathematical intuition, but often I have the opposite problem.
Several times I have run into a situation where I want to solve a math problem, and I play around with it until my intuition reaches the point where I have a good idea of how the complete proof might be structured. But then when it comes to actually write out the proof, I have trouble translating this intuition into a rigorous proof. I want to give the following example, from this PDF of Putnam training problems.
1.13. Prove that for every $n\ge 2$, the expansion of $(1+x+x^2)^n$ contains at least one even coefficient.
When first thinking about this problem, I wanted to look at the polynomials $\pmod{2}$ so that "even coefficient" is simplified to "zero coefficient."
Then from doing a few computations, I notice a pattern.
\begin{align*} (1+x+x^2)^2&=(1+x+x^2)+x(1+x+x^2)+x^2(1+x+x^2)\\ &=1+x+x^2\\ &+x+x^2+x^3\\ &+x^2+x^3+x^4\\ &=1+x^2+x^4 \end{align*}
I notice that multiplying a polynomial by $(1+x+x^2)$ is like adding that polynomial with itself three times, each shifted over. The $x$ shifts it over by one place and the $x^2$ shifts it over by two places.
Continuing this pattern, we can get the coefficients of $(1+x+x^2)^3$ as follows:
\begin{array}{ccccccc} 1&0&1&0&1&&\\ &1&0&1&0&1&\\ &&1&0&1&0&1\\ \hline 1&1&0&1&0&1&1 \end{array}
So $(1+x+x^2)^3\equiv 1+x+x^3+x^5+x^6 \pmod{2}$
Let's make a triangle of a few more results:
\begin{array}{cccccccccccc} 0:&&&&&&1&&&&&\\ 1:&&&&&1&1&1&&&&\\ 2:&&&&1&0&1&0&1&&&\\ 3:&&&1&1&0&1&0&1&1&&\\ 4:&&1&0&0&0&1&0&0&0&1&\\ 5:&1&1&1&0&1&1&1&0&1&1&1\\ \end{array}
We see that the structure of our problem is essentially the same as an elementary cellular automaton (specifically, rule 150). I will come back to this later.
I notice another peculiar pattern with the $1$st, $2$nd, and $4$th rows: There are only $1$s on the ends and in the center. Perhaps this pattern continues for all powers of $2$. And it does, which is not hard to prove with induction.
Claim: $\forall n\ge 0,\ (1+x+x^2)^{2^n}\equiv 1+x^{2^n}+x^{2^{n+1}}\pmod{2}$
Base case: $(1+x+x^2)^{2^0}\equiv 1+x+x^2\equiv 1+x^{2^0}+x^{2^1}\pmod{2}$
Inductive Step:
\begin{align*} (1+x+x^2)^{2^n}&\equiv ((1+x+x^2)^{2^{n-1}})^2\\ &\equiv (1+x^{2^{n-1}}+x^{2^n})^2\\ &\equiv 1+x^{2^n}+x^{2^{n+1}}\pmod{2} \end{align*}
This is where the intuition comes in that is hard for me to express rigorously. On one of the $2^n$th rows, look at the $0$ equidistant from the leftmost $1$ and the $1$ in the center. If the rightmost $1$ wasn't there, then that $0$ would stay a $0$ forever because of symmetry: any effect from the left is cancelled by an effect from the right.
However, the rightmost $1$ does exist, so it will eventually change that $0$. But since effects are local in this automaton, it will require over $2^n$ more rows until the rightmost $1$ affects the $0$ we are looking at (there are over $2^n$ spaces between them). In other words, we have shown that the $0$ will stay a $0$ for all rows up to the $2^{n+1}$th row. Applying this logic on each power of two row, we show that there is always a zero coefficient from row $2$ onwards.
Is there a more rigorous way I can express those last two paragraphs? And in general, what advice do you have for translating intuition to a rigorous proof?