Powers of 2 2 's After Another

n n 2 n \hspace{10mm} 2^n Concatenation of the powered numbers Divisibility checked
0 2 0 = 1 \hspace{5mm} 2^0=1 1 \hspace{25mm} 1 1 1 \hspace{8mm} 1\, \big|\, 1
1 2 1 = 2 \hspace{5mm} 2^1=2 12 \hspace{25mm} 12 2 12 \hspace{8mm} 2\, \big|\, 12
2 2 2 = 4 \hspace{5mm} 2^2=4 124 \hspace{25mm} 124 4 124 \hspace{8mm} 4\, \big|\, 124
3 2 3 = 8 \hspace{5mm} 2^3=8 1248 \hspace{25mm} 1248 8 1248 \hspace{8mm} 8\, \big|\, 1248
4 2 4 = 16 \hspace{5mm} 2^4=16 124816 \hspace{25mm} 124816 16 124816 \hspace{8mm} 16\, \big|\, 124816

As we get greater and greater numbers in column 3 of the table by concatenation (i.e. 12481632, 1248163264, ...) for n > 4 , n>4, will the divisibility in the last column still hold?

Yes, but only sometimes Yes, it will No, never for n > 4 n>4

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.

9 solutions

Relevant wiki: Induction - Introduction

By induction. Let A ( n ) A(n) be the number generated by concatenating the powers 2 0 , , 2 n 2^0, \dots, 2^n .

Because obviously 2 0 A ( 0 ) 2^0|A(0) , the basis step for induction is satisfied.

To prove that 2 n A ( n ) 2^n|A(n) holds true for all n 0 n \geq 0 , suppose 2 n 1 A ( n 1 ) 2^{n-1} | A(n-1) . In the induction step we must prove that then also 2 n A ( n ) 2^n|A(n) .

Let d 1 d \geq 1 be the number of digits in 2 n 2^n . Then A ( n ) = A ( n 1 ) 1 0 d + 2 n . A(n) = A(n-1)\:10^d + 2^n. Since 2 1 0 d 2|10^d and 2 n 1 A ( n 1 ) 2^{n-1}|A(n-1) , the first term is a multiple of 2 n 2^n . The same it obviously true for the second term, so that 2 n A ( n ) 2^n|A(n) .


Generalization

In general, the number obtained by concatenating the powers b 0 , b 1 , , b n b^0, b^1, \dots, b^n are all divisible by b n b^n if b B b | B , where B B is the base of the number system in which we work. The proof is a generalization of the proof given above, observing that A ( n ) = A ( n 1 ) B d + b n A(n) = A(n-1)\:B^d + b^n is divisible by b n b^n .

Oh wow, that is a fun generalization

Agnishom Chattopadhyay - 3 years, 5 months ago

So, if "a|b" and "c|d", we've got "ac|bd", is that right?

Alejandro Guijarro Monerris - 3 years, 4 months ago

Log in to reply

That is right. Proof: the statements a b a|b and c d c|d translate into b = a x , d = c y b = ax, d = cy for some integers x , y x, y . Then b d = a c x y = : a c z bd = acxy =: acz , showing that a c b d ac | bd .

Arjen Vreugdenhil - 3 years, 4 months ago

Log in to reply

I didn't know that, my knowledge in maths is still limited. Eitherway, thanks for your reply.

Alejandro Guijarro Monerris - 3 years, 4 months ago

We note that N N can be expressed as

N ( 0 ) = 1 N ( 1 ) = 1 × 1 0 1 + 2 × 1 0 0 = 12 N ( 2 ) = 2 0 × 1 0 2 + 2 1 × 1 0 1 + 2 2 × 1 0 0 = 124 N ( 3 ) = 2 0 × 1 0 3 + 2 1 × 1 0 2 + 2 2 × 1 0 1 + 2 3 × 1 0 0 = 1248 N ( 4 ) = 10 ( 2 0 × 1 0 4 + 2 1 × 1 0 3 + 2 2 × 1 0 2 + 2 3 × 1 0 1 ) + 2 4 × 1 0 0 = 124816 = 2 0 × 1 0 4 + 1 + 2 1 × 1 0 3 + 1 + 2 2 × 1 0 2 + 1 + 2 3 × 1 0 1 + 1 + 2 4 × 1 0 0 = 124816 N ( n ) = k = 0 n 2 k × 1 0 n k + m k where m k is a non-negative integer. = k = 0 n 2 n + m k × 5 n k + m k = 2 n k = 0 n 2 m k × 5 n k + m k N 2 n = k = 0 n 2 m k × 5 n k + m k \begin{aligned} N(0) & = 1 \\ N(1) & = 1\times 10^1 + 2 \times 10^0 = 12 \\ N(2) & = 2^0\times 10^2 + 2^1 \times 10^1 + 2^2 \times 10^0 = 124 \\ N(3) & = 2^0\times 10^3 + 2^1 \times 10^2 + 2^2 \times 10^1 + 2^3 \times 10^0 = 1248 \\ N(4) & = 10 \left(2^0\times 10^4 + 2^1 \times 10^3 + 2^2 \times 10^2 + 2^3 \times 10^1\right) + 2^4 \times 10^0 = 124816 \\ & = 2^0\times 10^{4\color{#D61F06}+1} + 2^1 \times 10^{3\color{#D61F06}+1} + 2^2 \times 10^{2\color{#D61F06}+1} + 2^3 \times 10^{1\color{#D61F06}+1} + 2^4 \times 10^0 = 124816 \\ \implies N(n) & = \sum_{k=0}^n 2^k\times 10^{n-k+\color{#D61F06}m_k} & \small \color{#D61F06} \text{where } m_k \text{ is a non-negative integer.} \\ & = \sum_{k=0}^n 2^{n+m_k}\times 5^{n-k+m_k} \\ & = 2^n \sum_{k=0}^n 2^{m_k}\times 5^{n-k+m_k} \\ \frac N{2^n} & = \sum_{k=0}^n 2^{m_k}\times 5^{n-k+m_k} \end{aligned}

\implies Yes, it is true. 2 n N 2^n \mid N .

Great job on showing a direct proof that does not rely on induction

Agnishom Chattopadhyay - 3 years, 5 months ago

What is mk?

Michael Szerman - 3 years, 4 months ago

Log in to reply

An non-negative integer, whose value we may not know, but not essential for the answer.

Chew-Seong Cheong - 3 years, 4 months ago

Log in to reply

Thanks Chew!

Michael Szerman - 3 years, 4 months ago
Chan Tin Ping
Dec 30, 2017

Let N ( n ) N(n) denote as the concatenation of 2 0 , 2 1 , 2 2 , , 2 n 2^0,2^1,2^2,…,2^n . For example, N ( 4 ) = 124816 N(4)=124816 . N ( n ) = 2 n + 2 n 1 × 1 0 a n 1 + 2 n 2 × 1 0 a n 2 + + 2 1 × 1 0 a 1 + 2 0 + 1 0 a 0 N(n)=2^n+2^{n-1}×10^{a_{n-1}}+2^{n-2}×10^{a_{n-2}}+…+2^1×10^{a_{1}}+2^0+10^{a_{0}} The a k a_{k} control the position of 2 k 2^k in N ( n ) N(n) . Now, we gonna prove that for every non-negative integer k n k\leq n , 2 n ( 2 k × 1 0 a k ) 2^n|(2^k×10^{a_{k}}) . Obviously a n 1 1 a_{n-1}\geq 1 and a 0 > a 1 > a 2 > > a n 2 > a n 1 a_{0}>a_{1}>a_{2}>…>a_{n-2}>a_{n-1} . This means that a n t t a_{n-t} \geq t ( t = 1 , 2 , 3 , n t={1,2,3,…n} ). Let k = n t k=n-t , we can get a k n k a_{k} \geq n-k . Let f ( a ) f(a) as the largest power of 2 2 in a a .(exp: f ( 4 ) = 2 , f ( 24 ) = 3 f(4)=2,f(24)=3 )

f ( 2 k × 1 0 a k ) f ( 2 k × 1 0 n k ) = f ( 2 k × 2 n k × 5 n k ) = n \begin{aligned} f(2^k×10^{a_{k}}) &\geq f(2^k×10^{n-k}) \\ &=f(2^k×2^{n-k}×5^{n-k}) \\ &=n \end{aligned} Hence, N ( n ) N(n) is a sum of multiple of 2 n 2^n , so it is t r u e \large true for any non-negative integer n n , 2 n N ( n ) 2^n|N(n) .

Piero Sarti
Jan 3, 2018

Let f ( n ) = ( ( ( ( ( 2 0 2 1 ) 2 2 ) 2 3 ) ) 2 n ) f(n) = (((((2^{0}||2^{1})||2^{2})||2^{3}) \cdots )||2^{n}) where n N + n \in N^+ .

When n = 1 n = 1 ,

f ( 1 ) = 2 0 2 1 = 12 f(1) = 2^0||2^1 = 12 and f ( 1 ) 0 ( m o d 2 1 ) f(1) \equiv 0\pmod{2^1}

Now assume that when n = k n = k ,

f ( k ) = 0 ( m o d 2 k ) f(k) = 0\pmod{2^k}

It follows that if n = k + 1 n = k + 1 ,

f ( k + 1 ) = f ( k ) 2 k + 1 f(k + 1) = f(k)||2^{k + 1}

For two integers in base 10 ( a , b ) (a, b) , a b = a × 1 0 l o g 10 b + 1 + b a||b = a\times10^{\lfloor log_{10}{b}\rfloor + 1} + b

f ( k + 1 ) = f ( k ) × 1 0 l o g 10 2 k + 1 + 1 + 2 k + 1 \therefore f(k + 1) = f(k)\times10^{\lfloor log_{10}{2^{k + 1}}\rfloor + 1} + 2^{k+1}

Now equating f ( k + 1 ) 2 k + 1 \dfrac{f(k + 1)}{2^{k + 1}} ,

f ( k + 1 ) 2 k + 1 = f ( k ) × 1 0 l o g 10 2 k + 1 + 1 + 2 k + 1 2 k + 1 \dfrac{f(k + 1)}{2^{k + 1}} = \dfrac{f(k)\times10^{\lfloor log_{10}{2^{k + 1}}\rfloor + 1} + 2^{k+1}}{2^{k + 1}}

f ( k ) × 1 0 ( k + 1 ) l o g 10 2 + 1 2 k + 1 + 1 f ( k ) × 1 0 ( k + 1 ) l o g 10 2 + 1 2 × 2 k + 1 \rightarrow \dfrac{f(k)\times10^{\lfloor (k + 1)log_{10}{2}\rfloor + 1}}{2^{k + 1}} + 1 \rightarrow \dfrac{f(k)\times10^{\lfloor (k + 1)log_{10}{2}\rfloor + 1}}{2\times2^{k}} + 1

Since x N + \lfloor x \rfloor \in N^+ for any real number x x , let φ = ( k + 1 ) l o g 10 2 \varphi = \lfloor (k + 1)log_{10}{2}\rfloor

It follows that,

f ( k ) × 1 0 φ + 1 2 × 2 k + 1 \rightarrow \dfrac{f(k)\times10^{\varphi + 1}}{2\times2^{k}} + 1

Since we assumed that f ( k ) = 0 ( m o d 2 k ) f(k) = 0\pmod{2^k} , we can let α = f ( k ) 2 k \alpha = \dfrac{f(k)}{2^k} .

f ( k + 1 ) 2 k + 1 = α × 1 0 φ + 1 2 + 1 \therefore \dfrac{f(k+1)}{2^{k + 1}} = \dfrac{\alpha\times10^{\varphi + 1}}{2} + 1 .

Finally, since 1 0 n 0 ( m o d 2 ) 10^n \equiv 0\pmod2 , f ( n ) 0 ( m o d 2 n ) f(n) \equiv 0\pmod{2^n} so Yes \boxed{\text{Yes}} the statement above is true for n N + n \in N^+ .

Fahad Malik
Jan 13, 2018

n+1 = 2(n).......... 3rd column -> n+1 divided by n is multiple of 2, means, n is a factor of n+1 ............ So "YES"

I have no idea what you're saying. Care to elaborate on it?

Pi Han Goh - 3 years, 4 months ago
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
# -*- coding: utf-8 -*-
"""
Spyder Editor

@author: Michael Fitzgerald
"""
# https://brilliant.org/weekly-problems/2018-01-08/intermediate/?p=2
#
#As we get greater and greater numbers in column 3 of the table 
# by concatenation (i.e. 12481632, 1248163264, ...) for 
# n > 4 will the divisibility in the last column still hold?

str_x = ''
for i in range(30):
    x = 2**i
    str_x += str(x)    
    if int(str_x)%x == 0:
        print '%d is divisible by %d' % (int(str_x), x)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
1 is divisible by 1
12 is divisible by 2
124 is divisible by 4
1248 is divisible by 8
124816 is divisible by 16
12481632 is divisible by 32
1248163264 is divisible by 64
1248163264128 is divisible by 128
1248163264128256 is divisible by 256
1248163264128256512 is divisible by 512
12481632641282565121024 is divisible by 1024
124816326412825651210242048 is divisible by 2048
1248163264128256512102420484096 is divisible by 4096
12481632641282565121024204840968192 is divisible by 8192
1248163264128256512102420484096819216384 is divisible by 16384
124816326412825651210242048409681921638432768 is divisible by 32768
12481632641282565121024204840968192163843276865536 is divisible by 65536
12481632641282565121024204840968192163843276865536131072 is divisible by 131072
12481632641282565121024204840968192163843276865536131072262144 is divisible by 262144
12481632641282565121024204840968192163843276865536131072262144524288 is divisible by 524288
124816326412825651210242048409681921638432768655361310722621445242881048576 is divisible by 1048576
1248163264128256512102420484096819216384327686553613107226214452428810485762097152 is divisible by 2097152
12481632641282565121024204840968192163843276865536131072262144524288104857620971524194304 is divisible by 4194304
124816326412825651210242048409681921638432768655361310722621445242881048576209715241943048388608 is divisible by 8388608
12481632641282565121024204840968192163843276865536131072262144524288104857620971524194304838860816777216 is divisible by 16777216
1248163264128256512102420484096819216384327686553613107226214452428810485762097152419430483886081677721633554432 is divisible by 33554432
124816326412825651210242048409681921638432768655361310722621445242881048576209715241943048388608167772163355443267108864 is divisible by 67108864
124816326412825651210242048409681921638432768655361310722621445242881048576209715241943048388608167772163355443267108864134217728 is divisible by 134217728
124816326412825651210242048409681921638432768655361310722621445242881048576209715241943048388608167772163355443267108864134217728268435456 is divisible by 268435456
124816326412825651210242048409681921638432768655361310722621445242881048576209715241943048388608167772163355443267108864134217728268435456536870912 is divisible by 536870912

Great job on checking the truth for small numbers. But this does not prove the conjecture for all numbers, does it?

Agnishom Chattopadhyay - 3 years, 5 months ago

Log in to reply

yes it does not

Michael Fitzgerald - 3 years, 4 months ago
Leonel Castillo
Jan 7, 2018

We may define the sequence by the following recursive relation: S 0 = 2 0 , S n + 1 = 1 0 log 10 ( 2 n ) S n + 2 n + 1 S_0 = 2^0, S_{n+1} = 10^{\lceil \log_{10} (2^n) \rceil }S_n + 2^{n+1} and the problem may be rephrased as proving that S n 0 m o d 2 n S_n \equiv 0 \mod 2^n . I proceed by induction, the picture in the problem already gives us a base case so for the inductive case suppose that indeed S n 0 m o d 2 n S_n \equiv 0 \mod 2^n . Then S n + 1 1 0 log 10 ( 2 n ) S n + 2 n + 1 1 0 log 10 ( 2 n ) S n 0 m o d 2 n + 1 S_{n+1} \equiv 10^{\lceil \log_{10} (2^n) \rceil }S_n + 2^{n+1} \equiv 10^{\lceil \log_{10} (2^n) \rceil }S_n \equiv 0 \mod 2^{n+1} because S n S_n already has a factor of 2 n 2^n and then the 10 10 gives it at least an extra factor of 2 2 to make it divisible by 2 n + 1 2^{n+1} .

Giorgos K.
Jan 2, 2018

here is the OEIS link

That is interesting. I did not know there would be an OEIS sequence just for this.

Agnishom Chattopadhyay - 3 years, 5 months ago
Vinay Koti
Jan 12, 2018

Starting from n=5, Any concatenated number can be represented as or broken down to (10^y * 2^n-1 * x), which is always divisible by 2^n. Because until n=4 we know that the concatenated number is divisible by 2^n. 10^y results from subtracting 2^n from concatenated number. 2^n-1 * x is a result of the fact that previous concatenated number is divisible by 2^n-1 and this series continues....

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...