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!)
A248207 Primitive root of the multiplicative group mod n as returned by PARI version 2.7.2, or 0 when there is no primitive root. 0
1, 2, 3, 2, 5, 3, 0, 2, 7, 2, 0, 2, 3, 0, 0, 3, 11, 2, 0, 0, 13, 5, 0, 2, 15, 2, 0, 2, 0, 3, 0, 0, 3, 0, 0, 2, 21, 0, 0, 6, 0, 3, 0, 0, 5, 5, 0, 3, 27, 0, 0, 2, 29, 0, 0, 0, 31, 2, 0, 2, 3, 0, 0, 0, 0, 2, 0, 0, 0, 7, 0, 5, 39, 0, 0, 0, 0, 3, 0, 2, 47, 2, 0, 0, 3, 0, 0, 3, 0, 0, 0, 0, 5, 0, 0, 5, 3, 0, 0 (list; graph; refs; listen; history; text; internal format)
OFFSET

2,2

LINKS

Table of n, a(n) for n=2..100.

PROG

(PARI)

a(n) = if(#znstar(n)[3]>1, 0, lift(znprimroot(n)));

vector(99, n, a(n+1))

CROSSREFS

Cf. A174621 (smallest primitive root, taking -1 for n with no primitive root).

Cf. A046145 (smallest primitive root, taking 0 for n with no primitive root).

Sequence in context: A132962 A046145 A103309 * A174621 A007967 A054494

Adjacent sequences:  A248204 A248205 A248206 * A248208 A248209 A248210

KEYWORD

nonn

AUTHOR

Joerg Arndt, Jan 11 2015

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 February 22 12:42 EST 2020. Contains 332136 sequences. (Running on oeis4.)