OFFSET
0,2
REFERENCES
Italo Ghersi, Matematica dilettevole e curiosa, p. 139, Hoepli, Milano, 1967. [From Vincenzo Librandi, Dec 02 2009]
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (2,-1).
FORMULA
From G. C. Greubel, Sep 18 2019: (Start)
a(n) = 2*a(n-1) - a(n-2).
G.f.: (1 + 21*x)/(1-x)^2.
E.g.f.: (1 + 22*x)*exp(x). (End)
MAPLE
seq(1+22*n, n=0..60); # G. C. Greubel, Sep 18 2019
MATHEMATICA
22*Range[0, 60]+1 (* Harvey P. Dale, Jan 09 2011 *)
PROG
(PARI) vector(60, n, 22*n-21) \\ G. C. Greubel, Sep 18 2019
(Magma) [1+22*n: n in [0..60]]; // G. C. Greubel, Sep 18 2019
(Sage) [1+22*n for n in (0..60)] # G. C. Greubel, Sep 18 2019
(GAP) List([0..60], n-> 1+22*n ); # G. C. Greubel, Sep 18 2019
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Reinhard Zumkeller, Jun 17 2009
STATUS
approved