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!)
A269786 Primes p such that 2*p + 31 is a square. 1
97, 349, 997, 1609, 2797, 3769, 6829, 7549, 10789, 11689, 13597, 15649, 16729, 22669, 28069, 32497, 40597, 44089, 49597, 59497, 63709, 70297, 74869, 86929, 89449, 94597, 113749, 122497, 128509, 144169, 147409, 153997, 164149, 181789, 196549, 200329, 207997 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
Primes of the form 2*k^2 + 2*k - 15.
LINKS
MATHEMATICA
Select[Prime[Range[25000]], IntegerQ[Sqrt[2 # + 31]] &]
PROG
(Magma) [p: p in PrimesUpTo(300000) | IsSquare(2*p+31)];
(PARI) lista(nn) = forprime(p=2, nn, if (issquare(2*p+31), print1(p, ", "))); \\ Michel Marcus, Mar 22 2016
(Python)
from gmpy2 import is_prime, is_square
for p in range(3, 10**6, 2):
if(not is_square(2*p+31)):continue
elif(is_prime(p)):print(p)
# Soumil Mandal, Apr 07 2016
CROSSREFS
Cf. A000040.
Subsequence of A061241, A142108.
Cf. similar sequences listed in A269784.
Sequence in context: A140627 A142631 A087861 * A366352 A105128 A031927
KEYWORD
nonn
AUTHOR
Vincenzo Librandi, Mar 22 2016
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 24 05:23 EDT 2024. Contains 371918 sequences. (Running on oeis4.)