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

A353642
Even bisection of A353640.
4
0, 1, 2, 1, 0, 1, 2, 3, 0, 3, 2, 3, 0, 1, 2, 1, 2, 1, 0, 3, 2, 3, 0, 3, 2, 1, 0, 1, 2, 1, 2, 1, 0, 1, 2, 1, 0, 3, 2, 3, 0, 3, 2, 1, 0, 3, 0, 3, 2, 1, 0, 1, 2, 1, 0, 3, 2, 3, 0, 3, 0, 3, 2, 3, 0, 3, 2, 1, 0, 1, 2, 1, 0, 3, 2, 1, 2, 1, 0, 3, 2, 3, 0, 3, 2, 1, 0, 1, 2, 1, 2, 1, 0, 1, 2, 1, 0, 3, 2, 3, 0, 3, 2, 1, 0, 1
OFFSET
0,3
FORMULA
a(n) = A353640(2*n) = A010873(A342002(2*n)).
For all n >= 0, A000035(a(n)) = A000035(n). [Preserves parity]
PROG
(PARI)
A353640(n) = { my(s=0, m=1, p=2, e); while(n, e = (n%p); m *= p^(e>0); s += (e/p); n = n\p; p = nextprime(1+p)); ((s*m)%4); };
A353642(n) = A353640(n+n);
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Antti Karttunen, May 01 2022
STATUS
approved