View Single Post
Old 07-03-2022, 10:37 AM   #2845
DownInFlames
Craig McTavish' Merkin
 
DownInFlames's Avatar
 
Join Date: Oct 2008
Exp:
Default

Quote:
Originally Posted by psyang View Post
I like the problem, but his explanation on counting the number of loops of length 100 seems wrong.

In the first box, you only have 99 choices (you can't choose itself or you have a loop of 1 which is < 100).
The second box has 98 choices (can't choose itself plus the previous box# or you have a loop of 1 or 2 which is < 100).
etc.
So # of loops of length 100 is 99!


# of unique loops of length 100 is 99!/100.

P(L=100) = (99!/100)/(100!) = 1/10000.

I assume I made a mistake somewhere, but I can't see it. Any ideas?
The first box (the one with your number) is the first choice in the loop, or it will be the last choice because the 99th box will contain your number. Either way it's 100! no 99!
DownInFlames is offline   Reply With Quote
The Following User Says Thank You to DownInFlames For This Useful Post: