Solution:
a) For odd n the tuple (1,1,…,1) is a solution.
Now consider n even. Since the product ∏(ai+ai+1) is a power of two, every factor needs to be a power of two. We are going to prove that for all tuples (a1,…,an) such that ai+ai+1 is always a power of two, it is the case that ∏(ai+ai+1) is equal to an even power of two. We are going to prove this with strong induction on ∑ai.
When all ai are equal to one this is certainly the case. Since ai+ai+1>1 it is even and we conclude that the ai are either all odd or all even. In the case they are all even, then consider the tuple (b1,…,bn) with bi=ai/2. This tuple clearly satisfies the hypothesis as well and we have ∑bi<∑ai. Furthermore we have ∏(ai+ai+1)=2n∏(bi+bi+1) and since n is even we are done in this case.
Now all ai are odd. Suppose none of them are one, then consider the tuple (b1,…,bn) with bi=(ai+(−1)i)/2. Since all ai are odd and strictly larger than one, the bi are positive integers and satisfy bi+bi+1=(ai+ai+1)/2, a power of two. Since ∑bi<∑ai and ∏(ai+ai+1)=2n∏(bi+bi+1) we are done in this case again.
Now there is at least one ai being one. We may assume i=1, because the condition is cyclic. Moreover we may also assume that a2>1 since not all of the ai are equal to one. Let now k be the smallest index larger than one such that ak is equal to one. We are not excluding the case k=n+1, yet. Now for i=1,…,k−1 we have ai+ai+1>2 and thus divisible by four. By induction it easily follows that ai≡(−1)i+1mod4 for i=1,…,k−1. In particular, since ak=1 we find that k is odd and at least three.
Now consider the tuple (b1,…,bn) with bi=(ai−(−1)i)/2 for i=1,…,k and bi=ai otherwise. This is again a tuple that satisfies the hypothesis, since b1=a1=1=bk=ak. Moreover b2<a2 and thus ∑bi<∑ai. Finally we have ∏(ai+ai+1)=2k−1∏(bi+bi+1) and since k is odd we conclude the proof.
b) We use some of the ideas from a). Consider the operators T±(n)=2n±1. We claim that for every odd integer m there is an integer r and signs ϵi∈{+,−} for i=1,…,r such that Tϵr∘…∘Tϵ1(1)=m. This is certainly true for m=1 and for m>1 we find that m=T−((m+1)/2) if m≡1mod4 and m=T+((m−1)/2) if m≡3mod4. Note that both (m+1)/2 and (m−1)/2 are odd integers in their respective cases and (m−1)/2≤(m+1)/2<m for m>1. Therefore iterating the procedure will eventually terminate in one.
For the construction it is most convenient to set n=2l+1 and label the tuple (a−l,a−l+1,…,al). For m=1 we have the expensive tuple (1,1,1). For m>1 we will define operators T± on expensive tuples with the condition a−l=al=1 that give rise to a new expensive tuple (b−l′,…,bl′) with b−l′=bl′=1 and b0=T±a0. It is then clear that Tϵr∘⋯∘Tϵ1((1,1,1)) is an expensive tuple containing m.
We define T± as follows: set l′=l+1 and b−l′=bl′=1 and bi=T±(−1)i(ai) for i=−l,…,l. Here we identify + with +1 and − with −1. We are left to prove that the new tuple is indeed expensive. If ±(−1)l=−1, then ∏(bi+bi+1)=4⋅22l∏(ai+ai+1), and if ±(−1)l=+1, then ∏(bi+bi+1)=4⋅22l+2∏(ai+ai+1). In both cases we end up with an expensive tuple again.