[go: up one dir, main page]

login
A151950
a(n) = A151949(n)/9.
12
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 2, 1, 0, 1, 2, 3, 4, 5, 6, 7, 3, 2, 1, 0, 1, 2, 3, 4, 5, 6, 4, 3, 2, 1, 0, 1, 2, 3, 4, 5, 5, 4, 3, 2, 1, 0, 1, 2, 3, 4, 6, 5, 4, 3, 2, 1, 0, 1, 2, 3, 7, 6, 5, 4, 3, 2, 1, 0, 1, 2, 8, 7, 6, 5, 4, 3, 2, 1, 0, 1, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 11, 11, 22
OFFSET
0,14
LINKS
Seiichi Manyama, Table of n, a(n) for n = 0..10000 (terms 0..1000 from Joseph Myers)
PROG
(PARI) a(n) = my(d=digits(n)); (fromdigits(vecsort(d, , 4)) - fromdigits(vecsort(d)))/9; \\ Michel Marcus, Sep 25 2018
CROSSREFS
In other bases: A164884 (base 2), A164994 (base 3), A165013 (base 4), A165033 (base 5), A165052 (base 6), A165072 (base 7), A165091 (base 8), A165111 (base 9). [From Joseph Myers, Sep 05 2009]
Sequence in context: A040115 A080465 A347689 * A104418 A173528 A245345
KEYWORD
nonn,base,look
AUTHOR
N. J. A. Sloane, Aug 18 2009
EXTENSIONS
Extended by Joseph Myers, Aug 28 2009
STATUS
approved