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

A340374
a(n) = 1 if the odd part of n satisfies Korselt's criterion (is in A324050), 0 otherwise.
2
1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 1, 0, 1, 0, 1, 1, 0, 1, 1, 0, 1, 0, 0, 1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 1, 0, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 0, 1, 1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 0, 1, 0, 0, 1, 1, 0, 1, 1, 0, 0, 1, 0, 1, 1, 0, 0, 1, 0, 1, 0, 1, 1, 0, 0, 0, 1, 0, 1, 1, 0
OFFSET
1
FORMULA
a(n) = [A002322(A000265(n)) divides A000265(n)-1], where [ ] is the Iverson bracket.
PROG
(PARI)
A000265(n) = (n>>valuation(n, 2));
A002322(n) = lcm(znstar(n)[2]); \\ From A002322
isA324050(n) = (0==((n-1)%A002322(n)));
A340374(n) = isA324050(A000265(n));
CROSSREFS
Differs from A340371 for the first time at n=561, where a(561) = 1.
Sequence in context: A071023 A166280 A340371 * A070887 A209635 A355689
KEYWORD
nonn
AUTHOR
Antti Karttunen, Jan 06 2021
STATUS
approved