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!)
A211349 Primes p such that p-1 divides 2^p + 2. 4
2, 3, 11, 251, 5051, 16811, 2025251, 8751251, 16607051, 28257611, 69005051, 78906251, 176775251, 210381251, 372175451, 550427051, 707025251, 854704451, 1866788051, 2441406251, 2605806251, 4249701251, 5469531251, 9304386251, 10315761251, 10915095251 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
Prime p>2 is in this sequence iff (p-1)/2 is in A015950. - Max Alekseyev, Dec 26 2017
LINKS
MATHEMATICA
Select[Prime[Range[1000]], Mod[2^# + 2, # - 1] == 0 &]
PROG
(PARI)
N=10^9;
default(primelimit, N);
forprime(p=2, N, if (-2==Mod(2, p-1)^p, print1(p, ", ")));
/* Joerg Arndt, Feb 06 2013 */
(Python)
from sympy import primerange
A211349_list = [p for p in primerange(1, 10**6) if p == 2 or pow(2, p, p-1) == p-3] # Chai Wah Wu, Mar 25 2021
CROSSREFS
Sequence in context: A029497 A318130 A109809 * A096456 A262201 A072928
KEYWORD
nonn
AUTHOR
Philip A. Hoskins, Feb 06 2013
EXTENSIONS
a(19)-a(47) from Giovanni Resta, Feb 10 2013
a(48)-a(177) from Max Alekseyev, Jan 06 2018
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 19 09:23 EDT 2024. Contains 371782 sequences. (Running on oeis4.)