OFFSET
1,2
REFERENCES
G. Balzarotti and P. P. Lava, Le sequenze di numeri interi, Hoepli, 2008, p. 157.
LINKS
Paolo P. Lava, Table of n, a(n) for n = 1..10000
EXAMPLE
1.408248346018747844183196249564... = [1, 2, 2, 4, 2, 4, 2, 4, 6, 2, 6, 4, 2, 4, 6, ...]
MAPLE
P:=proc(q) local a, n, v; v:=array(1..q); a:=1;
for n from 1 to q do v[n]:=(ithprime(n+1)-ithprime(n)); od;
for n from q by -1 to 1 do a:=v[n]+1/a; od; print(evalf(a, 200));
end: P(10^4);
MATHEMATICA
m=200; RealDigits[FromContinuedFraction[Differences[Prime[Range[1001]]]], 10, m][[1]] (* Zak Seidov, Oct 04 2013 *)
PROG
(PARI) diff(v)=vector(#v-1, i, v[i+1]-v[i])
(M->M[1, 1]/M[2, 1]*1.)(contfracpnqn(diff(primes(100)))) \\ Charles R Greathouse IV, Oct 04 2013
CROSSREFS
KEYWORD
AUTHOR
Paolo P. Lava, Oct 03 2013
STATUS
approved