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!)
A062061 Numbers k such that prime(k)+1 divides k^2. 1
2, 4, 70, 516, 174080, 292050, 637320, 687105342, 14342420320, 214517880600 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
a(9) > 3*10^9. - Donovan Johnson, Oct 14 2009
a(11) > 3*10^11. - Giovanni Resta, Apr 15 2017
LINKS
EXAMPLE
Prime(4)+1 = 7+1 divides 4^2, so 4 is a term of the sequence.
MATHEMATICA
Select[Range[10^6], Mod[ #^2, Prime[ # ] + 1] == 0 &]
Select[Range[640000], PowerMod[#, 2, Prime[#]+1]==0&] (* The program generates the first seven terms of the sequence. To generate more, increase the Range constant. *) (* Harvey P. Dale, Apr 23 2022 *)
PROG
(PARI) isok(n) = n^2 % (prime(n)+1) == 0; \\ Michel Marcus, Apr 15 2017
CROSSREFS
Sequence in context: A362456 A301818 A054920 * A066974 A270583 A018373
KEYWORD
nonn
AUTHOR
Joseph L. Pe, Feb 13 2002
EXTENSIONS
a(8) from Donovan Johnson, Oct 14 2009
a(9)-a(10) from Giovanni Resta, Apr 15 2017
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 14:23 EDT 2024. Contains 371960 sequences. (Running on oeis4.)