Answer to Question 09B-1

  m = (n % 2 == 1) ? 3*n + 1 : n/2;