login
A014898
a(1)=1, a(n) = 15*a(n-1) + n.
3
1, 17, 258, 3874, 58115, 871731, 13075972, 196139588, 2942093829, 44131407445, 661971111686, 9929566675302, 148943500129543, 2234152501943159, 33512287529147400, 502684312937211016, 7540264694058165257
OFFSET
1,2
FORMULA
a(n) = 17*a(n-1) - 31*a(n-2) + 15*a(n-3); a(1)=1, a(2)=17, a(3)=258. - Vincenzo Librandi, Oct 20 2012
MATHEMATICA
LinearRecurrence[{17, -31, 15}, {1, 17, 258}, 20] (* Vincenzo Librandi, Oct 20 2012 *)
PROG
(Magma) I:=[1, 17, 258]; [n le 3 select I[n] else 17*Self(n-1) - 31*Self(n-2) + 15*Self(n-3): n in [1..20]]; // Vincenzo Librandi, Oct 20 2012
CROSSREFS
Sequence in context: A193329 A256499 A217796 * A048446 A001282 A135214
KEYWORD
nonn,easy
STATUS
approved