A086386 Numerators of the rational convergents to sqrt(3) if both numerators and denominators are primes.
5, 19, 71, 3691, 191861, 26947261171
Offset: 1
Crossrefs
Cf. A001834.
Programs
-
PARI
cfracnum(m,f) = { cfr = vector(10000); x=f; for(n=0,m, i=floor(x); x=1/(x-i); cfr[n+1] = i; ); for(m1=0,m, r=cfr[m1+1]; forstep(n=m1,1,-1, r = 1/r; r+=cfr[n]; ); numer=numerator(r); denom=denominator(r); if(isprime(numer) & isprime(denom),print1(numer",")); ) }
Comments