A258383 Run lengths of consecutive identical terms in A062234.
2, 2, 2, 2, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 2, 1, 2, 1, 1, 1, 1
Offset: 1
Keywords
Examples
See A258432.
Links
- Reinhard Zumkeller, Table of n, a(n) for n = 1..10000
Programs
-
Haskell
import Data.List (group) a258383 n = a258383_list !! (n-1) a258383_list = map length $ group a062234_list
-
Mathematica
Map[Length, Most[Split[ListConvolve[{-1, 2}, Prime[Range[200]]]]]] (* Paolo Xausa, Oct 30 2024 *)
Comments