login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A283001 a(n) = (A004186(n) - n)/9. 2
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 4, 5, 6, 7, 8, 0, 0, 0, 1, 2, 3, 4, 5, 6, 7, 0, 0, 0, 0, 1, 2, 3, 4, 5, 6, 0, 0, 0, 0, 0, 1, 2, 3, 4, 5, 0, 0, 0, 0, 0, 0, 1, 2, 3, 4, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,14

COMMENTS

A004186(n) is the number formed when the digits of n are sorted nonincreasingly.

Is this the same as A037887 or A037851? - R. J. Mathar, Mar 06 2017

LINKS

David A. Corneth, Table of n, a(n) for n = 0..9999

FORMULA

a(10*n) = 10*a(n).

EXAMPLE

a(141) = (411 - 141)/9 = 30.

MATHEMATICA

s[n_]:= FromDigits@ Reverse@ Sort@ IntegerDigits@ n; a[n_]:=(s[n]-n)/9; Table[a[n], {n, 0, 89}] (* Indranil Ghosh, Feb 26 2017 *)

PROG

(PARI) a(n) = my(d = digits(n), v=vecsort(d, , 4)-d); sum(i=1, #v, v[i]*10^(#v-i)) / 9

(Python) def A283001(n): return (int("".join(sorted(str(n), reverse=True)))-n)/9 # Indranil Ghosh, Feb 26 2017

CROSSREFS

Cf. A004186, A037887, A037851.

Sequence in context: A155919 A265540 A075011 * A037851 A037887 A207505

Adjacent sequences:  A282998 A282999 A283000 * A283002 A283003 A283004

KEYWORD

nonn,base,easy,look

AUTHOR

David A. Corneth, Feb 26 2017

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 June 6 04:15 EDT 2020. Contains 334859 sequences. (Running on oeis4.)