OFFSET
1,2
COMMENTS
Numbers n such that A002322(n) divides n-1.
Numbers that satisfy Korselt's criterion (see Mathworld and Wikipedia-links).
Union of {1}, primes and Carmichael numbers, A002997.
Differs from A008578 for the first time at term a(104) = 561, which (being a composite) is the first Carmichael number present.
LINKS
David A. Corneth, Table of n, a(n) for n = 1..10000
Eric Weisstein's World of Mathematics, Korselt's Criterion
Wikipedia, Carmichael numbers, Korselt's criterion
MATHEMATICA
okQ[n_] := SquareFreeQ[n] && AllTrue[FactorInteger[n][[All, 1]], Divisible[n-1, #-1]&];
{1} ~Join~ Select[Range[2, 1000], okQ] (* Jean-François Alcover, Oct 22 2019 *)
PROG
CROSSREFS
KEYWORD
nonn,easy,changed
AUTHOR
Antti Karttunen, Feb 14 2019
STATUS
approved