|
|
A350777
|
|
Numbers k where phi(k) divides k - 3.
|
|
4
|
|
|
|
OFFSET
|
1,2
|
|
COMMENTS
|
Numbers in this sequence larger than 2 have to be odd, since phi(n) is even for n > 2, so n - 3 cannot be odd. Therefore n itself must be odd.
|
|
LINKS
|
|
|
EXAMPLE
|
phi(195) = 96, 195 - 3 = 192, and 96 divides 192.
|
|
MATHEMATICA
|
Select[Range[6000], Divisible[#-3, EulerPhi[#]] &] (* Amiram Eldar, Jan 19 2022 *)
|
|
PROG
|
(PARI) isok(k) = !((k-3) % eulerphi(k)); \\ Michel Marcus, Jan 19 2022
(Python)
from sympy import totient
print("1, 2", end=", ")
for k in range (3, 10**8, 2):
if (k-3)%totient(k)==0:
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,more
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|