cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A282132 Imaginary part of n!*Sum_{k=1..n} i^(k-1)/k, where i is sqrt(-1).

Original entry on oeis.org

0, 1, 3, 6, 30, 300, 2100, 11760, 105840, 1421280, 15634080, 147692160, 1919998080, 33106993920, 496604908800, 6638004172800, 112846070937600, 2386916704972800, 45351417394483200, 785383247480832000, 16493048197097472000, 413938002507853824000
Offset: 1

Views

Author

Daniel Suteu, Feb 06 2017

Keywords

Examples

			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.
		

Crossrefs

The corresponding real part is A281964.

Programs

  • PARI
    a(n) = imag(n!*sum(k=1, n, I^(k-1)/k));

Formula

a(n) ~ log(sqrt(2)) * n!.
a(1) = 0, a(n+1) = a(n)*(n+1) + n!*sin(Pi*n/2).