finding the number of 2015 and 2016 in an infinite sequence
Source: 2017 Azerbaijan Junior National Olympiad
April 28, 2022
combinatoricsnumber theorySequence
Problem Statement
For all let be the sum of the smallest factor of that is not 1 and . The computer prints with order: ( Because etc.). In this infinite sequence, how many times will be and written? (Explain your answer)