OFFSET
1,1
COMMENTS
Clearly the terms alternate in sign, but the initial choice of sign was arbitrary.
EXAMPLE
The first convergent to Pi, 3, is just over 1/7 too low, so 7 is the first term.
The second convergent, 22/7, is 0.001264+ too high, which is just over 1/790, so -790 is the second term.
PROG
(PARI) for(x=1, 10, t=contfracpnqn(contfrac(Pi, x)); print(truncate(1/(Pi-t[1, 1]/t[2, 1]))))
CROSSREFS
KEYWORD
sign
AUTHOR
Phil Carmody, Dec 06 2009
EXTENSIONS
More terms from Jinyuan Wang, Aug 23 2021
STATUS
approved