OFFSET
0,2
COMMENTS
Numbers of the form 6...609...9 (i.e., consisting of an odd number of digits with the middle digit 0, all digits to the left of the middle digit 6 and all digits to the right of the middle digit 9).
LINKS
Index entries for linear recurrences with constant coefficients, signature (111,-1110,1000).
FORMULA
G.f.: 20/(3-300*x)+1/(x-1)+17/(30*x-3); a(n) = 111*a(n-1)-1110*a(n-2)+1000*a(n-3). - Wesley Ivan Hurt, Sep 15 2014
MAPLE
A246880:=n->(6*((10^n - 1)/9))*(10^(n + 1)) + (9*(10^n - 1)/9): seq(A246880(n), n=0..15); # Wesley Ivan Hurt, Sep 15 2014
MATHEMATICA
Table[(6*((10^n - 1)/9))*(10^(n + 1)) + (9*(10^n - 1)/9), {n, 15}] (* Wesley Ivan Hurt, Sep 15 2014 *)
Join[{0}, CoefficientList[Series[20/(3 x - 300 x^2) + 1/(x^2 - x) + 17/(30 x^2 - 3 x), {x, 0, 30}], x]] (* Wesley Ivan Hurt, Sep 15 2014 *)
PROG
(PARI) a(n)=6*((10^n-1)/9)*(10^(n+1))+9*(10^n-1)/9
(Magma) [(6*((10^n - 1)/9))*(10^(n + 1)) + (9*(10^n - 1)/9) : n in [0..15]]; // Wesley Ivan Hurt, Sep 15 2014
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Felix Fröhlich, Sep 06 2014
STATUS
approved
