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!)
A078931 Numbers k that divide prime(k)+1 or prime(k)-1. 2
1, 2, 3, 4, 5, 6, 10, 12, 14, 70, 72, 181, 182, 440, 1053, 6458, 6459, 6460, 6461, 6466, 6471, 40087, 40089, 100362, 251712, 251732, 251737, 251742, 637236, 637320, 637334, 637336, 1617173, 4124466, 10553445, 10553455, 10553504, 10553505, 10553547, 10553569 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
FORMULA
Equals A023143 union A045924.
a(n) = A000720(A162567(n)). - Alois P. Heinz, Feb 20 2023
EXAMPLE
181 is in the sequence because the 181st prime is 1087, and 1086 is divisible by 181 (although 1088 is not so divisible).
MATHEMATICA
ndpQ[n_]:=Module[{p=Prime[n]}, Divisible[p-1, n]||Divisible[p+1, n]]; Select[Range[100000], ndpQ] (* Harvey P. Dale, Apr 03 2011 *)
CROSSREFS
Sequence in context: A333987 A342476 A285614 * A018779 A018382 A348654
KEYWORD
nonn
AUTHOR
Benoit Cloitre, Jan 12 2003
EXTENSIONS
Corrected and example added by Harvey P. Dale, Apr 03 2011
Extended with terms from A023143 and A045924 by Michel Marcus, Nov 30 2013
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 25 01:35 EDT 2024. Contains 371964 sequences. (Running on oeis4.)