OFFSET
0,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..900
Index entries for linear recurrences with constant coefficients, signature (27,-242,816,-864).
FORMULA
a(n) = 27*a(n-1) - 242*a(n-2) + 816*a(n-3) - 864*a(n-4), a(0)=1, a(1)=27, a(2)=487, a(3)=7431. - Harvey P. Dale, Jul 21 2012
a(n) = -2*2^n/35 + 4*4^n/5 - 243*9^n/35 + 36*12^n/5. - R. J. Mathar, Jun 20 2013
a(n) = (4^(n+1)-2^(n+1))/2+21*a(n-1)-108*a(n-2). - Vincenzo Librandi, Jul 02 2026
MATHEMATICA
CoefficientList[Series[1/((1-2x)(1-4x)(1-9x)(1-12x)), {x, 0, 30}], x] (* Harvey P. Dale, Jul 21 2012 *)
(* Alternative: *)
LinearRecurrence[{27, -242, 816, -864}, {1, 27, 487, 7431}, 30] (* Harvey P. Dale, Jul 21 2012 *)
PROG
(Magma) I:=[1, 27]; [n le 2 select I[n] else (4^n-2^n)/2+21*Self(n-1)-108*Self(n-2): n in [1..20]]; // Vincenzo Librandi, Jul 02 2026
CROSSREFS
KEYWORD
nonn,easy,changed
AUTHOR
EXTENSIONS
More terms from Vincenzo Librandi, Jul 02 2026
STATUS
approved
