A202340 Number of times n occurs in Hofstadter H-sequence A005374.
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
Keywords
Links
- Reinhard Zumkeller, Table of n, a(n) for n = 0..10000
- Jeffrey Shallit, The Narayana Morphism and Related Words, arXiv:2503.01026 [math.CO], 2025.
- Eric Weisstein's World of Mathematics, Hofstadter H-Sequence.
- Wikipedia, Hofstadter sequence.
- Index entries for Hofstadter-type sequences.
Programs
-
Haskell
import Data.List (group) a202340 n = a202340_list !! n a202340_list = map length $ group a005374_list
Comments