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.

A341345 a(n) = A048673(n) mod 3.

Original entry on oeis.org

1, 2, 0, 2, 1, 2, 0, 2, 1, 2, 1, 2, 0, 2, 0, 2, 1, 2, 0, 2, 1, 2, 0, 2, 1, 2, 0, 2, 1, 2, 1, 2, 0, 2, 0, 2, 0, 2, 1, 2, 1, 2, 0, 2, 1, 2, 0, 2, 1, 2, 0, 2, 0, 2, 1, 2, 1, 2, 1, 2, 1, 2, 0, 2, 0, 2, 0, 2, 1, 2, 1, 2, 1, 2, 0, 2, 0, 2, 0, 2, 1, 2, 0, 2, 1, 2, 0, 2, 1, 2, 1, 2, 0, 2, 0, 2, 0, 2, 1, 2, 1, 2, 0, 2, 1
Offset: 1

Views

Author

Antti Karttunen, Feb 09 2021

Keywords

Crossrefs

Cf. A007395 (even bisection), A341346 (odd bisection), A341347.
Cf. also A292603.

Programs

  • PARI
    A003961(n) = { my(f=factor(n)); for (i=1, #f~, f[i, 1] = nextprime(f[i, 1]+1)); factorback(f); }; \\ From A003961
    A341345(n) = (((A003961(n)+1)/2)%3);

Formula

a(n) = A010872(A048673(n)).
a(n) = 0 iff A292247(n) is odd.
a(n) = 0 iff A292250(n) is odd, or equally, iff both A291759(n) and A304759(n) are even.
a(n) = 0 iff A292251(n) > 0.
a(n) = 1 iff A292248(n) is odd.
a(n) = 1 iff A304759(n) is odd, or equally, iff both A291759(n) and A292250(n) are even.
a(2n) = 2.