login
This site is supported by donations to The OEIS Foundation.

 

Logo

Annual Appeal: Please make a donation to keep the OEIS running. In 2018 we replaced the server with a faster one, added 20000 new sequences, and reached 7000 citations (often saying "discovered thanks to the OEIS").
Other ways to donate

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
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 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,14

LINKS

Seiichi Manyama, Table of n, a(n) for n = 0..10000 (terms 0..1000 from Joseph Myers)

Index entries for the Kaprekar map

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: A113608 A040115 A080465 * A104418 A173528 A245345

Adjacent sequences:  A151947 A151948 A151949 * A151951 A151952 A151953

KEYWORD

nonn,base,look

AUTHOR

N. J. A. Sloane, Aug 18 2009

EXTENSIONS

Extended by Joseph Myers, Aug 28 2009

STATUS

approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified December 13 06:15 EST 2018. Contains 318082 sequences. (Running on oeis4.)