login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A068630
a(0)=0; a(n) = n + a(n-1) if gcd(n,a(n-1)) = 1 or a(n-1) = 0; a(n) = a(n-1) - n if n divides a(n-1), otherwise a(n) = a(n-1).
0
0, 1, 3, 0, 4, 9, 9, 16, 8, 17, 27, 38, 38, 51, 65, 65, 81, 98, 98, 117, 137, 158, 158, 181, 205, 205, 231, 231, 231, 260, 260, 291, 323, 356, 356, 391, 427, 464, 464, 503, 543, 584, 584, 627, 627, 627, 673, 720, 672, 672, 672, 672, 672, 725, 779, 834, 834, 834
OFFSET
0,3
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Amarnath Murthy, Feb 26 2002
EXTENSIONS
Offset and a(55)-a(57) corrected by Gionata Neri, Mar 23 2017
STATUS
approved