File size: 924 Bytes
de0a028
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
Solve the following math problem.

Solve with your own reasoning and available tools. Do not look anything up online or call other models or services.

Write ONLY your final answer to `/app/answer.txt` (create `/app` if needed). The answer must be one exact number, such as an integer, fraction, or exact expression. Do not include units, words, variables, or a decimal approximation.

Problem:

Define \(S\) to consist of all ordered pairs \((x, y)\) of nonnegative integers satisfying \(0 \leq x \leq 19\) and \(0 \leq y \leq 2\). How many permutations \((x_1, y_1)\), \((x_2, y_2)\), ..., \((x_{60}, y_{60})\) of the elements of \(S\) meet the following requirements?

- \(y_1 = 2\) and \(y_{60} = 0\); - for every nonnegative integer \(1 \leq i \leq 59\), precisely one of these two conditions is satisfied: - \(x_i = x_{i+1}\) and \(|y_i - y_{i+1}| = 1\), - \(y_i = y_{i+1}\) and \(x_i - x_{i+1}\) is \(-1\) or \(19\).