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.

A146562 'Erratic' numbers in A064353 [Kolakoski (1,3)].

Original entry on oeis.org

3, 6, 9, 15, 18, 21, 25, 29, 32, 35, 41, 44, 47, 51, 54, 57, 61, 64, 67, 73, 76, 79, 83, 87, 90, 93, 99, 102, 105, 109, 112, 115, 121, 124, 127, 131, 134, 137, 143, 146, 149, 153, 157, 160, 163, 169, 172, 175, 179, 182, 185, 189, 192, 195, 201, 204, 207, 211
Offset: 1

Views

Author

J. Perry (johnandruth(AT)jrperry.orangehome.co.uk), Nov 01 2008

Keywords

Comments

A064353(n) is generally 1 if n is odd and 3 if n is even. An 'erratic' number breaks this rule.

Examples

			A064353(3) is predicted to be 1 but is 3 so 3 is in the list.
		

Crossrefs

Cf. A064353.
Cf. A010684.

Programs

  • Haskell
    import Data.List (findIndices)
    a146562 n = a146562_list !! (n-1)
    a146562_list = map (+ 1) $
       findIndices (/= 0) $ zipWith (-) a064353_list $ cycle [1, 3]
    -- Reinhard Zumkeller, Aug 03 2013