|
EXAMPLE
|
The first 8 terms of the sequence (a(0) through a(7)) are 1,2,3,5,7,9,8,13. Of these there are 6 terms that are coprime to 8 (those terms being 1, 3, 5, 7, 9, and 13). So a(8) is the 6th positive integer missing from the first 8 terms of the sequence (i.e. is the 6th integer of the sequence 4, 6, 10, 11, 12, 14, 15, 16,..). So a(8) = 14.
|