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

A372554
a(n) = A050602(n, 2n+1).
2
0, 2, 0, 2, 0, 4, 2, 2, 0, 2, 0, 4, 2, 3, 2, 2, 0, 2, 0, 2, 0, 6, 4, 4, 2, 2, 2, 3, 2, 3, 2, 2, 0, 2, 0, 2, 0, 4, 2, 2, 0, 2, 0, 6, 4, 4, 4, 4, 2, 2, 2, 2, 2, 5, 3, 3, 2, 2, 2, 3, 2, 3, 2, 2, 0, 2, 0, 2, 0, 4, 2, 2, 0, 2, 0, 4, 2, 3, 2, 2, 0, 2, 0, 2, 0, 8, 6, 6, 4, 4, 4, 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 4, 2, 2, 2, 2
OFFSET
0,2
PROG
(PARI)
A050602sq(x, y) = if(!bitand(x, y), 0, 1+A050602sq(bitxor(x, y), 2*bitand(x, y)));
A372554(n) = A050602sq(n, n+n+1);
CROSSREFS
Cf. A022340 (positions of 0's), A050602.
Cf. A002450 (seems to give the positions of records).
Cf. also A329603.
Sequence in context: A238763 A029186 A283023 * A288182 A072680 A067770
KEYWORD
nonn
AUTHOR
Antti Karttunen, May 05 2024
STATUS
approved