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.

A296077 a(n) = 1 if 1 + A002322(n) is prime, 0 otherwise, where A002322 is Carmichael lambda.

Original entry on oeis.org

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

Views

Author

Antti Karttunen, Dec 05 2017

Keywords

Comments

Out of the first 65537 values, 39743 are 1's (indicating primes), and 25794 are 0's, indicating nonprimes.

Crossrefs

Characteristic function for A263028.
Cf. A002322, A010051, A263027, A263029 (positions of zeros), A296076, A296079.

Programs

  • Mathematica
    Table[If[PrimeQ[CarmichaelLambda[n]+1],1,0],{n,120}] (* Harvey P. Dale, Sep 23 2020 *)
  • PARI
    A296077(n) = isprime(1+lcm(znstar(n)[2]));

Formula

a(n) = A010051(A263027(n)) = A010051(1+A002322(n)).