Math Help Forum

Math Help Forum Feed Site Feed

Go Back   Math Help Forum > Math Help Forum Lounge > Math Games and Math Puzzles
Reply
 
Thread Tools Display Modes
  #1  
Old 10-07-2008, 02:57 PM
Member
 
Join Date: Sep 2007
Posts: 69
Country:
Thanks: 2
Thanked 2 Times in 2 Posts
Obsidantion is on a distinguished road
Default Random Number Generator

If a random number generator generated random numbers between 1 and 5 (including both) until it generated a 5, what is the chance that no number before then will have been generated more than once?
Reply With Quote
Advertisement
 
  #2  
Old 10-07-2008, 03:21 PM
Super Member
 
Join Date: Apr 2008
Posts: 687
Country:
Thanks: 6
Thanked 298 Times in 293 Posts
icemanfan is a jewel in the roughicemanfan is a jewel in the roughicemanfan is a jewel in the roughicemanfan is a jewel in the rough
Default

It should be clear (by the pigeonhole principle) that the five must be generated no later than fifth in the sequence if each other number is to have been generated only once.

Then either the five is generated first, second, third, fourth, or fifth.

P(1) = 1/5

P(2) = (4/5)x(1/5)

P(3) = (4/5)x(3/5)x(1/5)

P(4) = (4/5)x(3/5)x(2/5)x(1/5)

P(5) = (4/5)x(3/5)x(2/5)x(1/5)x(1/5)

Just add up the probabilities from there.
__________________
Reply With Quote
  #3  
Old 10-21-2008, 07:01 AM
Member
 
Join Date: Sep 2007
Posts: 69
Country:
Thanks: 2
Thanked 2 Times in 2 Posts
Obsidantion is on a distinguished road
Default

Nice one. I think this is correct.
Reply With Quote
  #4  
Old 10-22-2008, 02:22 AM
Grand Panjandrum


 
Join Date: Nov 2005
Posts: 10,426
Thanks: 517
Thanked 2,784 Times in 2,291 Posts
CaptainBlack has disabled reputation
Default

Quote:
Originally Posted by Obsidantion View Post
If a random number generator generated random numbers between 1 and 5 (including both) until it generated a 5, what is the chance that no number before then will have been generated more than once?
This looks vaguely familiar, it may have been asked elsewhere on MHF recently.

CB
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -7. The time now is 03:57 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc.
©2005 - 2008 Math Help Forum


Math Help Forum is a community of maths forums with an emphasis on maths help in all levels of mathematics.
Register to post your math questions or just hang out and try some of our math games or visit the arcade.