OFFSET
0,2
LINKS
Harvey P. Dale, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (1,0,0,0,0,0,0,0,100,-100).
FORMULA
From Alois P. Heinz, Mar 12 2025: (Start)
G.f.: x*(20*x^8+20*x^7+20*x^6+20*x^5+11*x^4+2*x^3+2*x^2+2*x+2)/((x-1)*(100*x^9-1)).
a(n) = A051885(2*n). (End)
MAPLE
a:= n-> parse(cat(irem(2*n, 9, 'r'), 9$r)):
seq(a(n), n=0..38); # Alois P. Heinz, Mar 12 2025
MATHEMATICA
a[n_] := (Mod[2n, 9] + 1)*10^Floor[2n/9] - 1; Table[a[n], {n, 0, 38}] (* James C. McMahon, Mar 13 2025 *)
LinearRecurrence[{1, 0, 0, 0, 0, 0, 0, 0, 100, -100}, {0, 2, 4, 6, 8, 19, 39, 59, 79, 99}, 40] (* Harvey P. Dale, Jan 16 2026 *)
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Paul Curtz, Oct 17 2007
STATUS
approved
