given the general term sequence 3n+1​