OFFSET
0,1
FORMULA
a(n) = n! + 3^n.
E.g.f.: 1/(1-x) + exp(3*x). - Alois P. Heinz, Aug 29 2022
MAPLE
MATHEMATICA
Table[3^n + n!, {n, 20}] (* Alonso del Arte, Nov 09 2014 *)
PROG
(PARI) vector(10, n, 3^n + n!) \\ Derek Orr, Nov 14 2014
(Magma) [3^n+Factorial(n) : n in [0..25]]; // Wesley Ivan Hurt, Nov 14 2014
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Max Alweiss, Nov 08 2014
STATUS
approved