OFFSET
1,2
COMMENTS
A number k belongs to this sequence if and only if for all primes p|k and for all primes q|p-1, q divides k. - Bernat Pagès Vives, Oct 30 2021
LINKS
Giovanni Resta, Table of n, a(n) for n = 1..10000
Art of Problem Solving, OMO Fall 2013 Solutions, problem 22
MATHEMATICA
gg1[n_] := Sum[If[Mod[x^x, n] == Mod[1, n], 1, 0], {x, 1, n}]; Select[Range[100], gg1[#] == 1 &]
CROSSREFS
KEYWORD
nonn
AUTHOR
José María Grau Ribas, Mar 09 2014
STATUS
approved