|
|
A225498
|
|
Weak Carmichael numbers.
|
|
7
|
|
|
9, 25, 27, 45, 49, 81, 121, 125, 169, 225, 243, 289, 325, 343, 361, 405, 529, 561, 625, 637, 729, 841, 891, 961, 1105, 1125, 1225, 1331, 1369, 1377, 1681, 1729, 1849, 2025, 2187, 2197, 2209, 2401, 2465, 2809, 2821, 3125, 3321, 3481
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
COMMENTS
|
An odd composite number n > 1 is a weak Carmichael number iff the prime factors of n are a subset of the prime factors of Clausen(n-1,1) (cf. A160014). If additionally n divides Clausen(n-1,1) then n is a Carmichael number. - Peter Luschny, May 21 2019
|
|
LINKS
|
|
|
MAPLE
|
with(numtheory): isweakCarmichael := proc(n)
if irem(n, 2) = 0 or isprime(n) then return false fi;
factorset(n) subset factorset(Clausen(n-1, 1)) end: # A160014
select(isweakCarmichael, [$2..3500]); # Peter Luschny, May 21 2019
|
|
MATHEMATICA
|
pf[n_] := FactorInteger[n][[All, 1]];
Clausen[0, _] = 1; Clausen[n_, k_] := Times @@ (Select[Divisors[n],
PrimeQ[# + k] &] + k);
weakCarmQ[n_] := If[EvenQ[n] || PrimeQ[n], Return[False], pf[n] == (pf[n] ~Intersection~ pf[Clausen[n-1, 1]])];
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,easy
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|