login
The OEIS is supported by the many generous donors 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 nonnegative 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; text; internal format)
OFFSET
1,2
COMMENTS
The sequence seems to stop at 98.
LINKS
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[ # ] == # &] (* Robert G. Wilson v, Nov 03 2004 *)
CROSSREFS
Sequence in context: A043870 A296865 A188049 * A241847 A295487 A308888
KEYWORD
base,easy,nonn,fini,full
AUTHOR
Eric Angelini, Oct 25 2004
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 24 20:08 EDT 2024. Contains 371963 sequences. (Running on oeis4.)