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 ) ) ) REPEAT Y TIMES ( REPEAT Y TIMES ( INCREASE O ) ) REPEAT Y TIMES ( REPEAT Y TIMES ( INCREASE O ) ) REPEAT Y TIMES ( INCREASE O ) PRINT X REPEAT O TIMES ( REPEAT B TIMES ( CLEAR P CLEAR Q REPEAT X TIMES ( REPEAT P TIMES ( CLEAR Q INCREASE Q ) CLEAR P INCREASE P ) ) REPEAT Q TIMES ( CLEAR N CLEAR M CLEAR B CLEAR C CLEAR A INCREASE B REPEAT X TIMES ( CLEAR C REPEAT A TIMES ( INCREASE C ) REPEAT B TIMES ( INCREASE N CLEAR B INCREASE A ) REPEAT C TIMES ( CLEAR A INCREASE B INCREASE M ) ) REPEAT B TIMES ( CLEAR U INCREASE U REPEAT M TIMES ( CLEAR U ) CLEAR T INCREASE T REPEAT U TIMES ( CLEAR T ) REPEAT T TIMES ( PRINT M CLEAR N CLEAR K CLEAR B CLEAR C CLEAR U INCREASE B REPEAT M TIMES ( CLEAR C REPEAT U TIMES ( INCREASE C ) REPEAT B TIMES ( INCREASE N CLEAR B INCREASE U ) REPEAT C TIMES ( CLEAR U INCREASE B INCREASE K ) ) REPEAT U TIMES ( CLEAR Z REPEAT K TIMES ( CLEAR Z INCREASE Z ) REPEAT Z TIMES ( CLEAR X CLEAR Y REPEAT M TIMES ( INCREASE Y ) REPEAT M TIMES ( INCREASE Y ) REPEAT M TIMES ( INCREASE Y ) INCREASE Y PRINT Y INCREASE X REPEAT M TIMES ( INCREASE X ) REPEAT K TIMES ( INCREASE X ) PRINT X ) ) REPEAT B TIMES ( CLEAR X REPEAT K TIMES ( INCREASE X ) #PRINT X ) CLEAR W INCREASE W REPEAT Z TIMES ( CLEAR W ) REPEAT W TIMES ( INCREASE B CLEAR X REPEAT M TIMES ( INCREASE X ) ) ) ) #3x+1 REPEAT A TIMES ( CLEAR Y REPEAT X TIMES ( INCREASE Y ) REPEAT X TIMES ( INCREASE Y ) REPEAT X TIMES ( INCREASE Y ) INCREASE Y PRINT Y INCREASE X REPEAT M TIMES ( INCREASE X ) PRINT X ) ) )