OFFSET
1,1
COMMENTS
These are called 2-Korselt numbers by Beouallegue et al.
LINKS
Giovanni Resta, Table of n, a(n) for n = 1..393 (terms < 10^12)
K. Bouallegue, O. Echi, R. G. E. Pinch, Korselt numbers and sets, Int. J. Numb. Theory 6 (2) (2010) 257-269
MATHEMATICA
qcm[n_, d_] := Block[{p, e}, {p, e} = Transpose@FactorInteger@n; Length[p] > 1 && Max[e] == 1 && ! MemberQ[p, d] && Max@ Mod[n-d, p-d] == 0]; Select[Range[10^5], qcm[#, 2] &] (* Giovanni Resta, May 21 2013 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved