A105154 Consider trajectory of n under repeated application of map k -> A105027(k); a(n) = length of cycle.
1, 1, 2, 2, 2, 1, 2, 1, 4, 2, 2, 4, 4, 2, 2, 4, 4, 4, 1, 4, 4, 4, 1, 4, 4, 4, 1, 4, 4, 4, 1, 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, 4, 4, 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, 4
Offset: 0
Links
- Hagen von Eitzen, Table of n, a(n) for n = 0..10000
- David Applegate, Benoit Cloitre, Philippe Deléham and N. J. A. Sloane, Sloping binary numbers: a new sequence related to the binary numbers [pdf, ps].
Programs
-
Haskell
a105154 n = t [n] where t xs@(x:_) | y `elem` xs = length xs | otherwise = t (y : xs) where y = a105027 x -- Reinhard Zumkeller, Jul 21 2012
Extensions
More terms taken from b-file by Hagen von Eitzen, Jun 24 2009
Comments