OFFSET
1,2
COMMENTS
a(n) = n if n = 2p, p prime > 2, or n = 2q with q nonprime such that q = 1, 15, 21, 39, 51, 55, 57, 69, 85, 87, 91,…
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
FORMULA
n such that A197929(n) = n.
EXAMPLE
a(8) = 30 because x^29 == 0,1,2, …,28,29 (mod 30) with 30 distinct residues.
MATHEMATICA
lst={}; Table[If[Length[Union[PowerMod[Range[0, n-1], n-1, n]]]==n, AppendTo[lst, n]], {n, 320}]; lst
Select[Range[400], Length[Union[PowerMod[Range[0, #-1], #-1, #]]]==#&] (* Harvey P. Dale, Nov 06 2016 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Michel Lagneau, Oct 19 2011
STATUS
approved