OFFSET
1,3
LINKS
Daniel Suteu, Table of n, a(n) for n = 1..100
FORMULA
a(n) ~ log(sqrt(2)) * n!.
a(1) = 0, a(n+1) = a(n)*(n+1) + n!*sin(Pi*n/2).
EXAMPLE
For n=5, a(5) = 30, which is the imaginary part of 5!*(1/1 + i/2 - 1/3 - i/4 + 1/5) = 104+30*i.
PROG
(PARI) a(n) = imag(n!*sum(k=1, n, I^(k-1)/k));
CROSSREFS
KEYWORD
nonn
AUTHOR
Daniel Suteu, Feb 06 2017
STATUS
approved