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.

A057334 In A000120, replace each entry k with the k-th prime and replace 0 with 1.

Original entry on oeis.org

1, 2, 2, 3, 2, 3, 3, 5, 2, 3, 3, 5, 3, 5, 5, 7, 2, 3, 3, 5, 3, 5, 5, 7, 3, 5, 5, 7, 5, 7, 7, 11, 2, 3, 3, 5, 3, 5, 5, 7, 3, 5, 5, 7, 5, 7, 7, 11, 3, 5, 5, 7, 5, 7, 7, 11, 5, 7, 7, 11, 7, 11, 11, 13, 2, 3, 3, 5, 3, 5, 5, 7, 3, 5, 5, 7, 5, 7, 7, 11, 3, 5, 5, 7
Offset: 0

Views

Author

Alford Arnold, Aug 27 2000

Keywords

Crossrefs

Programs

  • PARI
    a(n) = if (n==0, 1, prime(hammingweight(n))); \\ Michel Marcus, Feb 08 2014

Formula

a(n) = A000040(A000120(n)) for n>0.
a(n) = A008578(1 + A000120(n)). - Alois P. Heinz, Nov 03 2024

Extensions

More terms from Michel Marcus, Feb 08 2014