login
A358840
Primorial base exp-function reduced modulo 6.
10
1, 2, 3, 0, 3, 0, 5, 4, 3, 0, 3, 0, 1, 2, 3, 0, 3, 0, 5, 4, 3, 0, 3, 0, 1, 2, 3, 0, 3, 0, 1, 2, 3, 0, 3, 0, 5, 4, 3, 0, 3, 0, 1, 2, 3, 0, 3, 0, 5, 4, 3, 0, 3, 0, 1, 2, 3, 0, 3, 0, 1, 2, 3, 0, 3, 0, 5, 4, 3, 0, 3, 0, 1, 2, 3, 0, 3, 0, 5, 4, 3, 0, 3, 0, 1, 2, 3, 0, 3, 0, 1, 2, 3, 0, 3, 0, 5, 4, 3, 0, 3, 0, 1, 2, 3, 0
OFFSET
0,2
FORMULA
a(n) = A010875(A276086(n)) = A276086(n) mod 6.
PROG
(PARI) A358840(n) = { my(m=1, p=2); while(n, m *= (p^(n%p)); n = n\p; p = nextprime(1+p)); (m%6); };
CROSSREFS
Cf. A010875, A276086, A328632 (positions of 1's), A358841 (their characteristic function), A047235 (positions of 3's), A120325 (their char. fun), A358843 (positions of 5's), A358842 (their char. fun).
Cf. also A353486, A358850.
Sequence in context: A241070 A128621 A132385 * A191716 A089235 A347794
KEYWORD
nonn
AUTHOR
Antti Karttunen, Dec 02 2022
STATUS
approved