login

Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.

a(n) = ((2n+1)!!)^2 * Sum_{k=0..n}(-1)^k/(2k+1)^2.
2

%I #28 Sep 08 2022 08:46:17

%S 1,8,209,10016,822321,98607816,16772776929,3755613340800,

%T 1089481085841825,392115220017568200,173351482189397931825,

%U 91513890536903699104800,57296185618906061753900625,41706416795344237885218165000,35120660862575611007699136530625

%N a(n) = ((2n+1)!!)^2 * Sum_{k=0..n}(-1)^k/(2k+1)^2.

%H Daniel Suteu, <a href="/A275286/b275286.txt">Table of n, a(n) for n = 0..99</a>

%F a(0) = 1, a(n) = (2n+1)^2 * a(n-1) + (-1)^n / 4^n * ((2n+1)!)^2 / (n!)^2 / (2n+1)^2. - _Daniel Suteu_, Jul 21 2016

%F a(n) ~ A006752 * ((2*n+1)!!)^2. - _Daniel Suteu_, Dec 03 2016

%t Table[((2 n + 1)!!)^2 Sum[(-1)^k/(2 k + 1)^2, {k, 0, n}], {n, 0, 14}] (* _Michael De Vlieger_, Jul 21 2016 *)

%o (Sidef)

%o var k = 0

%o func a(n) { (-1)**n }

%o func b(n) { (2*n + 1)**2 }

%o func g((k)) { b(k) }

%o func g(n) is cached { b(n) * g(n-1) }

%o func f((k)) { a(k) }

%o func f(n) is cached { b(n)*f(n-1) + a(n)*g(n-1) }

%o for i in (k .. 20) { say f(i) }

%o (PARI) dfo(n) = (2*n)! / n! / 2^n; \\ after A001147

%o a(n) = dfo(n+1)^2*sum(k=0, n, (-1)^k/(2*k+1)^2); \\ _Michel Marcus_, Jul 25 2016

%o (Magma) [(Factorial(2*n+1)/(2^n*Factorial(n)))^2*(&+[(-1)^k/(2*k+1)^2: k in [0..n]]): n in [0..20]]; // _G. C. Greubel_, Aug 25 2018

%K easy,nonn

%O 0,2

%A _Daniel Suteu_, Jul 21 2016