OFFSET
0,3
COMMENTS
LINKS
Index entries for linear recurrences with constant coefficients, signature (31, -108).
FORMULA
a(n) = (27^n-4^n)/23.
G.f.: x/((27*x-1)*(4*x-1)).
a(0)=0, a(1)=1, a(n)=31*a(n-1)-108*a(n-2). [From Harvey P. Dale, Sep 01 2011]
MATHEMATICA
Table[(27^n-4^n)/23, {n, 0, 20}] (* or *) LinearRecurrence[{31, -108}, {0, 1}, 20] (* Harvey P. Dale, Sep 01 2011 *)
PROG
(PARI) a(n)=(27^n-4^n)/23 \\ Charles R Greathouse IV, Oct 07 2015
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Johannes W. Meijer, Sep 21 2010
STATUS
approved