The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A187885 Numbers n such that n*p + 1 is a square for some prime p. 0

%I #7 Mar 30 2012 18:35:54

%S 1,3,4,5,7,8,9,11,12,13,15,16,17,19,21,24,25,27,29,31,32,33,35,39,40,

%T 41,43,45,48,49,51,55,56,57,59,60,61,63,64,65,69,71,72,73,75,77,80,81,

%U 84,85,87,88,91,93,95,96,99,101,103,104,105,107,109,111,112,115,120

%N Numbers n such that n*p + 1 is a square for some prime p.

%C The smallest corresponding p are {3, 5, 2, 3, 5, 3, 7, 13, 2, 11, 13, 3, 19, 17, 3, 2, 23, 29, 31, 29, 7, 3, 37,...}

%F Complement of A187884.

%e 21 is in the sequence because 21*3 + 1 = 8^2, with p = 3.

%p with(numtheory): for k from 1 to 120 do : q:=0:for p from 1 to 200 do : x:=sqrt(k*p+1)

%p : if x=trunc(x) and type(p,prime)=true and q=0 then q:=1: printf(`%d, `,k):else

%p fi:od:od:

%Y Cf. A187884, A187886.

%K nonn

%O 1,2

%A _Michel Lagneau_, Mar 15 2011

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 May 13 03:04 EDT 2024. Contains 372497 sequences. (Running on oeis4.)