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

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A094798 Number of times 1 is used in writing out all the numbers 1 through n. 5
1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 4, 5, 6, 7, 8, 9, 10, 11, 12, 12, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 18, 18, 18, 18, 18 (list; graph; refs; listen; history; internal format)
OFFSET

1,10

COMMENTS

The number of 1's required to write all integers of n or fewer digits (i.e. the sequence a(9), a(99), a(999), ...) is 1, 20, 300, 4000, ..., which is A053541. - Jason D. W. Taff (jtaff(AT)jburroughs.org), Dec 05 2004

A014778 gives the fixed points. - David Wasserman (wasserma(AT)spawar.navy.mil), Feb 22 2005

MAPLE

nones:=proc(n) local nn, c, j: nn:=convert(n, base, 10): c:=0: for j to nops(nn) do if nn[j]=1 then c:=c+1 else end if end do: c end proc: a:=proc(n) options operator, arrow: add(nones(k), k=1..n) end proc: seq(a(n), n=1..75); - Emeric Deutsch (deutsch(AT)duke.poly.edu), Mar 01 2008

CROSSREFS

Cf. A014778, A053541.

Sequence in context: A182815 A196252 A004722 * A162880 A083792 A083794

Adjacent sequences:  A094795 A094796 A094797 * A094799 A094800 A094801

KEYWORD

easy,base,nonn

AUTHOR

Lekraj Beedassy (blekraj(AT)yahoo.com), Jun 11 2004

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 16 16:51 EST 2012. Contains 205938 sequences.