This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.
%I A358840 #11 Dec 03 2022 19:41:06 %S A358840 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 A358840 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 A358840 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 A358840 Primorial base exp-function reduced modulo 6. %H A358840 Antti Karttunen, <a href="/A358840/b358840.txt">Table of n, a(n) for n = 0..65537</a> %H A358840 <a href="/index/Pri#primorialbase">Index entries for sequences related to primorial base</a> %F A358840 a(n) = A010875(A276086(n)) = A276086(n) mod 6. %o A358840 (PARI) A358840(n) = { my(m=1, p=2); while(n, m *= (p^(n%p)); n = n\p; p = nextprime(1+p)); (m%6); }; %Y A358840 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 A358840 Cf. also A353486, A358850. %K A358840 nonn %O A358840 0,2 %A A358840 _Antti Karttunen_, Dec 02 2022