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!)
A279756 Smallest prime p >= prime(n) such that p == 2 (mod prime(n)). 3
2, 5, 7, 23, 13, 41, 19, 59, 71, 31, 157, 113, 43, 131, 331, 373, 61, 307, 337, 73, 367, 239, 251, 269, 293, 103, 311, 109, 547, 1019, 383, 919, 139, 419, 151, 757, 787, 491, 503, 521, 181, 907, 193, 967, 199, 599, 1901, 1117, 229, 2063, 701, 241, 3617, 1759, 773 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
Conjecture: a(n) < prime(n)^2 for every n.
If this conjecture is true, then no terms are repeated.
LINKS
MAPLE
a:= proc(n) local q, p; p:= ithprime(n); q:= p;
do if irem(q-2, p)=0 then break fi;
q:= nextprime(q);
od; q
end:
seq(a(n), n=1..55); # Alois P. Heinz, May 03 2021
PROG
(PARI) a(n) = {p = prime(n); q = p; while (Mod(q, p) != 2, q = nextprime(q+1)); q; } \\ Michel Marcus, Dec 18 2016
(Python)
from itertools import dropwhile, count
from sympy import isprime, prime
def A279756(n): return next(dropwhile(lambda x:not isprime(x), count(2 if (p:=prime(n))==2 else p+2, p))) # Chai Wah Wu, Jan 04 2024
CROSSREFS
A006512 is a subsequence.
Sequence in context: A072953 A243394 A175552 * A103060 A256247 A243595
KEYWORD
nonn
AUTHOR
Thomas Ordowski and Altug Alkan, Dec 18 2016
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 18 20:26 EDT 2024. Contains 371781 sequences. (Running on oeis4.)