Take a test Sign in 中文
← Exercise 838 →
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 838
Define $f_1(1)=1$ and, for $n=p_1^{e_1}\cdots p_k^{e_k}>1$, $f_1(n)=(p_1+2)^{e_1-1}\cdots(p_k+2)^{e_k-1}$; let $f_m(n)=f_1(f_{m-1}(n))$. For how many $N$ with $1\le N\le400$ is the sequence $f_1(N),f_2(N),\dots$ unbounded?
← Back to Problem 838
Solution
  1. $f_1(n)$ is the product, over the prime powers $p^e$ in $n$, of $(p+2)^{e-1}$; so $f_1$ handles each prime power separately, and primes with exponent $1$ contribute $(p+2)^0=1$. Now $f_1(2^a)=4^{a-1}=2^{2a-2}$, while for odd $p$ the base $p+2$ is odd, so odd primes never create factors of $2$.
  2. If $8\mid N$, i.e.\ the exponent $a$ of $2$ is at least $3$, then the exponent of $2$ goes $a\to2a-2\ge a+1$ at every step, so the sequence is unbounded. There are $400/8=50$ such $N$.
  3. If $a\le2$, the power of $2$ becomes $1$ or $4$ and stays at most $4$. The odd part $m\le400$ has at most one odd prime with exponent $\ge2$, except $225=3^2\cdot5^2\to5\cdot7\to1$. The chains are $3^e\to5^{e-1}$, $5^e\to7^{e-1}$, $7^e\to3^{2e-2}$, $11^2\to13$, $13^2\to3\cdot5$, $17^2\to19$, $19^2\to3\cdot7$; the longest is $3^5\to5^4\to7^3\to3^4\to5^3\to7^2\to3^2\to5\to1$. So the odd part always reaches $1$ and the sequence is bounded.
  4. So there are $\boxed{50}$ values.
Search Go to Prev      Next

Contact Us

Thanks! Your message has been sent.
By year