20 美元由 5 元与 1 元组成:纸币张数期望
$20 in five-dollar bills and one-dollar bills
题目详情
你有 20 美元,由若干张 5 美元与 1 美元纸币组成。若所有可行组合等可能,纸币总张数的期望是多少?
You have $20 but in some combination of $5’s and $1’s. What’s the expected number of bills?
解析
设 为 5 美元张数, 为 1 美元张数,则
非负整数解为:
- (20 张)
- (16 张)
- (12 张)
- (8 张)
- (4 张)
若每种组合等可能,则
Original Explanation
Let:
- be the number of
- be the number of
Then the total amount of money is:
We are asked to compute the expected value of the total number of bills, i.e.:
Step 1: All valid combinations
We look for all non-negative integer solutions to:
For each value of , must also be a non-negative integer.
Try all values of such that :
- ,
- ,
- ,
- ,
- ,
So there are 5 possible combinations:
- → 20 bills
- → 16 bills
- → 12 bills
- → 8 bills
- → 4 bills
Step 2: Expected number of bills
Assume each combination is equally likely (uniform distribution). Then: