I love prime numbers! 2

How many prime numbers are in the following (infinite) sequence?

101 , 10101 , 1010101 , . . . , 10101...10101 , . . . {{101, 10101, 1010101, . . ., 10101 ... 10101, . . .}}

1 1 13 13 10 10 2 2 Infinitely Many

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

Ethan Mandelez
May 18, 2021

Notice that

10101...10101 = 1 + 1 0 2 + 1 0 4 + . . . + 1 0 2 n 10101 ... 10101 = 1 + 10^{2} + 10^{4} + ... + 10^{2n}

= 1 0 0 + 1 0 2 + 1 0 4 + . . . + 1 0 2 n = 10^{0} + 10^{2} + 10^{4} + ... + 10^{2n}

= 1 99 ( 1 0 2 n + 2 1 ) = \frac {1} {99} (10^{2n+2} - 1)

Since ( 2 n + 2 ) = 2 ( n + 1 ) (2n+2) = 2(n+1) , by the difference of two squares this gives

10101...10101 = 1 99 ( 1 0 n + 1 1 ) ( 1 0 n + 1 + 1 ) 10101 ... 10101 = \frac{1}{99} (10^{n+1} - 1) (10^{n+1} + 1)

When n = 1 n = 1 :

( 1 0 n + 1 1 ) = 99 (10^{n+1} - 1) = 99

( 1 0 n + 1 + 1 ) = 101 (10^{n+1} + 1) = 101

When n = 2 n = 2 :

( 1 0 n + 1 1 ) = 999 (10^{n+1} - 1) = 999

( 1 0 n + 1 + 1 ) = 1001 (10^{n+1} + 1) = 1001

When n = 3 n = 3 :

( 1 0 n + 1 1 ) = 9999 (10^{n+1} - 1) = 9999

( 1 0 n + 1 + 1 ) = 10001 (10^{n+1} + 1) = 10001

For n > 1 n > 1 , the two factors ( 1 0 n + 1 1 ) ( 1 0 n + 1 + 1 ) (10^{n+1} - 1) (10^{n+1} + 1) are both greater than 99 99 , hence when ( 1 0 n + 1 1 ) (10^{n+1} - 1) is divided by factors of 99 99 , the two remain as non-trivial factors (i.e. factors that are not 1 1 or the number itself) of the original number. Thus we can conclude that the number is not prime, except when n = 1 n=1 .

When n = 1 n=1 , the number is 101 101 and that is a prime number.


Other prime number problems:

I love prime numbers! 1

I love prime numbers! 3

I did it a bit unusual way 🙂🙂 Converting each sequence from binary to decimal 101=5 10101=21 1010101=85 101010101=341 We see that only 5 is prime. So answer is 1

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...