Number Theory — solved exercise (Middle school)
Statement
Given the sequence $a\_1=1$, $a\_2$, $a\_3$, ..., $a\_n$ ($n∈N^∗$), the rule to write the sequence is as follows: if $a\_n-2$ is a natural number and has not been written, then write $a_{n+1}=a\_n-2$; otherwise, write $a_{n+1}=a\_n+3$. Find $a\_6=$ \_\_\_\_\_\_. (Note: $0$ is a natural number)
Strategy
Apply the rule step by step, keeping track of the numbers that have already appeared.
Step-by-step solution
1. Find $a_2$
We start with $a_1=1$. Then $a_1-2=1-2=-1$, which is not a natural number. Therefore, we use the other rule: $$a_2=a_1+3=1+3=4.$$
📖 The rule says to add $3$ when $a_n-2$ is not a natural number or has already appeared.
2. Find $a_3$
Now $a_2=4$. We compute $a_2-2=4-2=2$. The number $2$ is a natural number and has not yet appeared. So $$a_3=2.$$
📖 Since $2$ is natural and new, we subtract $2$.
3. Find $a_4$
Now $a_3=2$. We compute $a_3-2=2-2=0$. The number $0$ is a natural number according to the note, and it has not yet appeared. So $$a_4=0.$$
📖 The problem explicitly states that $0$ is a natural number.
4. Find $a_5$
Now $a_4=0$. We compute $a_4-2=0-2=-2$, which is not a natural number. Therefore, $$a_5=a_4+3=0+3=3.$$
📖 Since $-2$ is not natural, we add $3$.
5. Find $a_6$
Now $a_5=3$. We compute $a_5-2=3-2=1$. The number $1$ is natural, but it has already appeared as $a_1$. Therefore, we cannot write it again, so $$a_6=a_5+3=3+3=6.$$
📖 If $a_n-2$ has already been written, we add $3$ instead.
Result
Therefore, $a_6=6$.
Question-by-question check (two independent resolutions)
| a_6 | 6 | ✔ |
Key concepts
Recursive sequenceNatural numbers including 0Checking whether a term has already appeared
Tip
Be careful with the note: here $0$ is a natural number, so after $a_3=2$ the next term is $0$, not $5$.
Have a similar exercise? Get it solved step by step, for free.
🧮 Solve my exercise