OFFSET
0,1
REFERENCES
A. H. Beiler, Recreations in the Theory of Numbers, Dover, N.Y., 1964, pp. 189, 194-196.
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..2000
Index entries for linear recurrences with constant coefficients, signature (4,-4).
FORMULA
a(n) = 4*a(n-1) - 4*a(n-2), with a(0) = -2, a(1) = -1.
G.f.: -(2-7*x)/(1-2*x)^2. - Colin Barker, Apr 07 2012
E.g.f.: (3*x - 2)*exp(2*x). - G. C. Greubel, May 16 2019
MATHEMATICA
Table[2^(n-1)*(3*n-4), {n, 0, 30}] (* G. C. Greubel, May 16 2019 *)
PROG
(Magma) [2^(n-1)*(3*n-4): n in [0..30]]; // Vincenzo Librandi, Sep 26 2011
(PARI) vector(30, n, n--; 2^(n-1)*(3*n-4)) \\ G. C. Greubel, May 16 2019
(Sage) [2^(n-1)*(3*n-4) for n in (0..30)] # G. C. Greubel, May 16 2019
(GAP) List([0..30], n-> 2^(n-1)*(3*n-4)) # G. C. Greubel, May 16 2019
CROSSREFS
KEYWORD
sign,easy
AUTHOR
Barry E. Williams, Jan 17 2000
STATUS
approved