OFFSET
1,2
COMMENTS
It appears that the first digit repeats 1, 2, 4, 7, 1, 5, 1, 7, 4, 2, 1. - T. D. Noe, Apr 05 2011
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..200
MATHEMATICA
nn = 20; d = Flatten[Table[{1, 2, 3, 4, 5, 6, 7, 8, 9, 1, 0}, {Ceiling[nn (nn + 1)/22]}]]; Table[e = (n + 1) n/2; s = e - n + 1; FromDigits[d[[s ;; e]]], {n, nn}] (* T. D. Noe, Apr 05 2011 *)
PROG
(PARI) N=[]; k=Mod(-1, 10); for(n=1, 20, while(#N<n, N=concat(N, Vec(Str(1+lift(k++))))); print1(eval(concat(vecextract(N, 2^n-1)))", "); N=vecextract(N, Str("^.."n))) \\ M. F. Hasler, May 08 2014
CROSSREFS
KEYWORD
nonn,base
AUTHOR
STATUS
approved