login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A216388
Number of values of k for which sigma(k)-k is a permutation of decimal digits of k, for k < 10^n.
0
1, 2, 5, 15, 55, 270, 1494, 8081, 3395709, 53903207
OFFSET
1,2
FORMULA
a(n) = # { k in A085844 | k < 10^n }. - M. F. Hasler, Feb 24 2014
EXAMPLE
a(3) = 5 because the values of k satisfying the condition for k < 10^3 are {6, 28, 411, 496, 604}. - V. Raman, Feb 17 2014
PROG
(PARI) a(n)=sum(k=1, 10^n, vecsort(digits(k)) == vecsort(digits(sigma(k)-k))) \\ V. Raman, Feb 17 2014, based on edits by M. F. Hasler
CROSSREFS
Sequence in context: A363200 A137533 A121392 * A005976 A351158 A187981
KEYWORD
nonn,base,more
AUTHOR
V. Raman, Sep 06 2012
EXTENSIONS
a(9)-a(10) from Lars Blomberg, Jan 23 2016
STATUS
approved