%I #11 Dec 03 2022 19:41:06
%S 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,
%T 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,
%U 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
%N Primorial base exp-function reduced modulo 6.
%H Antti Karttunen, <a href="/A358840/b358840.txt">Table of n, a(n) for n = 0..65537</a>
%H <a href="/index/Pri#primorialbase">Index entries for sequences related to primorial base</a>
%F a(n) = A010875(A276086(n)) = A276086(n) mod 6.
%o (PARI) A358840(n) = { my(m=1, p=2); while(n, m *= (p^(n%p)); n = n\p; p = nextprime(1+p)); (m%6); };
%Y 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).
%Y Cf. also A353486, A358850.
%K nonn
%O 0,2
%A _Antti Karttunen_, Dec 02 2022
|