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.

Showing 1-2 of 2 results.

A214735 Primes such that no pairwise sum is a square.

Original entry on oeis.org

2, 3, 5, 17, 29, 37, 41, 43, 53, 67, 73, 89, 109, 113, 131, 137, 149, 151, 157, 163, 181, 197, 199, 229, 233, 241, 277, 293, 313, 317, 331, 337, 349, 367, 373, 389, 401, 409, 421, 433, 449, 457, 461, 521, 541, 557, 577, 593, 601, 613, 617, 619, 631, 641, 643
Offset: 1

Views

Author

Zak Seidov, Jul 27 2012

Keywords

Comments

a(n+1) is the smallest prime p > a(n) such that none of sums a(i)+p, i=1..n is a square.
The sequence is infinite.

Examples

			a(3) = 5 because 2 + 5 = 7 (not a square) and 3 + 5 = 8 (a cube, not a square).
7 is not in the sequence because 2 + 7 = 3^2. With 11, we have 11 + 5 = 4^2, and for 13, there is 3 + 13 = 4^2.
a(4) = 17, as 2 + 17 = 19 (a prime), 3 + 17 = 20 (divisible by a square but not itself a square) and 5 + 17 = 22 (a squarefree semiprime).
		

Crossrefs

Programs

  • Mathematica
    t = {2}; currPrime = 2; len = 1; maxLen = 100; Do[Label[ne]; currPrime = NextPrime[currPrime]; Do[If[IntegerQ[Sqrt[t[[i]] + currPrime]], Goto[ne]], {i, len}]; AppendTo[t, currPrime]; len++, {maxLen - 1}]; t
  • PARI
    list(lim)=my(v=List([2])); forprime(p=3,lim, if(issquare(p+2), next); for(k=sqrtint(p+2)+1,sqrtint(2*p-2), if(setsearch(v,k^2-p), next(2))); listput(v, p)); Vec(v) \\ Charles R Greathouse IV, Feb 14 2017

A214802 a(n+1) is the smallest integer m > a(n) such that all of sums (a(i))^2 + m^2, i=1..n are squarefree.

Original entry on oeis.org

1, 2, 3, 5, 13, 17, 23, 37, 49, 53, 67, 83, 97, 101, 103, 113, 137, 149, 151, 163, 167, 173, 263, 317, 337, 347, 353, 383, 401, 433, 451, 487, 503, 551, 563, 601, 701, 751, 773, 947, 967, 977, 983, 1013, 1033, 1049, 1051, 1087, 1187, 1201, 1249, 1283, 1333
Offset: 1

Views

Author

Zak Seidov, Jul 28 2012

Keywords

Comments

All terms except for a(2)=2 are odd.

Crossrefs

Programs

  • Mathematica
    s={1}; m=1; Do[f=0; Do[If[!SquareFreeQ[s[[i]]^2+p^2], f=1; Break[]], {i,m}]; If[f<1, AppendTo[s, p]; m++], {p, 2, 10^3}]; s
  • PARI
    v=List([1]); for(m=2,1e3,for(j=1,#v,if(issquare(m^2+v[j]^2), next(2))); listput(v,m)); Vec(v) \\ Charles R Greathouse IV, Jul 30 2012
Showing 1-2 of 2 results.