login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A299118 Squares s such that prime(s) + 2 is a square. 0
1, 4, 9, 7745089 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
Primes corresponding to the first four squares are 2, 7, 23, and 136866599. The sequence may be finite.
There may be no square s such that prime(s) + 1 is square (none was found up to 10^9).
This is a Diophantine problem of the form f(n^2) + A = m^2, where f(x) = prime(x), and the simplest case of A = 1 has probably no solutions unlike the same case with f(x) = primepi(x) that may even have an infinite number of solutions.
LINKS
EXAMPLE
prime(4) + 2 = 7 + 2 = 9, and both 4 and 9 are squares.
MATHEMATICA
Select[Range[10^4]^2, IntegerQ@Sqrt[Prime[#] + 2] &]
PROG
(PARI) for(n=1, 10^4, issquare(prime(n^2)+2)&&print1(n^2 ", "))
CROSSREFS
Cf. A000290 (squares), A000040 (primes), A011757 (primes with square indices).
Sequence in context: A260305 A229338 A111443 * A276272 A331450 A051499
KEYWORD
nonn,more
AUTHOR
Waldemar Puszkarz, Feb 02 2018
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 19 15:11 EDT 2024. Contains 371794 sequences. (Running on oeis4.)