返回题库

AIME 2005 I · 第 13 题

AIME 2005 I — Problem 13

专题
Contest Math
难度
L4
来源
AIME

题目详情

Problem

A particle moves in the Cartesian plane according to the following rules:

  1. From any lattice point (a,b),(a,b), the particle may only move to (a+1,b),(a,b+1),(a+1,b), (a,b+1), or (a+1,b+1).(a+1,b+1).
  2. There are no right angle turns in the particle's path.

How many different paths can the particle take from (0,0)(0,0) to (5,5)(5,5)?

解析

Solution

Solution 1

The length of the path (the number of times the particle moves) can range from l=5l = 5 to 99; notice that d=10ld = 10-l gives the number of diagonals. Let RR represent a move to the right, UU represent a move upwards, and DD to be a move that is diagonal. Casework upon the number of diagonal moves:

  • Case d=1d = 1: It is easy to see only 22 cases.
  • Case d=2d = 2: There are two diagonals. We need to generate a string with 33 RR's, 33 UU's, and 22 DD's such that no two RR's or UU's are adjacent. The DD's split the string into three sections (DD-D-D-): by the Pigeonhole principle all of at least one of the two letters must be all together (i.e., stay in a row).

If both RR and UU stay together, then there are 32=63 \cdot 2=6 ways.

If either RR or UU splits, then there are 33 places to put the letter that splits, which has 22 possibilities. The remaining letter must divide into 22 in one section and 11 in the next, giving 22 ways. This totals 6+322=186 + 3\cdot 2\cdot 2 = 18 ways.

  • Case d=3d = 3: Now 22 RR's, 22 UU's, and 33 DD's, so the string is divided into 44 partitions (DDD-D-D-D-).

If the RR's and UU's stay together, then there are 43=124 \cdot 3 = 12 places to put them.

If one of them splits and the other stays together, then there are 4(32)4 \cdot {3\choose 2} places to put them, and 22 ways to pick which splits, giving 432=244 \cdot 3 \cdot 2 = 24 ways.

If both groups split, then there are (42)=6{4\choose 2}=6 ways to arrange them. These add up to 12+24+6=4212 + 24 + 6 = 42 ways.

  • Case d=4d = 4: Now 11 RR, 11 UU, 44 DD's (DDDD-D-D-D-D-). There are 55 places to put RR, 44 places to put UU, giving 2020 ways.
  • Case d=5d = 5: It is easy to see only 11 case.

Together, these add up to 2+18+42+20+1=0832 + 18 + 42 + 20 + 1 = \boxed{083}.

Solution 2

Another possibility is to use block-walking and recursion: for each vertex, the number of ways to reach it is a+b+ca + b + c, where aa is the number of ways to reach the vertex from the left (without having come to that vertex (the one on the left) from below), bb is the number of ways to reach the vertex from the vertex diagonally down and left, and cc is the number of ways to reach the vertex from below (without having come to that vertex (the one below) from the left).

Assign to each point (i,j)(i,j) the triplet (ai,j,bi,j,ci,j)(a_{i,j}, b_{i,j}, c_{i,j}). Let s(i,j)=ai,j+bi,j+ci,js(i,j) = a_{i,j}+ b_{i,j}+ c_{i,j}. Let all lattice points that contain exactly one negative coordinate be assigned to (0,0,0)(0,0,0). This leaves the lattice points of the first quadrant, the positive parts of the xx and yy axes, and the origin unassigned. As a seed, assign to (0,1,0)(0,1,0). (We will see how this correlates with the problem.) Then define for each lattice point (i,j)(i,j) its triplet thus:

ai,j=s(i1,j)ci1,jbi,j=s(i1,j1)ci,j=s(i,j1)ai,j1.\begin{aligned} a_{i,j} &= s(i-1,j) - c_{i-1,j}\\ b_{i,j} &= s(i-1,j-1) \\ c_{i,j} &= s(i,j-1) - a_{i,j-1}. \end{aligned} It is evident that s(i,j)s(i,j) is the number of ways to reach (i,j)(i,j) from (0,0)(0,0). Therefore we compute vertex by vertex the triplets (ai,j,bi,j,ci,j)(a_{i,j}, b_{i,j}, c_{i,j}) with 0i,j50 \leq i, j \leq 5.

AIME diagram

Finally, after simple but tedious calculations, we find that (a5,5,b5,5,c5,5)=(28,27,28)(a_{5,5}, b_{5,5}, c_{5,5}) = (28,27,28), so s(i,j)=28+27+28=083s(i,j)=28+27+28 = \boxed{083}.