All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars    
perplexus dot info

Home > Probability
All Different Equals One Duplicate (Posted on 2025-04-05) Difficulty: 2 of 5
Consider the construction of a string of characters which is C characters in length, by randomly selecting from an N-character alphabet (selecting randomly with replacement).

If the probability that all characters are distinct equals the probability that exactly one character appears twice but all the other characters appear just once, then what is the number of characters in the alphabet?

Find N in terms of C.

No Solution Yet Submitted by Larry    
No Rating

Comments: ( Back to comment list | You must be logged in to post comments.)
Hints/Tips re: Seems to be this | Comment 2 of 3 |
(In reply to Seems to be this by Charlie)

Why even bring in the computer when you already did the analytical work to express each half?  Since the two scenarios are to be equally likely then just equate them.


C(n,c)*c! / n^c = n*C(n-1,c-2)*c!/2 / n^c
C(n,c) = (1/2)*n*C(n-1,c-2)
n! / [c!*(n-c)!] = (1/2) * n * (n-1)! / [(c-2)!*(n-c+1)!]
1/[c!*(n-c)!] = (1/2)*[(c-2)!*(n-c+1)!]
c!*(n-c)! = 2*(c-2)!*(n-c+1)!
c!/(c-2)! = 2*(n-c+1)!/(n-c)!
c*(c-1) = 2*(n-c+1)
c*(c-1)/2+c-1 = n
(1/2)*c^2 + (1/2)*c - 1 = n

  Posted by Brian Smith on 2025-04-06 22:54:51
Please log in:
Login:
Password:
Remember me:
Sign up! | Forgot password


Search:
Search body:
Forums (0)
Newest Problems
Random Problem
FAQ | About This Site
Site Statistics
New Comments (12)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On

Chatterbox:
Copyright © 2002 - 2025 by Animus Pactum Consulting. All rights reserved. Privacy Information