OFFSET
0,1
COMMENTS
LINKS
Karl V. Keller, Jr., Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (2,-1).
FORMULA
a(n) = 22*n + 19.
From Colin Barker, Oct 05 2014: (Start)
a(n) = 2*a(n-1) - a(n-2).
G.f.: (19 + 3*x) / (1-x)^2. (End)
E.g.f.: (19 + 22*x)*exp(x). - G. C. Greubel, Nov 13 2024
EXAMPLE
For n = 4, 22*4 + 19 = 107.
MATHEMATICA
22*Range[0, 50]+19 (* Harvey P. Dale, Dec 20 2014 *)
(* Alternative: *)
LinearRecurrence[{2, -1}, {19, 41}, 50] (* Harvey P. Dale, Dec 20 2014 *)
PROG
(Python)
for n in range(101):
print(22*n+19, end=', ')
(PARI)
Vec((3*x+19)/(x-1)^2 + O(x^100)) \\ Colin Barker, Oct 05 2014
(Magma) [22*n+19: n in [0..60]]; // G. C. Greubel, Nov 13 2024
CROSSREFS
KEYWORD
nonn,easy,changed
AUTHOR
Karl V. Keller, Jr., Oct 05 2014
STATUS
approved
