cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

Showing 1-2 of 2 results.

A115921 Numbers k such that the decimal digits of phi(k) are a permutation of those of k.

Original entry on oeis.org

1, 21, 63, 291, 502, 2518, 2817, 2991, 4435, 5229, 5367, 5637, 6102, 6174, 6543, 6822, 7236, 7422, 8022, 8541, 8982, 17631, 18231, 18261, 20301, 20518, 20617, 21058, 22471, 22851, 25196, 25918, 27615, 29817, 34816, 35683, 43218, 44305
Offset: 1

Views

Author

Giovanni Resta, Feb 06 2006

Keywords

Comments

Contains A069215 and A113781; is itself a subsequence of A082060. - M. F. Hasler, Nov 28 2007
There is some m > 1 such that a(n) > m*n for all n > 1. This follows from the positive density of numbers n such that n/phi(n) > 10. - Charles R Greathouse IV, Sep 07 2012

Examples

			phi(20301) = 13200, phi(6543) = 4356.
		

Crossrefs

Programs

  • Mathematica
    Select[Range[45000],Sort[IntegerDigits[EulerPhi[#]]]==Sort[IntegerDigits[#]]&] (* Harvey P. Dale, Jul 25 2018 *)
  • PARI
    for(n=1,10^5,if(vecsort(Vecsmall(Str(n)))==vecsort(Vecsmall(Str(eulerphi(n)))),print1(n", "))) \\ M. F. Hasler, Nov 28 2007
    
  • Python
    from sympy import totient
    A115921_list = [n for n in range(1,10**4) if sorted(str(totient(n))) == sorted(str(n))] # Chai Wah Wu, Dec 13 2015

Extensions

Edited by M. F. Hasler, Nov 28 2007

A082060 Numbers n such that n and phi(n) have the same distinct decimal digits.

Original entry on oeis.org

1, 21, 63, 101, 233, 291, 502, 677, 1021, 1031, 1051, 1061, 1091, 1201, 1226, 1301, 1601, 1801, 1901, 2011, 2201, 2333, 2383, 2393, 2518, 2633, 2677, 2700, 2767, 2817, 2833, 2991, 3011, 3023, 3122, 3203, 3253, 3323, 3623, 3677, 3767, 3823, 3923, 3989
Offset: 1

Views

Author

Labos Elemer, Apr 04 2003

Keywords

Comments

Contains A113781 as a subsequence. - M. F. Hasler, Nov 28 2007
Numbers n such that n and phi(n) have the same decimal digits = A115921. - Jaroslav Krizek, Nov 13 2014

Examples

			n=502 is a member since phi[502]=250
		

Crossrefs

Programs

  • Mathematica
    Select[Range[4000],Union[IntegerDigits[#]]==Union[IntegerDigits[ EulerPhi[ #]]]&] (* Harvey P. Dale, Jan 31 2022 *)
  • PARI
    for(n=1,10^4,if(Set(Vec(Str(n)))==Set(Vec(Str(eulerphi(n)))),print1(n", "))) \\ M. F. Hasler, Nov 28 2007
    
  • Python
    from sympy import totient
    A082060_list = [n for n in range(1,10**4) if set(str(totient(n))) == set(str(n))] # Chai Wah Wu, Dec 13 2015

Extensions

Definition and comment corrected by Jaroslav Krizek, Nov 13 2014
Showing 1-2 of 2 results.