To my friend - Aditya Kumar

Today it's Aditya's Birthday. He invited his friends Surya, Adarsh, Mehul and Rajdeep for party. All five participated in in a game of ball passing, where they pass the ball from one person to another (but not to themselves). If initially the ball was with Aditya, and after seven passes the ball is with Aditya too, how many ways could this game have proceeded?

This is dedicated to my friend Aditya. Happy Birthday to you Aditya Kumar.


The answer is 3276.

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.

5 solutions

Shaurya Gupta
Nov 10, 2015

All possible cases will be of the form- A 4 _ _ _ _ _ A

Case 1: Aditya gets no pass in between
A 4 (3 3 3 3 3) A - 4 3 5 4*3^5 ways

Case 2: Aditya gets 1 pass in between
A 4 (1 4 3 3 3) A - The 1 signifies the case of Aditya getting the ball and the 4 to the right of it signifies the ball going to any of his 4 friends. 1 can only be at first 4 positions inside the bracket since Aditya cannot get the ball on sixth pass(fifth position inside bracket). So 4 2 3 3 4 4^2*3^3*4 ways.

Case 3: Aditya gets 2 passes in between
A 4 (1 4 1 4 3) A
A 4 (1 4 3 1 4) A
A 4 (3 1 4 1 4) A - The 3 arrangements give us 4 3 3 3 4^3*3*3 ways.

No further case is possible since we would need six positions inside the bracket to get 3 '1 4' for 3 passes to Aditya in between.

Adding up the above cases, we get 3276 \boxed{3276} possible ways.

Joey Hunt
Oct 18, 2015

There are 4 6 4^6 ways the ball can be passed after 6 throws, and only one choice for the seventh throw (back to Aditya). But Aditya might have the ball after 6 throws, so we need to subtract from this the number of ways Aditya can get the ball after 6 throws.

Following a similar logic, there are 4 5 4^5 ways the ball can be passed after 5 throws, and only one choice for the seventh throw (back to Aditya). But Aditya might have the ball after 5 throws, so we need to subtract from this the number of ways Aditya can get the ball after 5 throws.

Continuing in this way, we find that the number of ways Aditya can have the ball after 7 throws is 4 6 [ 4 5 ( 4 4 [ 4 3 ( 4 2 4 ) ] ) ] = 3276 4^6-[4^5-(4^4-[4^3-(4^2-4)])]=\boxed{3276} .

The series follows as he has ball in 7 t h 7^{th} but could have had in 6 t h 6^{th} [not possible], if had in 6 t h 6^{th} could have had in 5 t h 5^{th} [ not possible]....

So a continuous substraction of case follows..

Vishal Yadav - 4 years, 2 months ago
Lu Chee Ket
Oct 4, 2015

Fibonacci routes of type of ways of 0, 1, {1, 2, 3, 5, 8, 13, 21}:

1 2 3 4 5 6 7

1 2 3 5 8 13 18+3

4 1 4 1 4 0 0 4 1 4 1 4 0 0 0

                3   1       4   1   4   1   4   3   1   192

                    0       4   1   4   1   4   3   0   0

        3   1   4   1       4   1   4   3   1   4   1   192

            3   0   0       4   1   4   3   3   0   0   0

                3   1       4   1   4   3   3   3   1   432

                    0       4   1   4   3   3   3   0   0

3   1   4   1   4   1       4   3   1   4   1   4   1   192

            3   0   0       4   3   1   4   3   0   0   0

                3   1       4   3   1   4   3   3   1   432

                    0       4   3   1   4   3   3   0   0

    3   1   4   0   0       4   3   3   1   4   0   0   0

                3   1       4   3   3   1   4   3   1   432

                    0       4   3   3   1   4   3   0   0

        3   1   4   1       4   3   3   3   1   4   1   432

            3   0   0       4   3   3   3   3   0   0   0

                3   1       4   3   3   3   3   3   1   972

                    0       4   3   3   3   3   3   0   0

Summarized with 8 routes:

4443 192

4434 192

44333 432

4344 192

43433 432

43343 432

43334 432

433333 972

Total ways = 3276

Harmanjot Singh
Sep 25, 2015

Same question or related question which came in INMO 2014 (basketball one)

Lam Nguyen
Sep 24, 2015

Because using the given name would give me a headache, I'm just gonna call them A, B, C, D and E, with A being the initial guy

Because B,C,D and E are similar to each others

I denote a(i) is the number of ways the ball ends up at either B, C, D or E after i turns

b(i) is the number of ways the ball return to A

Easily proven that there are 4^n ways to pass the ball in n turns

Thus we have the following:

a(n+1)=3a(n)+b(n)

b(n+1)=4a(n)

a(0)=0

b(0)=1

4a(n)+b(n)=4^n

We have the following:

a(n+1)-b(n+1) = b(n) - a(n) = (-1)^(n+1)*(a(0)-b(0)) = (-1)^n

thus a(7) = b(7) + 1

=> 4a(7)+b(7) = 5b(7)+4 = 4^7

=> b = 3276

Use Latex to make ur solution look nice

Surya Prakash - 5 years, 8 months ago

Log in to reply

Unfortunately I'm not used to latex and a bit lazy to google up everything :p

Lam Nguyen - 5 years, 8 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...