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.

A216385 Number of values of k for which phi(k) is a permutation of decimal digits of k, for k < 10^n.

Original entry on oeis.org

1, 3, 5, 21, 78, 403, 2069, 11856, 70835, 437164
Offset: 1

Views

Author

V. Raman, Sep 06 2012

Keywords

Examples

			a(3) = 5 because the values of k satisfying the condition for k < 10^3 are {1, 21, 63, 291, 502}. - _V. Raman_, Feb 17 2014
		

Crossrefs

Programs

  • PARI
    a(n)=sum(k=1, 10^n, vecsort(digits(k)) == vecsort(digits(eulerphi(k)))) \\ Use digits(n)=eval(Vec(Str(n))) in old versions of PARI. - V. Raman, Feb 17 2014, based on edits by M. F. Hasler

Formula

a(n) = # { k in A115921 | k < 10^n }. - M. F. Hasler, Feb 24 2014

Extensions

a(9) from Jinyuan Wang, Mar 03 2020
a(10) from Amiram Eldar, Nov 30 2024