A=3n+1 solving for n