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”).

A014928
a(1)=1, a(n)=n*13^(n-1)+a(n-1).
2
1, 27, 534, 9322, 152127, 2379885, 36167548, 538155684, 7879732173, 113924725903, 1630368136242, 23136292864686, 326011399456939, 4566262891748481, 63626908677237816, 882601196902689928
OFFSET
1,2
FORMULA
a(1)=1, a(2)=27, a(n) = 26*a(n-1) -169*a(n-2) +1. - Vincenzo Librandi, Oct 23 2012
G.f.: x/((1-x)*(1-13*x)^2). - Vincenzo Librandi, Oct 23 2012
a(1)=1, a(2)=27, a(3)=534, a(n)=27*a(n-1)-195*a(n-2)+169*a(n-3). - Harvey P. Dale, Jan 20 2015
MATHEMATICA
CoefficientList[Series[1/((1 - x)(1 - 13*x)^2), {x, 0, 900}], x] (* Vincenzo Librandi, Oct 23 2012 *)
RecurrenceTable[{a[1]==1, a[n]==n*13^(n-1)+a[n-1]}, a, {n, 20}] (* or *) LinearRecurrence[{27, -195, 169}, {1, 27, 534}, 20] (* Harvey P. Dale, Jan 20 2015 *)
PROG
(Magma) I:=[1, 27]; [n le 2 select I[n] else 26*Self(n-1)-169*Self(n-2)+1: n in [1..20]]; // Vincenzo Librandi, Oct 23 2012
CROSSREFS
Sequence in context: A016887 A110896 A215039 * A163199 A051561 A163197
KEYWORD
nonn,easy
STATUS
approved