I will happy to see how to solve this question I had in my exam today. Prove that this divide by 4 for any n>0 by induction:
$$3^{3n} + 3^{2n}+ 3^n + 1.$$
I will happy to see how to solve this question I had in my exam today. Prove that this divide by 4 for any n>0 by induction:
$$3^{3n} + 3^{2n}+ 3^n + 1.$$
We have
$$3^{3n}+3^{2n}+3^n+1=(3^{2n}+1)(3^n+1).$$
Now by induction, $3^m$ is odd for any $m$ because $3^0$ is odd and $3^{m+1}=3\cdot 3^m$ is the product of two odd numbers.
Hence $(3^{2n}+1)(3^n+1)$ is a multiple of $4$.
Note that your sequence can be described as $$a_n=27^n+9^n+3^n+1^n$$
so it ought to coincide with a linear recursion, whose characteristic polynomial has roots $1,3,9,27$.
Accordingly, let us make a recursion using the first few values of your sequence as initial conditions and having $$(x-1)(x-3)(x-9)(x-27)$$ as its characteristic polynomial.
By induction, the sequence determined by that recursion will coincide with your sequence.
Indeed, expanding out the polynomial shows that the recursion we want is $$a_n=40 a_{n-1} - 390 a_{n-2} +1080a_{n-3} - 729a_{n-4}$$
with initial conditions $$a_0=4\quad a_1=40\quad a_2=820\quad a_3=20440$$
As each of those initial values is divisible by $4$, so must all the other terms in the recursion and we are done.
Note: there was no need to write out the recursion explicitly. It was clear that there was one (just expand the given polynomial) and that was all we needed to know. The key point is that, by induction, it suffices to check the first four values.
Here is a hint you could use for a proof by induction:
$(3^{3(n+1)}+3^{2(n+1)}+3^{n+1}+1) - (3^{3n}+3^{2n}+3^{n}+1)=$
$3^{3n}(3^3-1)+3^{2n}(3^2-1)+3^{n}(3-1)$
and $3^{3n}(26)+3^n(2)=3^n(3^{2n}26+2)$ and $3^{2n}26+2=2(3^{2n}13+1)$ is divisible by $4$
since $3^{2n} $ is odd so $3^{2n}13+1$ is even.
But I find it easier to prove the claim directly:
$3\equiv-1\pmod4,$ so $3^{3n}+3^{2n}+3^{n}+1\equiv(-1)^{3n}+(-1)^{2n}+(-1)^{n}+1$,
which is $-1+1-1+1=0$ if $n$ is odd and $1+1+1+1=4\equiv0\pmod4$ if $n$ is even.
Try $n=1$:
$3^3 + 3^2 + 3^1 + 1 = 40$, which is divisible by 4.
Now assume it is true for $n=k$ so that:
$3^{3k} + 3^{2k} + 3^{k} + 1$ is divisible by 4. (*)
We want to show that it is true for $n=k+1$, that is:
$3^{3(k+1)} + 3^{2(k+1)} + 3^{(k+1)} + 1$ is divisible by 4. (**)
(**) $= 27\cdot3^{3k} + 9\cdot3^{2k} + 3\cdot3^{k} + 1$
(**) - (*) $= 26\cdot3^{3k} + 8\cdot3^{2k} + 2\cdot3^{k}$
Now any even number multiplied by 2 is a multiple of 4, so it remains to show that (**)/2 is an even number.
(**)/2 $= 13\cdot3^{3k} + 4\cdot3^{2k} + 3^{k}$
$= (odd \times odd) + (even \times odd) + odd$
$= odd + even + odd$
$= even$
and we are done.