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

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A098159 Numbers n with property that when writing down all the natural numbers from 0 to n one uses n odd digits. 0
1, 17, 18, 20, 21, 37, 38, 40, 41, 57, 58, 60, 61, 77, 78, 80, 81, 97, 98 (list; graph; refs; listen; history; internal format)
OFFSET

1,2

COMMENTS

The sequences seems to stop at 98.

EXAMPLE

[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17] uses 17 odd digits.

MATHEMATICA

f[n_] := Block[{id = Mod[ Flatten[ Table[ IntegerDigits[i], {i, 0, n}]], 2]}, Plus @@ id]; Select[ Range[ 100], f[ # ] == # &] (from Robert G. Wilson v Nov 03 2004)

CROSSREFS

Sequence in context: A043861 A043870 A188049 * A018821 A151978 A111054

Adjacent sequences:  A098156 A098157 A098158 * A098160 A098161 A098162

KEYWORD

base,easy,nonn,fini,full

AUTHOR

Eric Angelini (eric.angelini(AT)kntv.be), Oct 25 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 13 13:36 EST 2012. Contains 205484 sequences.