login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A014927
a(1)=1, a(n) = n*12^(n-1) + a(n-1).
1
1, 25, 457, 7369, 111049, 1604041, 22505929, 309160393, 4178995657, 55776799177, 736867805641, 9652968253897, 125562274081225, 1623467149388233, 20882244117621193, 267394589311003081
OFFSET
1,2
FORMULA
a(1)=1, a(2)=25, a(n) = 24*a(n-1) - 144*a(n-2) + 1. - Vincenzo Librandi, Oct 23 2012
G.f.: x/((1 - x)*(1 - 12*x)^2). - Vincenzo Librandi, Oct 23 2012
MATHEMATICA
CoefficientList[Series[1/((1 - x)(1 - 12*x)^2), {x, 0, 30}], x] (* Vincenzo Librandi, Oct 23 2012 *)
PROG
(Magma) I:=[1, 25]; [n le 2 select I[n] else 24*Self(n-1) - 144*Self(n-2) + 1: n in [1..20]]; // Vincenzo Librandi, Oct 23 2012
(PARI) a(n) = (1+12^n*(11*n-1))/121; \\ Jinyuan Wang, Mar 11 2020
CROSSREFS
Sequence in context: A131279 A056069 A089386 * A059946 A357147 A118445
KEYWORD
nonn,easy
STATUS
approved