OFFSET
0,2
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (3,-2,1).
FORMULA
G.f.: (1 + x) / (1 - 3*x + 2*x^2 - x^3). - Colin Barker, Feb 17 2017
MATHEMATICA
LinearRecurrence[{3, -2, 1}, {1, 4, 10}, 100] (* G. C. Greubel, Feb 17 2017 *)
PROG
(PARI) a=[1, 4, 10]; for(i=1, 99, a=concat(a, 3*a[#a]-2*a[#a-1]+a[#a-2])); a \\ Charles R Greathouse IV, Jun 01 2011
(PARI) Vec((1 + x) / (1 - 3*x + 2*x^2 - x^3) + O(x^40)) \\ Colin Barker, Feb 17 2017
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Paul Curtz, Apr 25 2008
EXTENSIONS
More terms from Vladimir Joseph Stephan Orlovsky, Jan 20 2009
STATUS
approved