OFFSET
1,2
LINKS
EXAMPLE
20 is in the sequence because totient(20) = 8 and divisors of 8 are [1,2,4].
MAPLE
isA359415 := proc(n)
numtheory[factorset](numtheory[phi](n)) minus {2, 3, 5} ;
if nops(%) =0 then
true;
else
false;
end if;
end proc:
for n from 1 to 100 do
if isA359415(n) then
printf("%d, ", n) ;
end if;
end do: # R. J. Mathar, Mar 22 2023
MATHEMATICA
Select[Range[100], Max[FactorInteger[EulerPhi[#]][[;; , 1]]] <= 5 &] (* Amiram Eldar, Dec 30 2022 *)
PROG
(Python)
from sympy import totient
def isok(n):
f = totient(n)
while f & 1 == 0: f >>= 1
while f % 3 == 0: f //= 3
while f % 5 == 0: f //= 5
return f == 1
(PARI) issm(n) = n<7||vecmax(factor(n, 5)[, 1])<7; \\ A051037
isok(k) = issm(eulerphi(k)); \\ Michel Marcus, Jan 04 2023
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Darío Clavijo, Dec 30 2022
STATUS
approved