OFFSET
1,2
COMMENTS
LINKS
Paul D. Hanna, Table of n, a(n) for n = 1..400
EXAMPLE
arctan(1/x) = 1/x - 1/(3*x^3) + 1/(5*x^5) - 1/(7*x^7) +-...
= [0; x, 3*x, 5/4*x, 28/9*x, 81/64*x, 704/225*x, 325/256*x,
768/245*x, 20825/16384*x, 311296/99225*x, 83349/65536*x,
1507328/480249*x, 1334025/1048576*x, 3145728/1002001*x,...]
= 1/(x + 1/(3*x + 1/(5/4*x + 1/(28/9*x + 1/(81/64*x +...))))).
The coefficients of x in the even-indexed partial quotients converge to Pi:
{3, 28/9, 704/225, 768/245, 311296/99225, ...}.
The coefficients of x in the odd-indexed partial quotients converge to 4/Pi:
{1, 5/4, 81/64, 325/256, 20825/16384, ...}.
PROG
(PARI) {a(n)=numerator(subst((contfrac( sum(k=0, n, (-1)^k/x^(2*k+1)/(2*k+1)), n+1))[n+1], x, 1))}
CROSSREFS
KEYWORD
cofr,frac,nonn
AUTHOR
Paul D. Hanna, Jul 18 2005
STATUS
approved