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