Basketball and Combinatorics

Four people are passing a basketball back and forth. After seven passes, how many ways can the ball come back to the person who threw the first pass?


The answer is 546.

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.

2 solutions

Hrithik Ravi
Aug 13, 2017

Let x n x_{n} be the number of ways in which A can get back the ball after n passes. Let y n y_{n} be the number of ways in which the ball goes back to a fixed person other than A after n n passes. We need to find x 7 x_7 . Then:

x n x_{n} = 3 y n 1 3y_{n-1}

Also:

y n y_{n} = x n 1 x_{n-1} + 2 y n 1 2y_{n-1}

We also know that x 1 = 0 x_1 = 0 , x 2 = 3 x_2 = 3 , y 1 = 1 y_1 = 1 , and y 2 = 2 y_2 = 2 .

Then just eliminate y n y_n and y n 1 y_{n-1} to get the following recurrence relation:

x n x_n = 3 x n 1 + 2 x n 3x_{n-1} + 2x_n .

Using this relation, we get:

x 3 = 6 x_3 = 6 ;

x 4 = 21 x_4 = 21 ;

x 5 = 60 x_5 = 60 ;

x 6 = 183 x_6 = 183 ;

x 7 = 546 x_7 = \boxed{546}

Indeed, we can solve these recurrence relations to obtain x n = 1 4 ( 3 n + 3 ( 1 ) n ) y n = 1 4 ( 3 n ( 1 ) n ) x_n \; = \; \tfrac14\big(3^n + 3(-1)^n\big) \hspace{2cm} y_n \; = \; \tfrac14\big(3^n - (-1)^n\big) for all n 1 n \ge 1 .

Mark Hennings - 3 years, 9 months ago

Log in to reply

Just a small correction: n must be a natural number :)

Hrithik Ravi - 3 years, 9 months ago

Log in to reply

Well I was using your notation, and you had only defined x n x_n and y n y_n for positive integer n n . Thus "for all n 1 n\ge1 " would have to be restricted to integer values :)

Mark Hennings - 3 years, 9 months ago

Log in to reply

@Mark Hennings I actually didn't see that bit, my bad

Hrithik Ravi - 3 years, 8 months ago
Jitarani Nayak
Dec 23, 2017

Let A, B, C, D be the four players. We establish a bijection that the answer is the same as number of ways of writing the sequence of 8 letters starting and ending with A, with no consecutive places occupied by the same letter.
Like, A , B , C , A , B , D , B , A A, B, C, A, B, D, B, A is a permissible sequence but A , B , B , A , B , D , B , A A, B, B, A, B, D, B, A and A , B , C , A , B , D , B , C A, B, C, A, B, D, B, C are not.

CASE 1: No A's in between like A , B , C , D , B , D , B , A A, B, C, D, B, D, B, A .
There are 2 5 × 3 2^{5}×3 such arrangements.

CASE 2:1 A in between like A , B , C , A , B , D , B , A A, B, C, A, B, D, B, A .
There are 4 × 3 2 × 2 3 4×3^{2}×2^{3} such arrangements.

CASE 3: 2 A's in between like A , B , C , A , B , A , B , A A, B, C, A, B, A, B, A .
There are 3 × 3 3 × 2 3×3^{3}×2 such arrangements.

We don't have a case four since we can't have 3 A's in between, otherwise two of them will be adjacent.

Now adding all the cases we get the answer "546".

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...