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.

A370549 a(n) is the numerator of the imaginary part of Product_{k=1..n} (1/k + i) where i is the imaginary unit.

This page as a plain text file.
%I A370549 #9 Feb 22 2024 17:46:26
%S A370549 1,3,0,-5,-3,35,11,-65,-3055,4433,2561,-18863,-614635,14705,3871801,
%T A370549 -6702403,-23794993,-21392575,1677354925,2206770805,-30432904645,
%U A370549 -617315066615,2099373575975,551582580432325,-11053607615333933,-180184164588301,4198057769186443,435884809756010315
%N A370549 a(n) is the numerator of the imaginary part of Product_{k=1..n} (1/k + i) where i is the imaginary unit.
%F A370549 a(n) = numerator of A105751(n)/n!. - _Chai Wah Wu_, Feb 22 2024
%e A370549 See A370547.
%o A370549 (PARI) a370549(n) = numerator(imag(prod(k=1, n, 1/k+I)))
%o A370549 (Python)
%o A370549 from math import factorial, gcd
%o A370549 from sympy.functions.combinatorial.numbers import stirling
%o A370549 def A370549(n): return (a:=sum(stirling(n+1,n-(k<<1),kind=1)*(-1 if k&1 else 1) for k in range((n>>1)+1)))//gcd(a,factorial(n)) # _Chai Wah Wu_, Feb 22 2024
%Y A370549 Cf. A105751, A370547, A370548, A370550.
%K A370549 frac,sign,easy
%O A370549 1,2
%A A370549 _Hugo Pfoertner_, Feb 22 2024