Take a test Sign in 中文
← Exercise 942 →
Search
Go to
{{searchResults.length}} {{searchResults.length === 1 ? 'result' : 'results'}} for “{{searchWords}}” No results found for “{{searchWords}}” × back to contents
Contents · by chapter
Digits (38)
Primes (31)
Fractions, Decimals, and the Floor Function (18)
Divisors, GCD, and LCM (36)
Divisibility (59)
Bases (15)
Modular Arithmetic (42)
Integer Equations (27)

Exercises and their solutions

Exercise 942
Let $a_1,a_2,\ldots$ be a sequence determined by the rule $a_n=a_{n-1}/2$ if $a_{n-1}$ is even and $a_n=3a_{n-1}-1$ if $a_{n-1}$ is odd. For how many positive integers $a_1\le100$ is $a_1$ less than each of $a_2$, $a_3$, and $a_4$?
← Back to Problem 942
Solution
  1. If $a_1$ is even, $a_2=\frac{a_1}2<a_1$. If $a_1$ is odd, $a_2=3a_1-1$ is even and $a_3=\frac{3a_1-1}2$; both exceed $a_1$ when $a_1>1$ (for $a_1=1$ the sequence is $1,2,1,\dots$).
  2. If $a_1\equiv3\pmod4$, then $3a_1-1\equiv0\pmod4$, so $a_3$ is even and $a_4=\frac{3a_1-1}4<a_1$. If $a_1\equiv1\pmod4$, then $3a_1-1\equiv2\pmod4$, so $a_3$ is odd and $a_4=3a_3-1>a_3>a_1$.
  3. So $a_1\equiv1\pmod4$ and $a_1>1$.
  4. So $a_1\in\{5,9,\dots,97\}$: $\boxed{24}$ values.
Search Go to Prev      Next

Contact Us

Thanks! Your message has been sent.
By year