OFFSET
1,1
LINKS
Robert C. Vaughan and Kevin L. Weis, On sigma-phi numbers, Mathematika 48 (2001), 169-189.
MAPLE
f:= proc(n)
add( d-1, d= numtheory[factorset](n));
end proc:
results := []:
for n from 2 to 1000 do # Adjust the range as needed
if mod(n-1, f(n)) = 0 then
results := [op(results), n];
end if;
end do;
results;
MATHEMATICA
Select[Range[2, 200], Divisible[# - 1, Total[FactorInteger[#][[;; , 1]] - 1]] &] (* Amiram Eldar, May 26 2024 *)
PROG
(PARI) isok(k) = (k>1) && (((k-1) % vecsum(apply(x->(x-1), factor(k)[, 1]))) == 0); \\ Michel Marcus, May 26 2024
CROSSREFS
KEYWORD
nonn
AUTHOR
Rafik Khalfi, May 25 2024
STATUS
approved