login
A014903
a(1)=1, a(n) = 19*a(n-1) + n.
3
1, 21, 402, 7642, 145203, 2758863, 52418404, 995949684, 18923044005, 359537836105, 6831218886006, 129793158834126, 2466070017848407, 46855330339119747, 890251276443275208, 16914774252422228968, 321380710796022350409, 6106233505124424657789
OFFSET
1,2
FORMULA
a(1)=1, a(2)=21, a(3)=402, a(n) = 21*a(n-1) - 39*a(n-2) + 19*a(n-3). - Vincenzo Librandi, Oct 20 2012
MATHEMATICA
LinearRecurrence[{21, -39, 19}, {1, 21, 402}, 20] (* Vincenzo Librandi, Oct 20 2012 *)
PROG
(Magma) I:=[1, 21, 402]; [n le 3 select I[n] else 21*Self(n-1) - 39*Self(n-2) + 19*Self(n-3): n in [1..20]]; // Vincenzo Librandi, Oct 20 2012
CROSSREFS
Sequence in context: A113363 A223459 A240655 * A219308 A358698 A020534
KEYWORD
nonn
STATUS
approved