3n+1 Php Implementation