|
|
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
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,2
|
|
LINKS
|
|
|
FORMULA
|
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
|
|
|
KEYWORD
|
nonn,easy
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|