OFFSET
0,2
LINKS
FORMULA
G.f.: 7*x/((1 - 3*x)*(1 - 10*x)).
a(n) = 13*a(n-1) - 30*a(n-2).
a(2*n) mod 10^n = A016189(n). - Michel Marcus, Oct 05 2014
a(n+1) = 7*A016145(n). - Bruno Berselli, Oct 05 2014
MATHEMATICA
Table[10^n - 3^n, {n, 0, 25}] (* or *) CoefficientList[Series[(7 x)/((1 - 3 x) (1 - 10 x)), {x, 0, 30}], x]
LinearRecurrence[{13, -30}, {0, 7}, 30] (* Harvey P. Dale, Jul 10 2021 *)
PROG
(Magma) [10^n-3^n: n in [0..30]];
(PARI) a(n) = 10^n - 3^n \\ Michel Marcus, Oct 05 2014
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Vincenzo Librandi, Oct 05 2014
STATUS
approved