Subcontests
(3)For which h, a_n=1
Let h be a positive integer. The sequence an is defined by a0=1 andan+1={2an if an is even an+h otherwise .For example, h=27 yields a1=28,a2=14,a3=7,a4=34 etc. For which h is there an n>0 with an=1? find the greatest n
Determine all n≥3 for which there are n positive integers a1,⋯,an any two of which have a common divisor greater than 1, but any three of which are coprime. Assuming that, moreover, the numbers ai are less than 5000, find the greatest possible n.