Subcontests
(5)2002 BAMO p5 prime-testing trail of Professor Moriarty, station 1429
Professor Moriarty has designed a “prime-testing trail.” The trail has 2002 stations, labeled 1,...,2002.
Each station is colored either red or green, and contains a table which indicates, for each of the digits 0,...,9, another station number. A student is given a positive integer n, and then walks along the trail, starting at station 1. The student reads the first (leftmost) digit of n, and looks this digit up in station 1’s table to get a new station location. The student then walks to this new station, reads the second digit of n and looks it up in this station’s table to get yet another station location, and so on, until the last (rightmost) digit of n has been read and looked up, sending the student to his or her final station. Here is an example that shows possible values for some of the tables. Suppose that n=19:
https://cdn.artofproblemsolving.com/attachments/f/3/db47f6761ca1f350e39d53407a1250c92c4b05.png
Using these tables, station 1, digit 1 leads to station 29m station 29, digit 9 leads to station 1429, and
station 1429 is green.
Professor Moriarty claims that for any positive integer n, the final station (in the example, 1429) will be green if and only if n is prime. Is this possible? 2002 BAMO p4 inequality with largest odd divisor
For n≥1, let an be the largest odd divisor of n, and let bn=a1+a2+...+an.
Prove that bn≥3n2+2, and determine for which n equality holds. For example, a1=1,a2=1,a3=3,a4=1,a5=5,a6=3, thus b6=1+1+3+1+5+3=14≥362+2=1232
.