INCREASE Y INCREASE Y INCREASE Y INCREASE Y INCREASE Y #INCREASE X #INCREASE X #INCREASE X #INCREASE X #INCREASE X #INCREASE X #INCREASE X INCREASE B REPEAT Y TIMES ( REPEAT Y TIMES ( REPEAT Y TIMES ( INCREASE O ) ) ) PRINT X REPEAT O TIMES ( REPEAT B TIMES ( CLEAR P CLEAR Q INCREASE Q REPEAT X TIMES ( REPEAT P TIMES ( CLEAR Q ) CLEAR P INCREASE P ) REPEAT Q TIMES ( CLEAR P ) ) REPEAT P TIMES ( CLEAR N CLEAR B CLEAR C CLEAR A REPEAT X TIMES ( INCREASE B REPEAT A TIMES ( CLEAR A CLEAR B INCREASE N ) REPEAT B TIMES ( INCREASE A ) ) CLEAR B INCREASE B REPEAT A TIMES ( CLEAR B CLEAR Y INCREASE N REPEAT N TIMES ( INCREASE X ) REPEAT X TIMES ( INCREASE Y ) REPEAT X TIMES ( INCREASE Y ) PRINT Y ) REPEAT B TIMES ( CLEAR X REPEAT N TIMES ( INCREASE X ) #INCREASE X ) #3x+1 PRINT X ) )