OFFSET
0,1
COMMENTS
Gamma(a, x) is the upper incomplete Gamma function.
LINKS
Hans J. H. Tuenter, Table of n, a(n) for n = 0..100
Eric Weisstein's World of Mathematics, Incomplete Gamma Function, Golden Ratio.
FORMULA
E.g.f: (exp(phi*x) + exp((1-phi)*x))/(1-x).
Recurrence: a(n) = (n+1)*a(n-1)-(n-2)*a(n-2)-(n-2)*a(n-3).
a(n)/n! ~ exp(phi) + exp(1-phi) = 2*exp(1/2)*cosh(sqrt(5)/2) = 5.582168726... = A328344. - Vaclav Kotesovec, Oct 10 2016 [Corrected and extended by Hans J. H. Tuenter, Mar 24 2026]
From Hans J. H. Tuenter, Mar 19 2026: (Start)
a(n) = n!*Sum_{k=0..n} L(k)/k!, where L(n)=A000032(n) are the Lucas numbers.
a(n) = L(n) + n*a(n-1). (End)
MATHEMATICA
RecurrenceTable[{a[0] == 2, a[1] == 3, a[2] == 9, n (a[n] + a[n - 1]) == (n + 3) a[n + 1] - a[n + 2]}, a[n], {n, 0, 20}] (* or *)
Round@Table[Gamma[n + 1, GoldenRatio] Exp[GoldenRatio] + Gamma[n + 1, 1 - GoldenRatio] Exp[1 - GoldenRatio], {n, 0, 20}] (* Round is equivalent to FullSimplify here, but is much faster *)
f[n_] := n!*Sum[LucasL[k]/k!, {k, 0, n}]; Table[ f[n], {n, 0, 100}] (* Hans J. H. Tuenter, Mar 19 2026 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Vladimir Reshetnikov, Oct 09 2016
STATUS
approved
