REPEAT UNTIL X = 1 ( PRINT X IF EVEN X ( SET X TO X / 2 ) ELSE ( SET X TO 3 * X INCREASE X ) ) PRINT X