the rules are simple if the number is odd then we multiply it by 3 and add 1 if its even then we divide by 2