cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A086386 Numerators of the rational convergents to sqrt(3) if both numerators and denominators are primes.

Original entry on oeis.org

5, 19, 71, 3691, 191861, 26947261171
Offset: 1

Views

Author

Cino Hilliard, Sep 06 2003

Keywords

Comments

These numbers are rare.

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",")); ) }