OFFSET
1,2
LINKS
Donovan Johnson, Table of n, a(n) for n = 1..1000
EXAMPLE
2771 is in the sequence because sigma(2771) = 2952, phi(2771) = 2592
MATHEMATICA
okQ[n_] := Module[{idn = IntegerDigits[DivisorSigma[1, n]]}, Sort[idn] == Sort[IntegerDigits[EulerPhi[n]]]]; Select[Range[40000], okQ]
PROG
(Python)
from sympy import totient, divisor_sigma
A175795_list = [n for n in range(1, 10**4) if sorted(str(divisor_sigma(n))) == sorted(str(totient(n)))] # Chai Wah Wu, Dec 13 2015
(PARI) isok(n) = (de = digits(eulerphi(n))) && (ds = digits(sigma(n))) && (vecsort(de) == vecsort(ds)); \\ Michel Marcus, Dec 13 2015
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Michel Lagneau, Sep 06 2010
STATUS
approved