OFFSET
1,1
COMMENTS
This is conceptually related to Benford's law.
FORMULA
a(n) for odd values of n is simply "2" repeated (n+1)/2 times (sum as i=1->(n/2) of 10^(i-1)). For even values of n, it's a(n-1)*8.
G.f.: 2*(1+8*x)/((1-x)*(1+x)*(1-10*x^2)). [Joerg Arndt, Aug 14 2013]
PROG
(PARI) Vec(2*(1+8*x)/((1-x)*(1+x)*(1-10*x^2))+O(x^66)) \\ Joerg Arndt, Aug 14 2013
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Michael Turniansky, Aug 14 2013
STATUS
approved