Identical Digits Property?

True or false :

Let Q Q be a positive integer with all 3 n 3^n identical digits, that is Q = a a a a a a a a 3 n digits Q = \underbrace{aaaaaaa\ldots a}_{3^n \text{ digits}} . Then, 3 n 3^n divides Q Q for positive integers n n .

True False

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

2 solutions

Given that Q = a a a . . . a 3 n Q=\underbrace { aaa...a }_{ { 3 }^{ n } } we can write that Q = a × 10 3 n + a × 10 3 n 1 + . . . + a × 10 0 = a J = 1 3 n 10 J = a [ 10 3 n 1 10 1 ] = a [ 999...9 3 n 9 ] = a [ 111...1 3 n ] Q=a\times { 10 }^{ { 3 }^{ n } }+a\times { 10 }^{ { 3 }^{ n }-1 }+...+a\times { 10 }^{ 0 }=a\sum _{ J=1 }^{ { 3 }^{ n } }{ { 10 }^{ J } } =a\left[ \frac { { 10 }^{ { 3 }^{ n } }-1 }{ 10-1 } \right] =a\left[ \frac { \overbrace { 999...9 }^{ { 3 }^{ n } } }{ 9 } \right] =a\left[ \overbrace { 111...1 }^{ { 3 }^{ n } } \right] . The criterion of divisibility of 3 says that the: "if sum of the digits of a number is 3 or multiply of 3, this number is divisible by 3". Then, for induction we can proof that the number 111...1 3 n \overbrace { 111...1 }^{ { 3 }^{ n } } is ever divisible by 3 n 3^{n} Therefore 3 n 3^n divides to Q Q for all n n integer positive

Moderator note:

As pointed out in the comments, this solution hasn't provided the induction prove that " 111...1 3 n \overbrace { 111...1 }^{ { 3 }^{ n } } is divisible by 3 n 3^n , which is the crux of the problem.

This gap is easily filled by observing that 111...1 3 n = 111...1 3 n 1 × 10 010 1 \overbrace { 111...1 }^{ { 3 }^{ n } } = \overbrace { 111...1 }^{ { 3 }^{ n -1 } } \times 1 0 \ldots 0 1 0 \ldots 1 where the first term is a multiple of 3 n 1 3^{n-1} and the second term is a multiple of 3.

In fact, we can show that 3 n 3^n is the highest power of 3 that divides 111...1 3 n \overbrace { 111...1 }^{ { 3 }^{ n } } form the above observation.

Do note that even though the statement "if sum of the digits of a number is 3 or multiple of 3, this number is divisible by 3" is true, it doesn't follow by induction that "if sum of the digits of a number is 3 n 3^n or a multiple of 3 n 3^n , this number is divisible by 3 n 3^n ". This is true only for n = 1 , 2 n=1,2 . A simple counterexample for n = 3 n=3 is 9981 9981 and for n 3 n\geq 3 , we can construct the counterexample 2727 2745 2727\ldots2745 where 27 27 is repeated as many times so that the sum of digits is 3 n 3^n . This number is not divisible by 27 = 3 3 27=3^3 and hence not divisible by 3 n n 3 3^n~\forall~n\geq 3 .

However, the statement 3 n 111 11 3 n times 3^n\mid \underbrace{111\ldots 11}_{3^n\textrm{ times}} is true n 1 \forall~n\geq 1 and can be proved by induction. Here 's a nice inductive proof of this statement.

Prasun Biswas - 5 years ago
Sam Bealing
Jun 13, 2016

Q = ( a 9 ) ( 1 0 ( 3 n ) 1 ) 3 n Q 3 n ( a 9 ) ( 1 0 ( 3 n ) 1 ) 3 n + 2 a ( 1 0 ( 3 n ) 1 ) Q=\left (\dfrac{a}{9} \right) \left (10^{(3^n)}-1 \right) \\ 3^n \vert Q \implies 3^n \vert \left (\dfrac{a}{9} \right) \left (10^{(3^n)}-1 \right) \implies 3^{n+2} \vert a \left (10^{(3^n)}-1 \right)

So the problem is equivalent to proving 3 n + 2 ( 1 0 ( 3 n ) 1 ) 3^{n+2} \vert \left (10^{(3^n)}-1 \right) . This can be done by induction.

It is easy to test the statement is true for n = 1 n=1 . Assume the statement is true for n = k n=k so 3 k + 2 ( 1 0 ( 3 k ) 1 ) 3^{k+2} \vert \left (10^{(3^k)}-1 \right) :

1 0 ( 3 k + 1 ) 1 = 1 0 3 ( 3 k ) 1 = ( 1 0 ( 3 k ) ) 3 1 = ( 1 0 ( 3 k ) 1 ) ( ( 1 0 ( 3 k ) ) 2 + 1 0 ( 3 k ) + 1 ) ( ( 1 0 ( 3 k ) ) 2 + 1 0 ( 3 k ) + 1 ) ( ( 1 ( 3 k ) ) 2 + 1 ( 3 k ) + 1 ) 1 + 1 + 1 0 ( m o d 3 ) 10^{(3^{k+1})}-1=10^{3(3^k)}-1=\left (10^{(3^k)} \right )^3-1=\left (10^{(3^k)}-1 \right) \left (\left (10^{(3^k)} \right )^2+10^{(3^k)}+1 \right) \\ \left (\left (10^{(3^k)} \right )^2+10^{(3^k)}+1 \right) \equiv \left (\left (1^{(3^k)} \right )^2+1^{(3^k)}+1 \right) \equiv 1+1+1 \equiv 0 \pmod{3}

Combining this and the inductive hypothesis gives:

3 ( 3 k + 2 ) 1 0 ( 3 k + 1 ) 1 3 ( k + 1 ) + 2 1 0 ( 3 k + 1 ) 1 3 \left (3^{k+2} \right) \vert 10^{(3^{k+1})}-1 \implies 3^{(k+1)+2} \vert 10^{(3^{k+1})}-1

So it is proved by induction that 3 n + 2 ( 1 0 ( 3 n ) 1 ) 3^{n+2} \vert \left (10^{(3^n)}-1 \right) for all positive n n making the statement:

True \color{#20A900}{\boxed{\boxed{\text{True}}}}

Moderator note:

Great approach, using the hints in the question statement to guide the solution.

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...