2

I am stuck at the following exercise:

Prove that $\forall n\in \mathbb{N}: 7\mid(1 + 2^{2^n} + 2^{2^{n+1}})$.

I tried to prove the Expression by induction but I cannot find a way to prove the implication $$7\mid(1 + 2^{2^n} + 2^{2^{n+1}}) \Rightarrow 7\mid(1 + 2^{2^{n+1}} + 2^{2^{(n+1)+1}}).$$ Any help would be appreciated very much.

  • 1
    Your life might be made easier by the observation that $$ 1 + 2^{2^n} + 2^{2^{n+1}} = \frac{2^{3 \cdot 2^n} - 1}{2^{2^n} - 1} $$ – Ben Grossmann Aug 18 '16 at 20:26
  • Also, what do you know about modular arithmetic? Have you seen the "phrase" $\pmod 7$? – Ben Grossmann Aug 18 '16 at 20:28
  • Equivalently, examine the difference between $(1 + 2^{2^{n+1}} + 2^{2^{(n+1)+1}})$ and $(1 + 2^{2^{n}} + 2^{2^{n+1}})$. Is that difference divisible by $7$? – avs Aug 18 '16 at 20:31
  • Do you know Fermat's little theorem. gcd(2,7) = 1 so $2^6 = 1 \mod 7$. And actually $2^3 = 1 \mod 7$. So even if you don't know FLT we know $7 = 2^3 - 1$. Can we prove $(2^3 - 1)$ divides the expression? – fleablood Aug 18 '16 at 20:39
  • If $7 \mid n$, then $7 \mid {n - 21,\mathrm{ld}\left(, n, \right) \over 10}$ where $,\mathrm{ld}\left(, n, \right)$ is the $last\ digit$ of $n$. – Felix Marin Aug 18 '16 at 21:18

5 Answers5

12

Let $a_n=2^{2^n}$. We have $a_{n+1}=a_n^2$, hence the sequence $\{a_n\pmod{7}\}_{n\geq 0}$ is periodic from some point on. Let we compile a small table: $$ \begin{array}{|c|c|c|c|c|c|}\hline n & 0 & 1 & 2 & 3 & \ldots \\ \hline a_n\pmod{7} & 2 & 4 & 2 & 4 & \ldots\\ \hline\end{array}$$ By induction it is trivial that $a_n\equiv 2\pmod{7}$ if $n$ is even and $a_n\equiv 4\pmod{7}$ if $n$ is odd.
In any case, $$ 1+a_n+a_{n+1} \equiv 1+2+4 \equiv \color{red}{0}\pmod{7} $$ and that proves the claim.

Jack D'Aurizio
  • 361,689
3

Suppose $1+2^{2^n}+2^{2^{n+1}}=7k$ and set, for simplicity, $a=2^{2^n}$. Then $2^{2^{n+1}}=a^2$ and $2^{2^{n+2}}=a^4$. Then \begin{align} &1+2^{2^n}+2^{2^{n+1}}=1+a+a^2 \\[4px] &1+2^{2^{n+1}}+2^{2^{n+2}}=1+a^2+a^4 \end{align} Then $$ (1+a^2+a^4)-(1+a+a^2)=a^4-a=a(a-1)(a^2+a+1)=7ka(a-1) $$ so $$ 1+a^2+a^4=7k+7ka(a-1) $$

egreg
  • 244,946
2

Hint $\ \overbrace{(x^2\!-x+1)(\color{#0a0}{x^2\!+x+1}) = x^4\!+x^2\!+1}^{\textstyle \qquad\qquad\ \ \, {\rm i.e}\ \ \, \color{#0a0}{f_n}\ \mid\ f_{n+1} } \,$ $\,\overset{\rm induct}\Longrightarrow f_0\mid f_n,\ \forall \ n \ge 0\,\ $ $[\,f_0\! =\! 7\,$ in OP]


Note $ $ We can discover the factor(ization) $\,f_{n}\mid f_{n+1}$ in many ways, e.g. by completing the square (see comment below) or, more simply and generally, by the method of simpler multiples

$$x^2+x+1\,\ {\rm divides}\!\!\!\!\!\!\!\!\!\!\!\!\!\overbrace{\color{#0a0}{x^{\rm\large 2+\color{#c00}3\:\!J}}+x^{\rm\large 1+\color{#c00}3\:\!K}+\color{#90f}{x^{\rm\large \color{#c00}3L^{\phantom{|}}\!}}}^{\textstyle {\rm e.g.\ }\,\ \ \,\ \color{#0a0}{x^2}\ \ +\,\ \ x^4\ \ \ +\ \ \ \color{#90f}{x^0}\ \ {\rm in\ OP}\, \ \ \ }\qquad\qquad\ \ \,$$

Here it's simply $\ x^2+x+1\equiv 0\overset{\times\,(x-1)}\Longrightarrow\,$ $\color{#c00}{x^3\equiv 1}\,\Rightarrow \underbrace{\color{#c00}{x^4}\!}_{\!\!\Large \equiv\:\!\ \color{#c00}x}\!+x^2+1\equiv 0$

Note that this way eliminates need to compute the quotient (cofactor) $\,f_{n+1}/f_n = x^2-x+1,\,$ since the proof needs only the remainder $\,f_{n+1}\bmod f_n = 0.\,$ This is typical of simplification that modular/congruence arithmetic yields in such contexts.

Bill Dubuque
  • 282,220
  • Remark $ $ The factorization arises since completing the square leads to a difference of squares, i.e. $$\begin{eqnarray} \color{}{x^4+x^2+1} &,=,&!!! \overbrace{\color{}{(x^2!+1)^2}}^{\rm!!! complete\ the\ \color{}{square}!!!}!!!!!-!\color{#c00}{ x}^2\ \ \text{so, factoring this} \it\text{ difference of squares}\ &,=,& (x^2+1\color{#c00}\ \ {-\ \ \color{#c00}{x}})\ (x^2+1, +, \color{#c00}{x})\ \end{eqnarray}$$ – Bill Dubuque Aug 18 '16 at 21:36
1

Induction will work here. Assume $1+2^{2^n} + 2^{2^{n+1}}$ is divisible by 7. Note that $2^{2^{n+2}} = 2^{2^n4} = 16^{2^n} = (14+2)^{2^n} = 14M+2^{2^n}$ for some integer $M$. Then $1+2^{2^{n+1}} + 2^{2^{n+2}} = 1+2^{2^{n+1}}+(14+2)^{2^n} = 1+2^{2^{n+1}} +2^{2^n}+14M$, which must be a multiple of 7, since the first three terms are from the induction hypothesis.

B. Goddard
  • 33,728
1

The roots of $x^2+x+1$ over $\mathbb{F}_7$ are $x=2$ and $x=4$. If $n$ is odd, then $2^n\equiv 2\pmod{3}$, so that $2^{2^n}=2^2=4$ in $\mathbb{F}_7$. If $n$ is even, then $2^n\equiv 1\pmod{3}$, so that $2^{2^n}=2^1=2$ in $\mathbb{F}_7$.

Batominovski
  • 50,341