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”).

A316665
a(n) is the least k > 0 such that k*n does not belong to A002202.
2
3, 7, 1, 17, 1, 15, 1, 19, 1, 5, 1, 43, 1, 1, 1, 19, 1, 5, 1, 17, 1, 7, 1, 167, 1, 1, 1, 11, 1, 3, 1, 19, 1, 1, 1, 67, 1, 1, 1, 17, 1, 17, 1, 7, 1, 5, 1, 211, 1, 1, 1, 7, 1, 11, 1, 13, 1, 3, 1, 139, 1, 1, 1, 31, 1, 9, 1, 1, 1, 5, 1, 109, 1, 1, 1, 1, 1, 3, 1
OFFSET
1,1
COMMENTS
All terms are odd.
FORMULA
a(n) = 1 iff n belongs to A007617.
PROG
(PARI) a(n) = forstep (k=1, oo, 2, if (!istotient(n*k), return (k)))
CROSSREFS
Sequence in context: A210037 A210197 A324715 * A110238 A077505 A309376
KEYWORD
nonn
AUTHOR
Rémy Sigrist, Jul 10 2018
STATUS
approved