OFFSET
0,3
REFERENCES
A. Renyi (1957), Representation for real numbers and their ergodic properties, Acta. Math. Acad. Sci. Hung., 8, 477-493.
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 0..1000
MATHEMATICA
nmax = 500; r = 3/2; x = 1; (* b = A058840 *) b[0] = b[1] = 1;
For[n=2, n <= nmax, n++, x = If[r x > 1, r x - 1, r x]; b[n] = Floor[r x]];
Join[{0}, Length /@ Select[Split[Table[b[n], {n, 0, nmax}]], #[[1]] == 0&]] (* Jean-François Alcover, Dec 21 2018, using Benoit Cloitre's code for A058840 *)
PROG
(Haskell)
import Data.List (group)
a058841 n = a058841_list !! n
a058841_list =
0 : (map length $ filter ((== 0) . head) $ group a058840_list)
-- Reinhard Zumkeller, Jul 01 2011
CROSSREFS
KEYWORD
nonn,nice,easy
AUTHOR
Claude Lenormand (claude.lenormand(AT)free.fr), Jan 05 2001
EXTENSIONS
More terms from Larry Reeves (larryr(AT)acm.org), Feb 22 2001
Data corrected for n>33 by Reinhard Zumkeller, Jul 01 2011
STATUS
approved