A352395 Denominator of Sum_{k=0..n} (-1)^k / (2*k+1).
1, 3, 15, 105, 315, 3465, 45045, 45045, 765765, 14549535, 14549535, 334639305, 1673196525, 5019589575, 145568097675, 4512611027925, 4512611027925, 4512611027925, 166966608033225, 166966608033225, 6845630929362225, 294362129962575675, 294362129962575675, 13835020108241056725
Offset: 0
Links
- Abramowitz and I. A. Stegun, eds., Handbook of Mathematical Functions. p.258, National Bureau of Standards, Applied Math. Series 55, Tenth Printing, 1972 [alternative scanned copy]. p. 258.
Programs
-
Mathematica
Denominator @ Accumulate @ Table[(-1)^k/(2*k + 1), {k, 0, 25}] (* Amiram Eldar, Apr 08 2022 *)
-
PARI
a(n) = denominator(sum(k=0, n, (-1)^k / (2*k+1))); \\ Michel Marcus, Apr 07 2022
-
Python
from fractions import Fraction def A352395(n): return sum(Fraction(-1 if k % 2 else 1,2*k+1) for k in range(n+1)).denominator # Chai Wah Wu, May 18 2022
Formula
a(n) = denominator( (Psi(n + 3/2) - Psi((2*n - (-1)^n)/4 + 1) - log(2) + Pi/2)/2), for n >= 0, with the Digamma function. See the above comment.
a(n) = denominator(Pi/4 + (-1)^n * (Psi((n + 5/2)/2) - Psi((n + 3/2)/2))/4). - Vaclav Kotesovec, May 16 2022
Comments