# Recursion Problem

Watch
Announcements
#1
Mike starts at one corner of a tetrahedron. In a move, he walks along any edge to a different corner. In how many ways can he end up where he started after 6 moves?
0
3 years ago
#2
(Original post by FXLander)
Mike starts at one corner of a tetrahedron. In a move, he walks along any edge to a different corner. In how many ways can he end up where he started after 6 moves?
First I'd draw a tetrahedron and pick a random corner with no loss of generality since it can be rotated.

We can see that you can get from any one corner to another. Remember to get to the same vertex on the sixth move, after the fifth move, we cannot be on the required vertex.

Solution (I hope it's correct):
Spoiler:
Show

We may be at any vertex (apart from the start vertex) after the 5th move to access the start vertex, down any of the three possible edges. In the first move, we may move along any of the three edges. In the remaining moves, we may also travel along one of the three edges to a different vertex each time. But this will over count the moves when we are at the start vertex after the fifth move, since we cannot 'stay' on a move. Let be the number of ways of getting back to the vertex in moves. Then . And we know that . So

.

We may generalise this for moves that
.

1
#3
How did you set up that recurrence relation? Why is V_n = 3^n-1 - V_n-1?
0
3 years ago
#4
(Original post by FXLander)
How did you set up that recurrence relation? Why is V_n = 3^n-1 - V_n-1?
The only way you can't get to the start vertex in 1 move is if you are already at the start vertex. And conversely, if you're not at the start vertex, there's exactly one way of getting to the start in one move.

So, # of routes of getting to start in n moves = (number of routes of length n-1 that don't end at the start point)
= (number of routes of length n-1) - (number of routes of length n-1 that end at the start point)
= (number of routes of length n-1) - V_{n-1}

For the total number of routes of length k, note that at each move, you have 3 choices of possible move.
0
X

new posts
Back
to top
Latest
My Feed

### Oops, nobody has postedin the last few hours.

Why not re-start the conversation?

see more

### See more of what you like onThe Student Room

You can personalise what you see on TSR. Tell us a little about yourself to get started.

### Poll

Join the discussion

#### Are you tempted to change your firm university choice on A-level results day?

Yes, I'll try and go to a uni higher up the league tables (46)
28.4%
Yes, there is a uni that I prefer and I'll fit in better (14)
8.64%
No I am happy with my choice (90)
55.56%
I'm using Clearing when I have my exam results (12)
7.41%