Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A090581
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A090581 Number of numbers with 6 decimal digits and sum of digits = n. +0
3
1, 6, 21, 56, 126, 252, 462, 792, 1287, 2001, 2992, 4317, 6027, 8162, 10746, 13782, 17247, 21087, 25212, 29496, 33787, 37917, 41712, 45002, 47631, 49467, 50412, 50412, 49467, 47631, 45002, 41712, 37917, 33787, 29496, 25212, 21087, 17247, 13782, 10746, 8162, 6027, 4317, 2992, 2001, 1287, 792, 462, 252, 126, 56, 21, 6, 1 (list; graph; listen)
OFFSET

1,2

COMMENT

There are 900000 6-digit numbers, the smallest being 100000 and the largest 999999.

EXAMPLE

a(2)=6: 100001, 100010, 100100, 101000, 110000, 200000.

PROGRAM

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

CROSSREFS

Cf. A071817 3-digit numbers, A090579 4-digit numbers, A090580 5-digit numbers.

Sequence in context: A008488 A120478 A023031 this_sequence A000389 A140228 A006090

Adjacent sequences: A090578 A090579 A090580 this_sequence A090582 A090583 A090584

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 July 23 17:35 EDT 2008. Contains 142285 sequences.


AT&T Labs Research