a(n) is the smallest generator for the group of numbers relatively prime to n under multiplication mod n; a(n) = -1 if n is not a power of a prime or twice a power of a prime.
A174621
a(n) is the smallest generator for the group of numbers relatively prime to n under multiplication mod n; a(n) = -1 if n is not a power of a prime or twice a power of a prime.
Terms
- a(0) =1a(1) =2a(2) =3a(3) =2a(4) =5a(5) =3a(6) =-1a(7) =2a(8) =3a(9) =2a(10) =-1a(11) =2a(12) =3a(13) =-1a(14) =-1a(15) =3a(16) =5a(17) =2a(18) =-1a(19) =-1a(20) =7a(21) =5a(22) =-1a(23) =2a(24) =7a(25) =2a(26) =-1a(27) =2a(28) =-1a(29) =3
External references
- oeis: A174621