OFFSET
0,1
LINKS
Index entries for linear recurrences with constant coefficients, signature (7,-14,8).
FORMULA
a(n) = 7*a(n-1) -14*a(n-2) +8*a(n-3). G.f.: 3*(10-39*x+28*x^2)/((1-x) * (2*x-1) * (4*x-1)).
MATHEMATICA
Table[(2^(n+4)-1)(2^n+1), {n, 0, 30}] (* or *) LinearRecurrence[{7, -14, 8}, {30, 93, 315}, 30] (* Harvey P. Dale, Dec 11 2011 *)
PROG
(QuickBASIC) DO: DIM x AS LONG: n = 0: x = ((2 ^ (n + 2)) - 1) * ((2 ^ (n - 2)) + 1): PRINT x: n = n + 1: LOOP
(PARI) a(n)=(2^(n+4)-1)*(2^n+1) \\ Charles R Greathouse IV, Jul 03 2016
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Boris Hostnik (megpplus(AT)siol.net), Sep 04 2009
EXTENSIONS
Fractional values removed by R. J. Mathar, Sep 20 2009
STATUS
approved