document.write( "Question 1210224: Find the number of sequences containing three terms, such that
\n" ); document.write( "* The second term is equal to the sum of the first term plus one.\r
\n" ); document.write( "\n" ); document.write( "* The third term is equal to twice the second term.
\n" ); document.write( "* Each term is an integer in \{0, 1, 2, \dots, 100\}.
\n" ); document.write( "
\n" ); document.write( "

Algebra.Com's Answer #851687 by CPhill(1959)\"\" \"About 
You can put this solution on YOUR website!
Let the three terms of the sequence be $a_1, a_2, a_3$.
\n" ); document.write( "According to the given conditions:
\n" ); document.write( "\begin{enumerate}
\n" ); document.write( " \item The second term is equal to the sum of the first term plus one: $a_2 = a_1 + 1$.
\n" ); document.write( " \item The third term is equal to twice the second term: $a_3 = 2a_2$.
\n" ); document.write( " \item Each term is an integer in $\{0, 1, 2, \dots, 100\}$.
\n" ); document.write( "\end{enumerate}\r
\n" ); document.write( "\n" ); document.write( "From condition 1, since $a_2 = a_1 + 1$, and $a_2$ is an integer, $a_1$ must also be an integer.
\n" ); document.write( "From condition 2, since $a_3 = 2a_2$, and $a_2$ is an integer, $a_3$ must also be an integer.\r
\n" ); document.write( "\n" ); document.write( "We have the following relationships between the terms:
\n" ); document.write( "$a_2 = a_1 + 1$
\n" ); document.write( "$a_3 = 2(a_1 + 1) = 2a_1 + 2$\r
\n" ); document.write( "\n" ); document.write( "Since each term is in the set $\{0, 1, 2, \dots, 100\}$, we have the following inequalities:
\n" ); document.write( "$0 \le a_1 \le 100$
\n" ); document.write( "$0 \le a_2 \le 100 \implies 0 \le a_1 + 1 \le 100$
\n" ); document.write( "$0 \le a_3 \le 100 \implies 0 \le 2a_1 + 2 \le 100$\r
\n" ); document.write( "\n" ); document.write( "Let's analyze the second inequality:
\n" ); document.write( "$0 \le a_1 + 1 \implies a_1 \ge -1$
\n" ); document.write( "$a_1 + 1 \le 100 \implies a_1 \le 99$
\n" ); document.write( "Combining these, we get $-1 \le a_1 \le 99$.\r
\n" ); document.write( "\n" ); document.write( "Let's analyze the third inequality:
\n" ); document.write( "$0 \le 2a_1 + 2 \implies 2a_1 \ge -2 \implies a_1 \ge -1$
\n" ); document.write( "$2a_1 + 2 \le 100 \implies 2a_1 \le 98 \implies a_1 \le 49$
\n" ); document.write( "Combining these, we get $-1 \le a_1 \le 49$.\r
\n" ); document.write( "\n" ); document.write( "For all three conditions to be satisfied, $a_1$ must satisfy all three inequalities:
\n" ); document.write( "$0 \le a_1 \le 100$
\n" ); document.write( "$-1 \le a_1 \le 99$
\n" ); document.write( "$-1 \le a_1 \le 49$\r
\n" ); document.write( "\n" ); document.write( "The intersection of these three ranges for $a_1$ is $0 \le a_1 \le 49$.
\n" ); document.write( "Since $a_1$ must be an integer, the possible values for $a_1$ are $0, 1, 2, \dots, 49$.\r
\n" ); document.write( "\n" ); document.write( "The number of possible integer values for $a_1$ is $49 - 0 + 1 = 50$.
\n" ); document.write( "Each valid value of $a_1$ uniquely determines the sequence $(a_1, a_1+1, 2(a_1+1))$.\r
\n" ); document.write( "\n" ); document.write( "For example:
\n" ); document.write( "If $a_1 = 0$, the sequence is $(0, 1, 2)$.
\n" ); document.write( "If $a_1 = 49$, the sequence is $(49, 50, 100)$.\r
\n" ); document.write( "\n" ); document.write( "The number of such sequences is equal to the number of possible values for $a_1$, which is 50.\r
\n" ); document.write( "\n" ); document.write( "Final Answer: The final answer is $\boxed{50}$
\n" ); document.write( "
\n" );