OFFSET
1,1
COMMENTS
Conjecture: a(n) > 0 for all n > 0, and a(n) = 1 only for n = 12.
The terms of A020330 are usually called "binary squares". Our conjecture is an analog of Legendre's conjecture that for each n = 1,2,3,... there is a prime between n^2 and (n+1)^2.
Those a(2^n-1) = pi(2*4^n+2^n) - pi(4^n) are relatively large, where pi(x) is the prime-counting function given by A000720.
We have verified that a(n) > 0 for all n = 1..2*10^7.
LINKS
Zhi-Wei Sun, Table of n, a(n) for n = 1..10000
Wikipedia, Legendre's conjecture
EXAMPLE
MATHEMATICA
f[n_]:=f[n]=(2^(Floor[Log[2, n]]+1)+1)*n;
a[n_]:=a[n]=PrimePi[f[n+1]-1]-PrimePi[f[n]];
Table[a[n], {n, 1, 80}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Zhi-Wei Sun, Oct 16 2017
STATUS
approved
