TITLE: Seeking proof for the formula relating Pi with its convergents
QUESTION [26 upvotes]: Could anyone try to prove that the below conjectured formula is valid for relating $\pi$ with ALL of its convergents - those, which are described in OEIS via $\mathrm{A002485}(n)/\mathrm{A002486}(n)$ ?
$$ (-1)^n\cdot\left( \pi - \frac{\mathrm{A002485}(n)}{\mathrm{A002486}(n)} \right) = \frac{1}{|i|\cdot2^j} \int_0^1 \frac{x^l(1-x)^{2(j+2)}(k+(i+k)x^2)}{1+x^2} \,\mathrm{d}x \tag{1} $$  (1)
and in Maple notations:
$$(-1)^n*(Pi−A002485(n)/A002486(n))=(abs(i)*2^{j})^{}(-1)Int((x^{l}(1-x)^{(2*(j+2))}*(k+(i+k)*x^{2}))/(1+x^{2}),x=0...1)$$
where integer $n = 0,1,2,3,\cdots$ serves as the index for terms in OEIS $\mathrm{A002485}(n)$ and $\mathrm{A002486}(n)$, and $\{i, j, k, l\}$ are some integer parameters (which are some implicit functions of $n$ and so far to be found experimentally for each value of $n$), .
The "interesting" (I think) part of my generalization conjecture is that both "$i$" and "$j$" are present in both: denominator of the coefficient in front of the integral and in the body of the integral itself.
It is shown in examples below that the formula under question is applicable for some first few convergents (of the $\mathrm{A002485}(n)/\mathrm{A002486}(n)$ type).

1) For example, for $\frac{22}{7}$
$$\frac{22}{7} - \pi = \int_{0}^{1}\frac{x^4(1-x)^4}{1+x^2}\,\mathrm{d}x$$
with $n=3, i=-1, j=0, k=1, l=4$ - with regards to my above suggested generalization.   
In Maple notation,
i:=-1; j:=0; k:=1; l:=4;
Int(x^l*(1-x)^(2*(j+2))*(k+(k+i)*x^2)/((1+x^2)*(abs(i)*2^j)),x= 0...1) 

yields 22/7 - Pi.

2) It also works for found by Lucas formula for $\frac{333}{106}$ 
$$\pi - \frac{333}{106} = \frac{1}{530}\int_{0}^{1}\frac{x^5(1-x)^6(197+462x^2)}{1+x^2}\,\mathrm{d}x$$
with $n=4, i=265, j=1, k=197, l=5$ - with regards to my above suggested generalization.
In Maple notation
i:=265; j:=1; k:=197; l:=5;
Int(x^l*(1-x)^(2*(j+2))*(k+(k+i)*x^2)/((1+x^2)*(abs(i)*2^j)),x= 0...1)

yields Pi - 333/106.

3) And it works for Lucas's formula for $\frac{355}{113}$
$$\frac{355}{113} - \pi = \frac{1}{3164}\int_{0}^{1}\frac{(x^8(1-x)^8(25+816x^2)}{(1+x^2)}$$
with $n=5, i=791, j=2, k=25, l=8$ - with regards to my above suggested generalization.  
In Maple notation
i:=791; j:=2; k:=25; l:=8;
Int(x^(2*(j+2))*(1-x)^l*(k+(k+i)*x^2)/((1+x^2)*(abs(i)*2^j)),x= 0...1)

yields 355/113 - Pi.

4) And it works as well for Lucas's formula for $\frac{103993}{33102}$
$$\pi - \frac{103993}{33102} = \frac{1}{755216}\int_{0}^{1}\frac{x^{14}(1-x)^{12}(124360+77159x^2)}{1+x^2}\,\mathrm{d}x$$
with $n=6, i= -47201, j=4, k=124360, l=14$ -with regards to my above suggested generalization.  
In Maple notation
i:=-47201; j:=4; k:=124360; l:=14;
Int(x^l*(1-x)^(2*(j+2))*(k+(k+i)*x^2)/((1+x^2)*(abs(i)*2^j)),x= 0...1)

yields Pi - 103993/33102

5) And also it works Lucas's formula for $\frac{104348}{33215}$
$$\frac{104348}{33215} - \pi = \frac{1}{38544}\int_{0}^{1}\frac{x^{12}(1-x)^{12}(1349-1060x^2)}{1+x^2}\,\mathrm{d}x$$
with $n=7, i= -2409, j=4, k=1349, l=12$ - with regards to my above suggested generalization.  
In Maple notation
i:=-2409; j:=4; k:=1349; l:=12;
Int(x^l*(1-x)^(2*(j+2))*(k+(k+i)*x^2)/((1+x^2)*(abs(i)*2^j)),x= 0...1)

yields 104348/33215 - Pi 

6) And it works as well for $\frac{618669248999119}{196928538206400}$
which, by the way, is not part of A002485/A002486 OEIS sequences:
$$\frac{618669248999119}{196928538206400} - \pi = \frac{1}{755216}\int_{0}^{1}\frac{x^{14}(1-x)^{12}(77159+124360x^2)}{1+x^2}\,\mathrm{d}x$$
with $i= 47201, j=4, k=77159, l=14$ -with regards to my above suggested generalization.  
In Maple notation
i:=47201; j:=4; k:=77159; l:=14;
Int(x^l*(1-x)^(2*(j+2))*(k+(k+i)*x^2)/((1+x^2)*(abs(i)*2^j)),x= 0...1)

yields
618669248999119/196928538206400 - Pi.

This question relates to my answer given in
Is there an integral that proves $\pi > 333/106$?
Update#1:
Recently Thomas Baruchel (see his answer below) has conducted extensive calculations and found that four parameters formula yields infinite number of solutions for each $n$.
Thomas shared with me his calculations results and supplied me with quite a few of valid combinations of $i, j, k, l$ values - so now I have a lot of experimentally found five-tuples $\{ n,i, j, k, l\}$, which satisfy above parametrization, where $n$ varies in the range from 2 to 26.
Based on this data, of course, it would be nice to find how (if at all) $i, j, k, l$ are inter-related between each other and with "$n$" - but such inter-relation (if exists) is not obvious and difficult to derive just by observation ... (though it is clearly seen that an absolute value of "$i$" is strongly increasing as "$n$" is growing from 2 to 26).
If I did not make a mistake, RHS could be reduced (after performing integration) to:
(abs(i)*2^j)^(-1)*Gamma(2*j+5)*((k+i)*Gamma(l+3)*HypergeometricPFQ(1,l/2+3/2,l/2+2;j+l/2+4,j+l/2+9/2;-1)/Gamma(2*j+l+8)+k*Gamma(l+1)*HypergeometricPFQ(1,l/2+1/2,l/2+1;j+l/2+3, j+l/2+7/2;-1)/Gamma(2*j+l+6))
May be from discussed parametric identity one could derive irrationality measure for pi, if to assume that RHS in this identity holds true, when the rational fraction on the LHS is equal to 0, then we have:
Pi = (abs(i)*2^j)^(-1)*Gamma(2*j+5)*((k+i)*Gamma(l+3)*HypergeometricPFQ(1,l/2+3/2,l/2+2;j+l/2+4,j+l/2+9/2;-1)/Gamma(2*j+l+8)+k*Gamma(l+1)*HypergeometricPFQ(1,l/2+1/2,l/2+1;j+l/2+3, j+l/2+7/2;-1)/Gamma(2*j+l+6))
Perhaps someone could programmatically check if there are any {i,j,k,l}, which would satisfy above?
Update #2:
Thanks to Jaume Oliver Lafont, at least one case, answering affirmatively to the last question, is identified: i=-1, j=-2, k=1, l=0
$$\pi = \int_{0}^{1}\frac{4}{1+x^2}\,\mathrm{d}x$$
Should there be an infinite number of such cases?
P.S. While manipulating expressions in Wolfram Cloud Development Platform and WolframAlpha I came across the following parametric identity
Sqrt[Pi] = (1/(2^j)*((k Gamma[5 + 2 j] Gamma[1 + l] HypergeometricPFQ[{1, 5/2 + j, 3 + j}, {3 + j + l/2,7/2 + j + l/2}, -1])/Gamma[6 + 2 j + l] + ((k + i) Gamma[7 + 2 j] Gamma[1 + l] HypergeometricPFQ[{1, 7/2 + j, 4 + j}, {4 + j + l/2,9/2 + j + l/2}, -1])/Gamma[8 + 2 j + l]))/(2^(-5 - 3 j -l) Gamma[5 + 2 j] Gamma[1 + l] (k HypergeometricPFQRegularized[{1, 5/2 + j,3 + j}, {3 + j + l/2, 7/2 + j + l/2}, -1] +1/2 (3 + j) (5 + 2 j) (k + i) HypergeometricPFQRegularized[{1,7/2 + j, 4 + j}, {4 + j + l/2, 9/2 + j + l/2}, -1]))         (2)
which indeed gave Sqrt[Pi] for each set of {i,j,k,l} given in above-listed cases 1), 2), 3), 4), 5), 6)
I presume that above identity (2) will yield Sqrt[Pi] for other (infinite) number of sets of {i,j,k,l}.
Is it an interesting identity?
Thanks,
Best Regards,
Alexander R. Povolotsky
I was notified that Maple simplifies the expression on the right hand side of (2) to sqrt(Pi). It seems to be true for arbitrary j,k,l,m.
Based on above we could consider case where j=k=l=m
Sqrt[Pi] = (2^(5+3 j) (Gamma[5+2 j] Gamma[8+3 j] HypergeometricPFQ[{1,5/2+j,3+j},{3+(3 j)/2,7/2+(3 j)/2},-1]+2 Gamma[7+2 j] Gamma[6+3 j] HypergeometricPFQ[{1,7/2+j,4+j},{4+(3 j)/2,9/2+(3 j)/2},-1]))/(Gamma[5+2 j] Gamma[6+3 j] Gamma[8+3 j] (HypergeometricPFQRegularized[{1,5/2+j,3+j},{3+(3 j)/2,7/2+(3 j)/2},-1]+(15+11 j+2 j^2) HypergeometricPFQRegularized[{1,7/2+j,4+j},{4+(3 j)/2,(3 (3+j))/2},-1])) (3)

REPLY [3 votes]: I took the liberty of using Wolframs Integrator calculator for the following integrals:
(1)  $$\int_0^1\frac{x^2(1-x)^2(a+bx^2)}{1+x^2} dx = (\pi-\frac{47}{15})a + (\frac{22}{7} - \pi)b$$
(2)   $$\int_0^1\frac{x^2(1-x)^8(a+bx^2)}{1+x^2} dx = (\frac{3959}{315}-4\pi)a + (4\pi - \frac{4838}{385})b$$
(3)   $$\int_0^1\frac{x^4(1-x)^4(a+bx^2)}{1+x^2} dx = (\frac{22}{7}-\pi)a + (\pi - \frac{1979}{630})b$$
(4)   $$\int_0^1\frac{x^4(1-x)^8(a+bx^2)}{1+x^2} dx = (4\pi - \frac{4838}{385})a + (\frac{566063}{45045} - 4\pi)b$$
(5)   $$\int_0^1\frac{x^6(1-x)^4(a+bx^2)}{1+x^2} dx = (\pi - \frac{1979}{630})a + (\frac{10886}{3465} - \pi)b$$
(6)   $$\int_0^1\frac{x^6(1-x)^8(a+bx^2)}{1+x^2} dx = (\frac{566063}{45045} - 4\pi)a + (4\pi - \frac{188685}{15015})b$$
(7)   $$\int_0^1\frac{x^8(1-x)^4(a+bx^2)}{1+x^2} dx = (\frac{10886}{3465} - \pi)a + (\pi - \frac{141511}{45045})b$$
From this you can see the trend. Since there are 2 degrees of freedom for a,b, with one condition that $a-b = \pm 1$, then their value can be fixed in such a way to match any n-th convergent of $\pi$. This accounts for why there are multiple solutions for $i,j,k,l$ being found.  Actually only 2 parameters are necessary.
I don't see the point, since we have only pushed finding the convergent for $\pi$ into finding $a_n,b_n$ for the n-th convergent of $\pi$, any of the above integrals would work, and I am not sure that discovering the rule for generating $a,b$ will be easy.