The integer sequence $(s_i)$ "having pattern 2016'" is defined as follows: $\circ$ The first member $s_1$ is 2. $\circ$ The second member $s_2$ is the least positive integer exceeding $s_1$ and having digit 0 in its decimal notation. $\circ$ The third member $s_3$ is the least positive integer exceeding $s_2$ and having digit 1 in its decimal notation. $\circ$ The third member $s_3$ is the least positive integer exceeding $s_2$ and having digit 6 in its decimal notation. The following members are defined in the same way. The required digits change periodically: $2 \rightarrow 0 \rightarrow 1 \rightarrow 6 \rightarrow 2 \rightarrow 0 \rightarrow \ldots$. The first members of this sequence are the following: $2; 10; 11; 16; 20; 30; 31; 36; 42; 50$. What are the 4 numbers that immediately follow $s_k = 2016$ in this sequence?
Problem
Source:
Tags: recursion, algebra
23.07.2016 13:03
kapsitis wrote: The integer sequence $(s_i)$ "having pattern 2016'" is defined as follows: $\circ$ The first member $s_1$ is 2. $\circ$ The second member $s_2$ is the least positive integer exceeding $s_1$ and having digit 0 in its decimal notation. $\circ$ The third member $s_3$ is the least positive integer exceeding $s_2$ and having digit 1 in its decimal notation. $\circ$ The third member $s_3$ is the least positive integer exceeding $s_2$ and having digit 6 in its decimal notation. The following members are defined in the same way. The required digits change periodically: $2 \rightarrow 0 \rightarrow 1 \rightarrow 6 \rightarrow 2 \rightarrow 0 \rightarrow \ldots$. The first members of this sequence are the following: $2; 10; 11; 16; 20; 30; 31; 36; 42; 50$. What are the 4 numbers that immediately follow $s_k = 2016$ in this sequence? 1) If $k\equiv 1\pmod 4$ : We got $2016$ looking for a $2$ and so $s_{k-1}=2015$ (else $2015$ matches instead of $2016$) So we got $s_{k-1}=2015$ looking for a $6$. Impossible. 2) If $k\equiv 2\pmod 4$ : We got $2016$ looking for a $0$ and so $s_{k-1}=2015$ (else $2015$ matches instead of $2016$) So we got $s_{k-1}=2015$ looking for a $2$ and so $s_{k-2}=2014$ (else $2014$ matches instead of $2015$) So we got $s_{k-2}=2014$ looking for a $6$. Impossible. 3) If $k\equiv 3\pmod 4$ : We got $2016$ looking for a $1$ and so $s_{k-1}=2015$ (else $2015$ matches instead of $2016$) So we got $s_{k-1}=2015$ looking for a $0$ and so $s_{k-2}=2014$ (else $2014$ matches instead of $2015$) So we got $s_{k-2}=2014$ looking for a $2$ and so $s_{k-3}=2013$ (else $2013$ matches instead of $2014$) So we got $s_{k-3}=2013$ looking for a $6$. Impossible. 4) So $k\equiv 0\pmod 4$ and we got $2016$ looking for a $6$ And the four next values are trivially $\boxed{2017,2018,2019,2026}$
09.07.2022 07:18
Don't all cases lead to contradiction? If we follow pco procedure in $k\equiv 0\pmod 4$ we have something like this: we got $2016$ looking for a $6$ then we got $2015$ looking for a $1$ which clearly is there. then we got $2014$ looking for a $0$ which is there. then we got $2013$ looking for a $2$ which is there. but once we reach $2012$ it clearly doesn't have a $6$ as a digit. The least positive number which has a $6$ is $2006$. Similarly if we look at the official solution they devised a proof like this.
But according to the proof given we have that: $$ 2006 \xrightarrow{6 \Rightarrow 2}2013\xrightarrow{2 \Rightarrow 0}2014\xrightarrow{0 \Rightarrow 1} 2015\xrightarrow{1 \Rightarrow 6} 2016 \ldots$$. But according to the logic of the proof given we have again a contradiction since the smallest number after $2006$ that has 2 is $2007$ not $2013$. Is there something that I'm not understanding?