OFFSET
1,1
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000 (terms 1..200 from Robert Israel)
MAPLE
filter:= proc(n) local p;
if isprime(n) or (2 &^n - 2 mod n <> 0) or (3 &^n - 3 mod n <> 0) then return false fi;
if n::even then return true fi;
if not numtheory:-issqrfree(n) then return true fi;
for p in numtheory:-factorset(n) do
if n-1 mod (p-1) <> 0 then return true fi
od;
false
end proc:
select(filter, [$2..10^6]); # Robert Israel, Jan 29 2017
MATHEMATICA
Reap[Do[If[CompositeQ[n] && Divisible[2^n-2, n] && Divisible[3^n-3, n] && Mod[n, CarmichaelLambda[n]] != 1, Print[n]; Sow[n]], {n, 2, 10^6}]][[2, 1]] (* Jean-François Alcover, Mar 25 2019 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Artur Jasinski, Dec 28 2008
STATUS
approved