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.

A327874 Number of length n primitive (aperiodic) palindromes with integer entries that cover an initial interval of positive integers.

Original entry on oeis.org

1, 1, 0, 2, 2, 12, 10, 74, 72, 538, 528, 4682, 4668, 47292, 47218, 545820, 545760, 7087260, 7086710, 102247562, 102247020, 1622632496, 1622627890, 28091567594, 28091562840, 526858348368, 526858301088, 10641342969902, 10641342923148, 230283190977852, 230283190431480
Offset: 0

Views

Author

Andrew Howroyd, Sep 28 2019

Keywords

Crossrefs

Row sums of A327873.

Programs

  • PARI
    a(n) = {if(n<1, n==0, sumdiv(n, d, moebius(n/d)*sum(k=1, ceil(d/2), k!*stirling(ceil(d/2), k, 2))))}

Formula

a(n) = Sum_{d|n} mu(n/d)*A000670(ceiling(d/2)) for n > 0.