Holi problem

It was holi.Five of my friends Harsh, Tavish , Vaibhav, Abhinav and Ambuj were walking through a lane. In the lane 10 of our friends were waiting for them with their watergun and water balloons.Harsh didn't want to get wet.

Let the number of ways in which Harsh didn't get wet be d e d^{e} .[where d is a square of prime number ]

Let 5 a × c 5^{a}\times c be the number of ways in which at least one of them didn't get wet.

Then find (a+c)-(d+e).

Details and Assumptions

Each of the friend can throw water on any of the five. The 10 friends will not prejudice on the basis that any of the five friends are wet or not.In other words probability of each of the 5 friends to get hit by any of the other 10 in the lane is same.Each of the 10 friends will throw water on only one boy.And yes each one will throw water.


The answer is 37290.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

3 solutions

David Vreken
Jan 20, 2021

The Python program below finds that Harsh doesn't get wet 1048576 = 4 10 1048576 = 4^{10} different ways, and at least one of them didn't get wet 4662625 = 5 3 × 37301 4662625 = 5^3 \times 37301 different ways. Therefore, a = 3 a = 3 , c = 37301 c = 37301 , d = 4 d = 4 , e = 10 e = 10 , and ( a + c ) ( d + e ) = 37290 (a + c) - (d + e) = \boxed{37290} .

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import string
digs = string.digits + string.ascii_letters

def int2base(x, base):
    if x < 0:
        sign = -1
    elif x == 0:
        return digs[0]
    else:
        sign = 1
    x *= sign
    digits = []
    while x:
        digits.append(digs[int(x % base)])
        x = int(x / base)
    if sign < 0:
        digits.append('-')
    digits.reverse()
    return ''.join(digits)

Htotal = 0
Atotal = 0
for a in range(0, 5 ** 10):
    seq = int2base(a, 5).zfill(10)
    H = False
    A = False
    if "0" not in seq:
        H = True
        A = True
    if "1" not in seq:
        A = True
    if "2" not in seq:
        A = True
    if "3" not in seq:
        A = True
    if "4" not in seq:
        A = True
    if H:
        Htotal += 1
    if A:
        Atotal += 1
print(Htotal, Atotal)

@David Vreken , we really liked your comment, and have converted it into a solution.

Brilliant Mathematics Staff - 4 months, 3 weeks ago
Jon Haussmann
Jan 20, 2021

By Inclusion-Exclusion, the number of ways where everyone gets wet is k = 0 5 ( 1 ) k ( 5 k ) ( 5 k ) 10 = 5103000 , \sum_{k = 0}^5 (-1)^k \binom{5}{k} (5 - k)^{10} = 5103000, so the number of ways where at least one person remains dry is 5 10 5103000 = 4662625 = 5 3 37301. 5^{10} - 5103000 = 4662625 = 5^3 \cdot 37301. Thus, the answer is 3 + 37301 ( 4 + 10 ) = 37290 3 + 37301 - (4 + 10) = 37290 .

@Jon Haussmann , we really liked your comment, and have converted it into a solution.

Brilliant Mathematics Staff - 4 months, 3 weeks ago

LET 10 FRIENDS THAT THROW WATER BE REPRESENTED BY F1 AND OTHERS BE REPRESENTED BY F2.

Harsh didn't want to get wet.Which means that only 4 of the friends(F2) can get wet by 10 other friends(F1) so number of ways will be 4 10 4^{10} . Therefore d=4 ; e = 10.

Total number of ways in which friends (F1) can make others wet = 5 10 5^{10} .

Selection of any 5 friends(F2) can be done in 10!/5!5! and this 5 friends(F1) can throw water in 5! ways when none of them throw at a friend(F2) twice.The rest of the five friend(F1) can throw water at any of them and therefore total number of ways is 5 5 5^{5} .

Hence total number of ways in which everyone(F2) gets wet is[ 5 5 5^{5} ] [10!/5!5!]. Total number of ways in which at least one doesn't get wet is = Total number of ways - total n.o of ways in which everyone gets wet. => 5 10 5^{10} - 5 5 5^{5} 10!/5!5!.

= 5 5 5^{5} ( 5 5 5^{5} -10!/5!5!) = 5 5 5^{5} (3125-252) = 5 5 5^{5} (2873) Therefore a=5 and c=2873. = (a+c)-(d+e) =(2873+5)-(10+4) =2878-14=2864

"Harsh didn't want to get wet.Which means that only 4 of the friends(F2) can get wet by 10 other friends(F1) so number of ways will be 4 10 4^{10} ."

Why will number of ways be 4 10 4^{10} ? @Kalash Verma

Harsh Shrivastava - 6 years, 2 months ago

Log in to reply

Cause the first friend(F1) can wet any of the four. Similarly second can wet any of the four similarly any of the ten friend can wet any of 4of other friend therefore the number of ways will be 4 * 4*4…… ten times that is 4^10. I hope this helps @Harsh Shrivastava

A Former Brilliant Member - 6 years, 2 months ago

Log in to reply

Thanks!!!!!!!!!

Harsh Shrivastava - 6 years, 2 months ago

Got it right!!

Nihar Mahajan - 6 years, 2 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...