For any integer , let be the smallest prime which does not divide . Define the integer function to be the product of all primes less than if , and if . Let be the sequence defined by , and for . Find the smallest positive integer, such that .
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.
Let q k denote the k -th prime. Assign to the positive integer m = ∏ k = 1 ∞ q k a k the infinite string S ( m ) = a 1 , a 2 , … (of course, for some K , all k > K have a k = 0 ). Look at how we get S ( x n + 1 ) from S ( x n ) . Recall that x n + 1 = X ( x n ) x n p ( x n ) . Let the index of the prime p ( x n ) in ( q k ) be ℓ , then a ℓ is the index of the first number in S ( x n ) for which a ℓ = 0 . Hence S ( x n + 1 ) is the same as S ( x n ) with its first ℓ − 1 numbers decreased by 1 , and its ℓ -th number increased by 1 . Let's prove by induction that S ( x n ) is none other than the binary representation of n written backwards. It's easy to check that this holds for small n , now assume it holds for some n > 0 . Then the binary representation of n + 1 can be derived from S ( x n ) by changing the first few 1 digits to 0 , until we hit a 0 , and we switch that 0 to 1 . But since this is the same way to reach S ( x n + 1 ) , the two strings are the same. This establishes our claim. Since S ( 2 0 9 0 ) = S ( 2 ⋅ 5 ⋅ 1 1 ⋅ 1 9 ) = S ( p 1 ⋅ p 3 ⋅ p 5 ⋅ p 8 ) = 1 0 1 0 1 0 0 1 ′ 0 0 0 … , this means that the index n we are looking for is 2 7 + 2 4 + 2 2 + 2 0 = 1 2 8 + 1 6 + 4 + 1 = 1 4 9