The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A216389 Number of values of k for which sigma(k) is a permutation of decimal digits of k, for k < 10^n. 0
1, 2, 7, 17, 64, 264, 1106, 5804 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
FORMULA
a(n) = # { k in A115920 | k < 10^n }. - M. F. Hasler, Feb 24 2014
EXAMPLE
a(3) = 7 because the values of k satisfying the condition for k < 10^3 are {1, 69, 258, 270, 276, 609, 639}. - V. Raman, Feb 17 2014
MATHEMATICA
With[{ds=Table[If[Sort[IntegerDigits[DivisorSigma[1, n]]]==Sort[ IntegerDigits[ n]], 1, 0], {n, 10^8}]}, Table[Total[Take[ds, 10^i]], {i, 8}]] (* Harvey P. Dale, Apr 20 2017 *)
PROG
(PARI) a(n)=sum(k=1, 10^n, vecsort(digits(k)) == vecsort(digits(sigma(k)))) \\ V. Raman, Feb 17 2014, based on edits by M. F. Hasler
CROSSREFS
Sequence in context: A133407 A182667 A067602 * A154298 A225806 A283754
KEYWORD
nonn,base,more
AUTHOR
V. Raman, Sep 06 2012
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 15 09:08 EDT 2024. Contains 372540 sequences. (Running on oeis4.)