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.

A020495 Neither square nor square + prime.

Original entry on oeis.org

10, 34, 58, 85, 91, 130, 214, 226, 370, 526, 706, 730, 771, 1255, 1351, 1414, 1906, 2986, 3676, 9634, 21679
Offset: 1

Views

Author

Keywords

Comments

Almost certainly finite; no other terms below 2.5*10^7. Search extended to 3*10^9 by James Van Buskirk without finding any more terms. - John Robertson (Jpr2718(AT)aol.com)
Hardy & Littlewood's Conjecture H is that this sequence is finite and that the number of representations of n as the sum of a prime and a square is asymptotically sqrt(n)/log n * prod_{p > 2} 1 - (n / p) / (p - 1), where (n / p) is the Legendre symbol.
Hongze Li showed that there are at most O(n^0.982) members of this sequence below n, improving on earlier results of Wang.
a(22) > 10^11, if it exists. - Giovanni Resta, Jul 16 2019

Programs

  • Mathematica
    isA020495[n_] := (r = True; If[ IntegerQ[ Sqrt[n]], r = False, Do[ If[ PrimeQ[n - k^2], r = False; Break[]], {k, 0, Sqrt[n]}]; r]); Select[ Range[30000], isA020495] (* Jean-François Alcover, Oct 06 2011, after PARI *)
  • PARI
    isA020495(n)=if(issquare(n),return(0));for(k=0,sqrtint(n),if(isprime(n-k^2),return(0)));1

Extensions

Comments, references, links and program from Charles R Greathouse IV, Aug 10 2009