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!)
A105287 Numbers k such that prime(k+1) == 2 (mod k). 7
1, 9, 67, 437, 441, 2615, 100349, 100353, 100359, 637197, 637305, 27066969, 27067049, 27067101, 27067113, 27067115, 179992839, 179993001 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
Integers k such that A004649(k+1) = 2. - Michel Marcus, Dec 30 2022
LINKS
MATHEMATICA
bb={}; Do[If[2==Mod[Prime[n+1], n], bb=Append[bb, n]], {n, 1, 200000}]; bb
With[{nn=640000}, Flatten[Position[Thread[{Range[nn], Prime[Range[2, nn+1]]}], _?(Mod[Last[#]-2, First[#]]==0&), {1}, Heads->False]]] (* Harvey P. Dale, Sep 23 2021 *)
PROG
(Sage)
def A105287(max) :
terms = []
p = 3
for n in range(1, max+1) :
if (p - 2) % n == 0 : terms.append(n)
p = next_prime(p)
return terms
# Eric M. Schmidt, Feb 05 2013
CROSSREFS
Sequence in context: A255877 A197277 A238317 * A163349 A016130 A115202
KEYWORD
nonn,more
AUTHOR
Zak Seidov, Apr 25 2005
EXTENSIONS
First term inserted by Eric M. Schmidt, Feb 05 2013
More terms from Harvey P. Dale, May 04 2013
a(12)-a(18) from Michel Marcus, Dec 29 2022
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 19:06 EDT 2024. Contains 371962 sequences. (Running on oeis4.)