It is clear that the sequence {ai} will be a concatenation of sequences of the form {vi}i=1N0,{wi⋅p1}i=1N1,{xi⋅p1p2}i=1N2,{yi⋅p1p2p3}i=1N3, and {zi⋅p1p2p3p4}i=1N4, for some permutation (p1,p2,p3,p4) of (2,3,5,7) and some sequences of integers {vi}⋅{wi}⋅{xi}⋅{yi}⋅{zi}, each coprime with 210. In {vi}i=1N0, there are a maximum of ϕ(210) distinct terms mod210. In {wi⋅p1}i=1N1, there are a maximum of ϕ(p1210) distinct terms mod 210. In {xi⋅p1p2}i=1N2, there are a maximum of ϕ(p1p2210) distinct terms mod210. In {yi⋅p1p2p3}i=1N3, there are a maximum of ϕ(p1p2p3210) distinct terms mod210. In {zi⋅p1p2p3p4}i=1N4, there can only be one distinct term mod210. Therefore we wish to maximize ϕ(210)+ϕ(p1210)+ϕ(p1p2210)+ϕ(p1p2p3210)+1 over all permutations (p1,p2,p3,p4) of (2,3,5,7). It's easy to see that the maximum occurs when we take p1=2,p2=3,p3=5,p4=7 for an answer of ϕ(210)+ϕ(105)+ϕ(35)+ϕ(7)+1=127. This upper bound is clearly attainable by having the vi's cycle through the ϕ(210) integers less than 210 coprime to 210, the wi's cycle through the ϕ(p1210) integers less than p1210 coprime to p1210, etc.