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?
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.
Indeed, we can solve these recurrence relations to obtain x n = 4 1 ( 3 n + 3 ( − 1 ) n ) y n = 4 1 ( 3 n − ( − 1 ) n ) for all n ≥ 1 .
Log in to reply
Just a small correction: n must be a natural number :)
Log in to reply
Well I was using your notation, and you had only defined x n and y n for positive integer n . Thus "for all n ≥ 1 " would have to be restricted to integer values :)
Log in to reply
@Mark Hennings – I actually didn't see that bit, my bad
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
is a permissible sequence but
A
,
B
,
B
,
A
,
B
,
D
,
B
,
A
and
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
.
There are
2
5
×
3
such arrangements.
CASE 2:1 A in between like
A
,
B
,
C
,
A
,
B
,
D
,
B
,
A
.
There are
4
×
3
2
×
2
3
such arrangements.
CASE 3: 2 A's in between like
A
,
B
,
C
,
A
,
B
,
A
,
B
,
A
.
There are
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".
Problem Loading...
Note Loading...
Set Loading...
Let x n be the number of ways in which A can get back the ball after n passes. Let y n be the number of ways in which the ball goes back to a fixed person other than A after n passes. We need to find x 7 . Then:
x n = 3 y n − 1
Also:
y n = x n − 1 + 2 y n − 1
We also know that x 1 = 0 , x 2 = 3 , y 1 = 1 , and y 2 = 2 .
Then just eliminate y n and y n − 1 to get the following recurrence relation:
x n = 3 x n − 1 + 2 x n .
Using this relation, we get:
x 3 = 6 ;
x 4 = 2 1 ;
x 5 = 6 0 ;
x 6 = 1 8 3 ;
x 7 = 5 4 6