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!)
A236306 Least prime p < prime(n) for which both p and p! are primitive roots modulo prime(n), or 0 if such a prime does not exist. 4
0, 2, 2, 0, 2, 2, 3, 2, 5, 2, 11, 2, 17, 5, 5, 2, 2, 2, 2, 13, 5, 3, 2, 3, 5, 2, 11, 2, 67, 3, 3, 2, 3, 2, 2, 13, 53, 2, 5, 2, 2, 2, 47, 5, 2, 3, 2, 3, 2, 29, 3, 7, 137, 11, 3, 5, 2, 59, 31, 13, 17, 2, 5, 23, 47, 2, 101, 23, 2, 2, 13, 7, 43, 2, 2, 5, 2, 109, 3, 127 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
Conjecture: a(n) > 0 for all n > 4. In other words, for any prime p > 7, there exists a prime q < p such that both q and q! are primitive roots modulo p.
P. Erdős asked whether for any sufficiently large prime p there exists a prime q < p which is a primitive root modulo p (see page 377 of Guy's book in the reference).
REFERENCES
R. K. Guy, Unsolved Problems in Number Theory, 3rd Edition, Springer, New York, 2004.
LINKS
EXAMPLE
a(7) = 3 since both 3 and 3! = 6 are primititive roots modulo prime(7) = 17, but 2 is not a primitive root modulo 17.
MATHEMATICA
f[k_]:=Prime[k]!
dv[n_]:=Divisors[n]
Do[Do[Do[If[Mod[Prime[k]^(Part[dv[Prime[n]-1], i]), Prime[n]]==1||Mod[f[k]^(Part[dv[Prime[n]-1], i]), Prime[n]]==1, Goto[aa]], {i, 1, Length[dv[Prime[n]-1]]-1}]; Print[n, " ", Prime[k]]; Goto[bb]; Label[aa]; Continue, {k, 1, n-1}]; Print[n, " ", 0]; Label[bb]; Continue, {n, 1, 80}]
CROSSREFS
Sequence in context: A356583 A217943 A177225 * A153239 A229502 A356359
KEYWORD
nonn
AUTHOR
Zhi-Wei Sun, Apr 21 2014
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 20 00:58 EDT 2024. Contains 371798 sequences. (Running on oeis4.)