OFFSET
1,2
FORMULA
a(1) = 1, a(2) = 3, a(n) = A000040(n) * a(n-1) + a(n-2). - Daniel Suteu, Dec 20 2016
EXAMPLE
Prime(4) = 7, and 2+1/(3+1/(5+1/7)) = 266/115, so a(4) = 115. - Jon E. Schoenfield, Dec 20 2016
PROG
(PARI) a(n)=if(n<0, 0, contfracpnqn(vector(n, i, prime(i)))[2, 1])
CROSSREFS
KEYWORD
frac,easy,nonn
AUTHOR
EXTENSIONS
More terms from Benoit Cloitre, May 25 2003
STATUS
approved