3n+1 Problem Php solution