sequence with relative primes , pages of a book numbered 2 to 400
Source: Mexican Mathematical Olympiad 1994 OMM P4
July 29, 2018
number theoryInteger sequencerelatively prime
Problem Statement
A capricious mathematician writes a book with pages numbered from to . The pages are to be read in the following order. Take the last unread page (), then read (in the usual order) all pages which are not relatively prime to it and which have not been read before. Repeat until all pages are read. So, the order would be . What is the last page to be read?