OFFSET
0,1
COMMENTS
LINKS
Colin Barker, Table of n, a(n) for n = 0..499
Index entries for linear recurrences with constant coefficients, signature (111,-1110,1000).
FORMULA
a(n) = 111*a(n-1)-1110*a(n-2)+1000*a(n-3). - Colin Barker, Apr 27 2015
G.f.: -9*(190*x^2-92*x+1) / ((x-1)*(10*x-1)*(100*x-1)). - Colin Barker, Apr 27 2015
MAPLE
MATHEMATICA
Table[(10^n)^2 + 7*(10^n) + 1, {n, 0, 20}] (* T. D. Noe, Aug 12 2013 *)
LinearRecurrence[{111, -1110, 1000}, {9, 171, 10701}, 20] (* Harvey P. Dale, Apr 12 2020 *)
PROG
(PARI) Vec(-9*(190*x^2-92*x+1)/((x-1)*(10*x-1)*(100*x-1)) + O(x^100)) \\ Colin Barker, Apr 27 2015
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Lance J. Weingartz, Jul 29 2013
STATUS
approved