OFFSET
1,1
COMMENTS
It always has been one of the great mysteries of mathematics, that the superdiagonal sequence of A001177 consists of prime numbers A000057.
Here, regarding A214031 and A214032,there is the further conjecture that these two disjoint sequences are primes and roughly comparable in density. It isn't clear that these two sequences have a density, without appealing to the Riemann Hypothesis, but they are certainly close to one another in growing size.
Since these two sequences are disjoint, it is natural to take their union.
PROG
(PARI)
{b23(n)=local(t, m=1, s=[n]); if (n<2, 0, while(1,
if(m%2, s=concat(s, 2), s=concat(s, 3));
t=contfracpnqn(concat(s, n));
t=contfrac(n*t[1, 1]/t[2, 1]);
if(t[1]<n^2||t[#t]<n^2, m++, break)); m)};
To print the sequence a(n) to the screen,
for(i=1, 500, if(b23(i)==i||b23(i)==i-2,
print1(i, ", ")));
CROSSREFS
KEYWORD
nonn
AUTHOR
Art DuPre, Jul 12 2012
STATUS
approved