login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A162565 Those primes p such that (p-q) divides (p-1), where q is the greatest prime < p. 2
3, 5, 7, 13, 17, 19, 31, 37, 41, 43, 61, 67, 73, 79, 97, 101, 103, 109, 113, 127, 139, 151, 157, 163, 181, 191, 193, 197, 199, 229, 233, 241, 251, 271, 277, 281, 283, 313, 317, 337, 349, 353, 373, 379, 401, 409, 421, 431, 433, 439, 457, 461, 463, 523, 541, 547 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,1

COMMENTS

A006512 (greater of twin primes) is a subsequence. - Michel Marcus, Feb 27 2019

LINKS

Harvey P. Dale, Table of n, a(n) for n = 1..1000

EXAMPLE

The 17th prime is 59 and the 18th prime is 61. (61-59) = 2, and 2 divides 61-1 = 60. So 61 is in the sequence.

MAPLE

A162565 := proc(n) local p, q; p := ithprime(n) ; q := prevprime(p) ; if (p-1) mod (p-q) = 0 then printf("%d, ", p); fi; end: seq(A162565(n), n=2..200) ; # R. J. Mathar, Jul 13 2009

MATHEMATICA

Transpose[Select[Partition[Prime[Range[110]], 2, 1], Divisible[#[[2]]-1, #[[2]] - #[[1]]]&]][[2]] (* Harvey P. Dale, Mar 18 2016 *)

CROSSREFS

Cf. A006512, A162566.

Sequence in context: A046066 A327819 A045398 * A321363 A155045 A144296

Adjacent sequences:  A162562 A162563 A162564 * A162566 A162567 A162568

KEYWORD

nonn

AUTHOR

Leroy Quet, Jul 06 2009

EXTENSIONS

More primes from R. J. Mathar, Jul 13 2009

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified July 12 04:30 EDT 2020. Contains 335658 sequences. (Running on oeis4.)