Assume that an arbitrary number extends into infinity without ever repeating in whole.
Tell me: what is the number of digits needed to guarantee that any string of 5 numbers is repeated?
Edited by Molly Mae, 30 September 2011 - 08:07 PM.
![]() |
Welcome to BrainDen.com - Brain Teasers Forum. Like most online communities you must register to post in our community, but don't worry this is a simple free process. To be a part of BrainDen Forums you may create a new account or sign in if you already have an account. As a member you could start new topics, reply to others, subscribe to topics/forums to get automatic updates, get your own profile and make new friends. Of course, you can also enjoy our collection of amazing optical illusions and cool math games. If you like our site, you may support us by simply clicking Google "+1" or Facebook "Like" buttons at the top. If you have a website, we would appreciate a little link to BrainDen. Thanks and enjoy the Den :-) |
Posted 30 September 2011 - 08:00 PM
Edited by Molly Mae, 30 September 2011 - 08:07 PM.
A recipe for honey-pickled apples
Awards:
Posted 30 September 2011 - 08:33 PM
Good enough for me.Spoiler for first effort
100,000 combinations, so by 100,001st string must be a repeat somewhere...string starts at 100,001 ends at 100,005
A recipe for honey-pickled apples
Awards:
Posted 01 October 2011 - 06:07 AM
Posted 02 October 2011 - 01:43 PM
Posted 03 October 2011 - 03:06 PM
Right, I wasn't asking for the minimum, else it would have strictly been 6. Which is also not clever.Spoiler for Hmmm ... Aren't we all missing something?I'm wondering why all the respondents have been so willing to accept Maurice's answer of 100,000. Maurice himself points out that he hasn't considered overlaps, and that makes a difference.
For example, if we started with even the simplest and most obvious way to list the possibilities (00000, 00001, 00002, etc.), even before we finished writing the second combination, we'd get the repeating sequence 00000.
I recognise that the OP didn't ask for the minimum number of digits. But surely that is implied, isn't it? Otherwise, it's just answering the trivial question "How many 5-digit numbers are there?" (including leading zeroes, if you want to be pedantic)
I'm sure the intent of the problem was to be more complex (and clever) than this.
Spoiler for Here's my answer to the variation:On the other hand, if we do strictly accept the wording of the problem (despite what I said in my other spoiler), then I will be the first to submit 100,000 as the answer to the variation as well!
After all, if we don't care about it being a minimum, then the answer that works for the general case also works by default for the more restricted case as well.
Edited by Molly Mae, 03 October 2011 - 03:07 PM.
A recipe for honey-pickled apples
Awards:
0 members, 0 guests, 0 anonymous users
Community Forum Software by IP.Board 3.4.5
Licensed to: BrainDen
