login
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