With \(\displaystyle s_1=000\ldots\), \(\displaystyle s_2=111\ldots\) and \(\displaystyle s_3=0101\ldots\), what are the first three terms of the diagonal sequence \(\displaystyle t\), where \(\displaystyle t(n)=1-s_n(n)\)?
Step by step with comments, a check and common mistakes.
Step-by-step solution
The first sequence is \(\displaystyle 000\ldots\), so its first term is 0.
\[\displaystyle s_1(1)=0\]
Comment: Positions are counted from 1.
Complementing, \(\displaystyle t(1)=1\).
\[\displaystyle t(1)=1-0=1\]
The second sequence is \(\displaystyle 111\ldots\), so \(\displaystyle s_2(2)=1\) and \(\displaystyle t(2)=0\).
\[\displaystyle t(2)=1-s_2(2)=0\]
The third sequence is \(\displaystyle 0101\ldots\), whose third term is 0; therefore \(\displaystyle t(3)=1\).
\[\displaystyle t(3)=1-s_3(3)=1\]
The first three terms of \(\displaystyle t\) are 1, 0, 1.