A109139 Numerators associated with the continued fraction of the differences of consecutive prime numbers.
1, 2, 5, 12, 53, 118, 525, 1168, 5197, 32350, 69897, 451732, 1876825, 4205382, 18698353, 116395500, 717071353, 1550538206, 10020300589, 41631740562, 93283781713, 601334430840, 2498621505073, 15593063461278, 127243129195297
Offset: 0
Examples
n = 2, A(n) = A(2) = 5 because A(0) = 2-1 = 1, A(1) = (3-2) * A(0) + 1 = 2, A(2) = (5-3) * A(1) + 1 * A(0) = 5.
Formula
A(0) = a(0), A(1) = a(1)*A(0) + 1, A(n) = a(n)*A(n - 1) + A(n-2) (n>=2) where a(0) = p(0) - 1, a(1) = p(1) - p(0), a(2) = p(2) - p(1) ..., a(n) = p(n) - p(n-1) where p(n) is the n-th prime number.
Comments