At Least One Success
Computer Mathematics
Hard
2 views
Problem Description
Given n independent trials with success probability p (as a/b), find prob of at least one success.
Input Format
n a b (p=a/b).
Output Format
Reduced fraction.
Official Solution
P(at least one)=1-(1-p)^n. Compute numerator/denominator with integers and reduce.
Solutions (0)
No solutions submitted yet. Be the first!
No comments yet. Start the discussion!