# In every power of 3 the tens digit is an even number

How to prove that in every power of $3$, with natural exponent, the tens digit is an even number?

For example, $3 ^ 5 = 243$ and $4$ is even.

-
If you look at integer multiplication, only a finite number of digits of any two numbers number can influence any digit in the result. Enumerate all cases for those. – Raphael Dec 11 '10 at 10:08

Use induction on the exponent:

The last digit is either 1, 3, 7 or 9.

If 1 or 3, multiplying a power of 3 will not change the evenness of the second last digit.

If 7 or 9, multiplying will result in a carry over of 2, which again does not change the evenness of the second last digit.

-

HINT $\rm\quad 3^4 = 1\ (mod\ 20)\ \Rightarrow\ 3^n\ =\ 20\ k + \{1,3,9,27\}$

-

Here is an easy but tedious way of dealing with many similar questions: For any $n$ and $k$, the last $k$ digits of the numbers in the sequence $n^1,n^2,n^3,\dots$ eventually repeat, so we only need to check a few cases.

For the question at hand, note that $3^2=9=10-1$, so $3^{20}=(10-1)^{10}$ has the form $100k+1$ for some $k$. This means that the last 2 digits of powers of 3 repeat each 20 numbers. So we just need to check the last two digits of $3^0,3^1,\dots,3^{19}$, and this can be done very quickly even by hand: $$01, 03, 09, 27, 81, 43, 29, 87,\dots,89,67.$$

-

Case 1: $n = 2k; k$ even.

$3^{2k} = 9^{k} = (10 - 1)^{k} = 10^{k} - {k \choose 2}^{k-1} + .... + {k \choose k-2}10^2 - {k \choose k - 1}10 + 1 = N*100 - k*10 + 1$. $k$ is even so the second digit is even.

Case 2: $n = 2k; k$ odd.

$3^{2k} = 9^{k} = (10 - 1)^{k} = 10^{k} - {k \choose 2}^{k-1} + .... - {k \choose k-2}10^2 + {k \choose k - 1}10 - 1 = N*100 + k*10 - 1$. $k$ is odd so $k*10 - 1 = (k - 1)*10 + 9$ so the second digit is even.

Case 3: $n = 2k + 1; k$ even.

$3^{2k} = 9^{k} = (10 - 1)^{k} = 10^{k} - {k \choose 2}^{k-1} + .... + {k \choose k-2}10^2 - {k \choose k - 1}10 + 1 = N*100 - k*10 + 1$.

$3^{2k+1} =$M*100 - 3k*10 + 3$. As$k$is even the second digit is even. Case 4:$n = 2k + 1; k$odd.$3^{2k} = 9^{k} = (10 - 1)^{k} = 10^{k} - {k \choose 2}^{k-1} + .... - {k \choose k-2}10^2 + {k \choose k - 1}10 - 1 = N*100 + k*10 - 1$.$3^{2k + 1} = M*100 + 3k*10 - 7 = M*100 + (3k -1)*10 + 7$. As$3k -1$is even, the second digit is even. This also tells you what the first digit is: 1, 9, 3, or 7. Which gives a hint that might be a more efficient method. Method 2:$3^4 = 81 = 8*10 + 1$So if$n = 4m + k; k = 0,1,2,33^n = (3^4)^m 3^k = (8*10 + 1)^m 3^k = (M*100 + 8*m*10 + 1)\{1,3,9,27\}= N*100 + 8*m*\{1,3,9,7\}*10 \{+ 2*10\} + 1*\{1,3,9,7\}$Or more elegantly as Bill Dubuque pointed out$3^4 = 1 \mod (20) \implies 3^{4m + k} = (3^4)^m 3^k = 3^k \mod 20 \implies 3^n = \{1,3,9,7\} \mod 20\$.

-

It's actually interesting.

If you do a table of multiples of 1, 3, 7, 9 modulo 20, you will find a closed set, ie you can't derive an 11, 13, 17 or 19 from these numbers.

What this means is that any number comprised entirely of primes that have an even tens-digit will itself have an even tens-digt. Such primes are 3, 7, 23, 29, 41, 43, 47, 61, 67, 83, 89, 101, 103, 107, 109 to a hundred.

If the tens-digit is odd, then it must be divisible by an odd number of primes of the form 11, 13, 17, 19 mod 20. Any even number of these would produce an even tens digit.

-