OFFSET
0,1
COMMENTS
The Leibniz series for Pi/4 involves 1, -1/3, 1/5, -1/7, 1/9, -1/11, .. inverses of the odd numbers. The first differences of this sequence of fractions are -4/3, 8/15, -12/35, 16/63, -20/99, 24/143,... = (-1)^(n+1)*A008586(n+1)/A000466(n+1).
a(n) is the difference of the n-th denominator and numerator, A000466(n+1)+(-1)^n*A008586(n+1). (Note that A000466 is a bisection of A005563, which establishes a very distant relation between this sequence and the Lyman series.)
If one would add the n-th denominator and numerator, -1, 23, 23, 79, 79, 167, 167, 287, 287, 439,...(duplicated values of 16n^2+40n+23 and a -1) would result.
LINKS
Index entries for linear recurrences with constant coefficients, signature (1,2,-2,-1,1).
FORMULA
a(n) = +a(n-1) +2*a(n-2) -2*a(n-3) -a(n-4) +a(n-5).
G..f: ( -7-26*x^2+x^4 ) / ( (1+x)^2*(x-1)^3 ).
a(2n) = a(2n+1) = 16n^2+24n+7.
MATHEMATICA
With[{c=16n^2+24n+7}, Table[{c, c}, {n, 0, 40}]]//Flatten (* or *) LinearRecurrence[ {1, 2, -2, -1, 1}, {7, 7, 47, 47, 119}, 80] (* Harvey P. Dale, Jan 16 2019 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Paul Curtz, Feb 15 2010
STATUS
approved