Homepage Solution manuals Ivan Niven An Introduction to the Theory of Numbers Exercise 4.5.14* (The probability that a power of $2$ has leading digit $1$ is $\log 2 / \log 10$ )

Exercise 4.5.14* (The probability that a power of $2$ has leading digit $1$ is $\log 2 / \log 10$ )

For any positive integer n prove that 5 n has leading digit 1 if and only if 2 n + 1 has leading digit 1 . Hence, prove that the “probability ” that a power of 2 has leading digit 1 is log 2 log 10 and that this is also the “probability” that a power of 5 has leading digit 1 . By “probability”, we mean the limit as n tends to infinity of the probability that an arbitrarily selected integer from 2 , 2 2 , 2 3 , , 2 n has leading digit 1 , and similarly for powers of 5 .

Answers

Proof.

(a)
Consider the two subsets of = { 1 , 2 , 3 , } given by A = { n k , n = k ln 10 ln 2 } , = { 3 , 6 , 9 , 13 , 16 , 19 , 23 , 26 , 29 , 33 , 36 , 39 , 43 , 46 , 49 , 53 , 56 , 59 , 63 , } B = { n k , n = k ln 10 ln 5 } = { 1 , 2 , 4 , 5 , 7 , 8 , 10 , 11 , 12 , 14 , 15 , 17 , 18 , 20 , 21 , 22 , 24 , 25 , 27 , } .

In others terms,

A = { j } , B = { k } ,

where

α = ln 10 ln 2 , β = ln 10 ln 5 .

Then α , β are positive irrational numbers: if ln 10 ln 2 = p q , where p , q are positive integers, then 2 p = 1 0 q = 2 q 5 q . The unique factorization theorem shows that q = 0 . This is a contradiction, so α = ln 10 ln 2 is irrational, and similarly β is irrational.

Since

1 α + 1 β = ln 2 ln 10 + ln 5 ln 10 = 1 ,

Problem 4.1.23 shows that A and B are complementary subsets of , that is

A B = , A B = . (1)

Moreover, by Problem 4.5.13 (a), for every positive integer n , 2 n + 1 has leading digit 1 if and only if there is some k 2 such that n + 1 = ( k 1 ) ln 10 ln 2 + 1 , that is if and only if n A .

By part (b) of the same problem, 5 n has not leading digit 1 if and only if there is some positive integer k such that n = k ln 10 ln 5 , that is if and only if n B . Therefore 5 n has leading digit 1 if and only if n B = A .

This shows that for every n , 5 n has leading digit 1 if and only if 2 n + 1 has leading digit 1 .

(b)
If n [ [ 1 , N ] ] , then 2 n has leading coefficient 1 if and only if n 1 A , that if if and only if n = 1 + k ln 10 ln 2 for some positive integer k . Then 1 k ln 10 ln 2 N 1 . Moreover, for every positive integer k , 1 k ln 10 ln 2 N 1 1 k ln 10 ln 2 < N 1 k < N ln 2 ln 10 1 k N ln 2 ln 10 .

( ln 2 ln 10 is an irrational number, thus N ln 2 ln 10 is never an integer.)

If K = N ln 2 ln 10 , the favorable case among 2 , 2 2 , , 2 N are

2 1 + ln 10 ln 2 , 2 1 + 2 ln 10 ln 2 , , 2 1 + K ln 10 ln 2 ,

so the number of favorables cases in 2 , 2 2 , , 2 N is K , and the probability that an arbitrarily selected integer from 2 , 2 2 , 2 3 , , 2 N has leading digit 1 is

p N = K N = 1 N N ln 2 ln 10 .

Since N ln 2 ln 10 N ln 2 ln 10 < N ln 2 ln 10 + 1 ,

ln 2 ln 10 1 N p N ln 2 ln 10 ,

thus

lim N p N = ln 2 ln 10 .

There are as many powers 5 n in 5 , 5 2 , , 5 N such that 5 n has leading coefficient 1 than powers 2 n + 1 in 2 2 , , 2 N + 1 such that 2 n + 1 has leading coefficient 1 , thus the “probability” that a power of 5 has leading digit 1 is also ln 2 ln 10 .

User profile picture
2025-04-02 10:52
Comments