Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A090579
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A090579 Number of numbers with 4 decimal digits and sum of digits = n. +0
3
1, 4, 10, 20, 35, 56, 84, 120, 165, 219, 279, 342, 405, 465, 519, 564, 597, 615, 615, 597, 564, 519, 465, 405, 342, 279, 219, 165, 120, 84, 56, 35, 20, 10, 4, 1 (list; graph; listen)
OFFSET

1,2

COMMENT

There are 9000 numbers with 4 decimal digits, the smallest being 1000 and the largest 9999.

EXAMPLE

a(2)=4: 1001, 1010, 1100, 2000.

PROGRAM

(PARI) b=vector(36, i, 0); for(n=1000, 9999, a=eval(Vec(Str(n))); b[sum(j=1, 4, a[j])]++); for(n=1, 36, print1(b[n], ", ")) - Herman Jamke (hermanjamke(AT)fastmail.fm), Oct 19 2006

CROSSREFS

Cf. A071817 3-digit numbers, A090580 5-digit numbers, A090581 6-digit numbers.

Sequence in context: A127764 A138778 A038409 this_sequence A000292 A101552 A038419

Adjacent sequences: A090576 A090577 A090578 this_sequence A090580 A090581 A090582

KEYWORD

base,fini,full,nonn

AUTHOR

Hugo Pfoertner (hugo(AT)pfoertner.org), Jan 12 2004

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified November 25 20:09 EST 2009. Contains 167514 sequences.


AT&T Labs Research