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

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A138471 Number of numbers less than n having the same sum of digits. 5
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 2, 2, 2, 2, 2, 2, 2, 2, 1, 0, 3, 3, 3, 3, 3, 3, 3, 2, 1, 0, 4, 4, 4, 4, 4, 4, 3, 2, 1, 0, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0, 6, 6, 6, 6, 5, 4, 3, 2, 1, 0, 7, 7, 7, 6, 5, 4, 3, 2, 1, 0, 8, 8, 7, 6, 5, 4, 3, 2, 1, 0, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 2, 3, 4, 5, 6 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,21

COMMENTS

A138470(n) + a(n) + A138472(n) = n;

a(A051885(n)) = 0.

LINKS

R. Zumkeller, Table of n, a(n) for n = 0..1500

Index entries for Colombian or self numbers and related sequences

EXAMPLE

a(42)=#{6,15,24,33}=4.

MATHEMATICA

Module[{nn=110, sd}, sd=Total[IntegerDigits[#]]&/@Range[nn]; Join[{0}, Table[ Count[Take[sd, i-1], sd[[i]]], {i, nn}]]] (* Harvey P. Dale, Aug 14 2013 *)

CROSSREFS

Cf. A007953.

Sequence in context: A263204 A194322 A052010 * A102669 A248327 A055098

Adjacent sequences:  A138468 A138469 A138470 * A138472 A138473 A138474

KEYWORD

nonn,base

AUTHOR

Reinhard Zumkeller, Mar 19 2008

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 | More pages
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy .

Last modified March 24 19:44 EDT 2017. Contains 283991 sequences.