cp's OEIS Frontend

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.

A358840 Primorial base exp-function reduced modulo 6.

Original entry on oeis.org

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

Views

Author

Antti Karttunen, Dec 02 2022

Keywords

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.

Programs

  • PARI
    A358840(n) = { my(m=1, p=2); while(n, m *= (p^(n%p)); n = n\p; p = nextprime(1+p)); (m%6); };

Formula

a(n) = A010875(A276086(n)) = A276086(n) mod 6.