An Elegant Way To Define A Sequence
Answer : I believe your sequence continues forever but grows quickly. If n n n is large, the density of primes around n n n is log n \log n lo g n . Since log n \log n lo g n is so much smaller than n n n , the chance a random n n n has k k k arrows is about 1 ( log n ) k + 1 \frac 1{(\log n)^{k+1}} ( l o g n ) k + 1 1 . The expected number of sequences of length k k k above 1 0 12 , 10^{12}, 1 0 12 , say, is then ∫ 1 0 12 ∞ d n ( log n ) k + 1 \int_{10^{12}}^\infty \frac {dn}{(\log n)^{k+1}} ∫ 1 0 12 ∞ ( l o g n ) k + 1 d n . This diverges because ( log n ) k (\log n)^k ( lo g n ) k becomes less than n n n for n n n large enough and we know the integral of 1 n \frac 1n n 1 diverges. Each subtraction is only of order n log n \frac n{\log n} l o g n n , which is small compared to n n n and the log will not change much. If we ask what length of sequence we expect to find among the 12 12 12 digit numbers, we note that the log of these numbers ...