SmallMath / tasks /smallmath-0124 /instruction.md
SmallMath dataset builder
Build SmallMath Harbor evaluation dataset
de0a028
|
Raw History Blame Contribute Delete
866 Bytes

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:

A sequence of $100$ numbers $a_1,\ldots,a_{100}$ is formed as follows. Each of the entries from $a_1$ through $a_6$ is independently chosen to be a random integer between $0$ and $6$ inclusive. For $i>6$, the next entry is defined by $a_i=\operatorname{MEX}({a_{i-1},\ldots,a_{i-6}})$, where $\operatorname{MEX}(S)$ is the least nonnegative integer absent from the set $S$. Express the probability that $a_{100}=6$ as $\frac mn$, where $\gcd(m,n)=1$. Determine $m+n$.