OFFSET
1,4
LINKS
MATHEMATICA
terms = 100; Clear[cnt]; cnt[_] = n = 0;
Do[a[++n] = ++cnt[k], {k, RealDigits[Pi, 10, terms][[1]]}];
a /@ Range[terms] (* Jean-François Alcover, Nov 15 2019 *)
PROG
(Haskell)
a064823_list = f a000796_list $ replicate 10 0 where
f (d:ds) cs = (v + 1) : f ds (us ++ (v + 1) : vs) where
(us, v:vs) = splitAt d cs
-- Reinhard Zumkeller, Jul 14 2013
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Klaus Strassburger (strass(AT)ddfi.uni-duesseldorf.de), Oct 23 2001
STATUS
approved