What is the next number in the following series :
5, 20, 24, 6, 2, 8, ?
Agreed answer is 12, Recursive formula for all n> 1: If Mod(n,4)=0 then t(n)=t(n-1)/4; If Mod(n-1,4)=0 then t(n)=t(n-1)-4; If Mod(n-2,4)=0 then t(n)=t(n-1)*4; If Mod(n-3,4)=0 then t(n)=t(n-1)+4.