# Lottery ball problem - How to go about solving?

A woman works at a lottery ball factory. She's instructed to create lottery balls, starting from number 1, using the following steps:

1. Open lottery ball package and remove red rubber ball.
2. Using two strips of digit stickers (0 through 9), create the current number by pasting the digits on the ball.
3. Digits not used in this way are put in a bowl where she may fish for other digits if she's missing some later.
4. Proceed to the next ball, incrementing the number by one.

The lottery ball problem is, at what number will she arrive at before she's out of digits (granted, it's a large number, so assume these are basketball-sized rubber balls)?

My question is not so much the solution as it is how to go about solving for this number? It seems evident that the first digit she'll run out of will be 1, since that's the number she starts with, however beyond that I wouldn't know how to go about determining that number. Any clues that could push me in the right direction would be greatly appreciated.

-
How is this related to fractals? – Raskolnikov May 6 '11 at 13:20
Or analyis :) ? – Phira May 6 '11 at 13:23
I don't know! :( Feel free to modify the keywords since I'm not sure how to categorize this. – Neil May 6 '11 at 13:26

Yup, the first digit you run out of will be 1. As to how to solve it - try writing a formula for the number of $1$s in the decimal representations of the first $n$ numbers, and try and work out when it overtakes $2n$.
{"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 1, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "url": "http://math.stackexchange.com/questions/37413/lottery-ball-problem-how-to-go-about-solving", "fetch_time": 1469808574000000000, "content_mime_type": "text/html", "warc_filename": "crawl-data/CC-MAIN-2016-30/segments/1469257831769.86/warc/CC-MAIN-20160723071031-00218-ip-10-185-27-174.ec2.internal.warc.gz", "warc_record_offset": 158156484, "warc_record_length": 18202, "token_count": 377, "char_count": 1513, "score": 3.796875, "int_score": 4, "crawl": "CC-MAIN-2016-30", "snapshot_type": "latest", "language": "en", "language_score": 0.9506754279136658, "file_path": "/sailhome/yjruan/project/latent-lm/data/processed/finemath-4plus/finemath-4plus/train-00022-of-00064.parquet"}