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.

A105153 Consider trajectory of n under repeated application of map k -> A105025(k); a(n) = length of cycle.

Original entry on oeis.org

1, 1, 2, 2, 1, 2, 1, 2, 4, 2, 2, 4, 4, 2, 2, 4, 4, 1, 4, 4, 4, 1, 4, 4, 4, 1, 4, 4, 4, 1, 4, 4, 4, 4, 8, 4, 4, 4, 4, 8, 4, 4, 8, 4, 4, 4, 4, 8, 4, 4, 8, 4, 4, 4, 4, 8, 4, 4, 8, 4, 4, 4, 4, 8, 2, 16, 8, 4, 2, 4, 8, 16, 2, 16, 8, 4, 2, 4, 8, 16, 2, 16, 8, 4, 2, 4, 8, 16, 2, 16, 8, 4, 2, 4, 8, 16, 2, 16, 8, 4, 2
Offset: 0

Views

Author

Philippe Deléham, Apr 30 2005

Keywords

Comments

Why is this always a power of 2?

Crossrefs

Positions of 1's: A105271.

Programs

  • Haskell
    a105153 n = t [n] where
       t xs@(x:_) | y `elem` xs = length xs
                  | otherwise   = t (y : xs) where y = a105025 x
    -- Reinhard Zumkeller, Jul 21 2012

Extensions

More terms from R. J. Mathar, Aug 10 2007