NickOP wrote:
Hi Brent,
NOTE: in these calculations, one of the possible outcomes is that ZERO friends are invited. The question says that AT LEAST ONE friend must come.
So, we must subtract this 1 outcome from our solution.
So, total number of ways to invite friends = 256 - 1 = 255
Does this mean - he sends out 256 invites with two options - Attending / Not attending.
If thats the case if he wants atleast one friend to come -why cant the answer be 2^7 * 1
Can you please kindly comment.
Thanks in advance.
If A, B, C, D, E, F, G and H represent the 8 friends, then let's start listing all 256 possible outcomes.
Let N represent the friend was not invited, and Y represent the friend was invited.
Some possible outcomes include:
- AN, BN, CN, DN, EN, FN, GN, HN (no friend was invited)
- AY, BN, CN, DN, EN, FN, GN, HN (1 friend was invited)
- AN, BY, CN, DN, EN, FN, GN, HN (1 friend was invited)
- AN, BN, CY, DN, EN, FN, GN, HN (1 friend was invited)
- AN, BN, CN, DY, EN, FN, GN, HN (1 friend was invited)
- AN, BN, CN, DN, EY, FN, GN, HN (1 friend was invited)
- AN, BN, CN, DN, EN, FY, GN, HN (1 friend was invited)
- AN, BN, CN, DN, EN, FN, GY, HN (1 friend was invited)
- AN, BN, CN, DN, EN, FN, GN, HY (1 friend was invited)
- AY, BY, CN, DN, EN, FN, GN, HN (2 friends were invited)
- AY, BN, CY, DN, EN, FN, GN, HN (2 friends were invited)
.
.
.
etc
As you can see, out of the 256 possible outcomes, exactly one outcome (the first outcome in the list) breaks the condition that
at least one friend must be invited
So we must subtract that 1 I would come from 256 to get 255
Does that help?