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.

A202340 Number of times n occurs in Hofstadter H-sequence A005374.

Original entry on oeis.org

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

Views

Author

Reinhard Zumkeller, Dec 17 2011

Keywords

Comments

a(A202341(n)) = 1; a(A202342(n)) = 2.

Crossrefs

Programs

  • Haskell
    import Data.List (group)
    a202340 n = a202340_list !! n
    a202340_list = map length $ group a005374_list

Formula

a(n) = A136495(n+1) - A136495(n) for n > 0. - Alan Michael Gómez Calderón, Dec 23 2024