# Total commands used 937 # Conversion to base 2 uses 232 commands # Conversion to base 10 uses 88 commands # X /= 2 uses 54 commands # X = 3X + 1 uses 383 commands # w -> 180 uses 180 commands PRINT X REPEAT X TIMES ( INCREASE T REPEAT S TIMES ( CLEAR S CLEAR T INCREASE U ) REPEAT T TIMES ( INCREASE S CLEAR T ) ) REPEAT S TIMES ( INCREASE A ) CLEAR S CLEAR X REPEAT U TIMES ( INCREASE T REPEAT S TIMES ( CLEAR S CLEAR T INCREASE X ) REPEAT T TIMES ( INCREASE S CLEAR T ) ) REPEAT S TIMES ( INCREASE B ) CLEAR S CLEAR U REPEAT X TIMES ( INCREASE T REPEAT S TIMES ( CLEAR S CLEAR T INCREASE U ) REPEAT T TIMES ( INCREASE S CLEAR T ) ) REPEAT S TIMES ( INCREASE C ) CLEAR S CLEAR X REPEAT U TIMES ( INCREASE T REPEAT S TIMES ( CLEAR S CLEAR T INCREASE X ) REPEAT T TIMES ( INCREASE S CLEAR T ) ) REPEAT S TIMES ( INCREASE D ) CLEAR S CLEAR U REPEAT X TIMES ( INCREASE T REPEAT S TIMES ( CLEAR S CLEAR T INCREASE U ) REPEAT T TIMES ( INCREASE S CLEAR T ) ) REPEAT S TIMES ( INCREASE E ) CLEAR S CLEAR X REPEAT U TIMES ( INCREASE T REPEAT S TIMES ( CLEAR S CLEAR T INCREASE X ) REPEAT T TIMES ( INCREASE S CLEAR T ) ) REPEAT S TIMES ( INCREASE F ) CLEAR S CLEAR U REPEAT X TIMES ( INCREASE T REPEAT S TIMES ( CLEAR S CLEAR T INCREASE U ) REPEAT T TIMES ( INCREASE S CLEAR T ) ) REPEAT S TIMES ( INCREASE G ) CLEAR S CLEAR X REPEAT U TIMES ( INCREASE T REPEAT S TIMES ( CLEAR S CLEAR T INCREASE X ) REPEAT T TIMES ( INCREASE S CLEAR T ) ) REPEAT S TIMES ( INCREASE H ) CLEAR S CLEAR U REPEAT X TIMES ( INCREASE T REPEAT S TIMES ( CLEAR S CLEAR T INCREASE U ) REPEAT T TIMES ( INCREASE S CLEAR T ) ) REPEAT S TIMES ( INCREASE I ) CLEAR S CLEAR X REPEAT U TIMES ( INCREASE T REPEAT S TIMES ( CLEAR S CLEAR T INCREASE X ) REPEAT T TIMES ( INCREASE S CLEAR T ) ) REPEAT S TIMES ( INCREASE J ) CLEAR S CLEAR U REPEAT X TIMES ( INCREASE T REPEAT S TIMES ( CLEAR S CLEAR T INCREASE U ) REPEAT T TIMES ( INCREASE S CLEAR T ) ) REPEAT S TIMES ( INCREASE K ) CLEAR S CLEAR X REPEAT U TIMES ( INCREASE T REPEAT S TIMES ( CLEAR S CLEAR T INCREASE X ) REPEAT T TIMES ( INCREASE S CLEAR T ) ) REPEAT S TIMES ( INCREASE L ) CLEAR S CLEAR U REPEAT X TIMES ( INCREASE T REPEAT S TIMES ( CLEAR S CLEAR T INCREASE U ) REPEAT T TIMES ( INCREASE S CLEAR T ) ) REPEAT S TIMES ( INCREASE M ) CLEAR S CLEAR X REPEAT U TIMES ( INCREASE T REPEAT S TIMES ( CLEAR S CLEAR T INCREASE X ) REPEAT T TIMES ( INCREASE S CLEAR T ) ) REPEAT S TIMES ( INCREASE N ) CLEAR S CLEAR U REPEAT X TIMES ( INCREASE T REPEAT S TIMES ( CLEAR S CLEAR T INCREASE U ) REPEAT T TIMES ( INCREASE S CLEAR T ) ) REPEAT S TIMES ( INCREASE O ) CLEAR S CLEAR X REPEAT U TIMES ( INCREASE T REPEAT S TIMES ( CLEAR S CLEAR T INCREASE X ) REPEAT T TIMES ( INCREASE S CLEAR T ) ) REPEAT S TIMES ( INCREASE P ) CLEAR S CLEAR U REPEAT X TIMES ( INCREASE T REPEAT S TIMES ( CLEAR S CLEAR T INCREASE U ) REPEAT T TIMES ( INCREASE S CLEAR T ) ) REPEAT S TIMES ( INCREASE Q ) CLEAR S CLEAR X REPEAT U TIMES ( INCREASE T REPEAT S TIMES ( CLEAR S CLEAR T INCREASE X ) REPEAT T TIMES ( INCREASE S CLEAR T ) ) REPEAT S TIMES ( INCREASE R ) INCREASE S REPEAT B TIMES ( CLEAR S ) REPEAT C TIMES ( CLEAR S ) REPEAT D TIMES ( CLEAR S ) REPEAT E TIMES ( CLEAR S ) REPEAT F TIMES ( CLEAR S ) REPEAT G TIMES ( CLEAR S ) REPEAT H TIMES ( CLEAR S ) REPEAT I TIMES ( CLEAR S ) REPEAT J TIMES ( CLEAR S ) REPEAT K TIMES ( CLEAR S ) REPEAT L TIMES ( CLEAR S ) REPEAT M TIMES ( CLEAR S ) REPEAT N TIMES ( CLEAR S ) REPEAT O TIMES ( CLEAR S ) REPEAT P TIMES ( CLEAR S ) REPEAT Q TIMES ( CLEAR S ) REPEAT R TIMES ( CLEAR S ) INCREASE Y REPEAT S TIMES ( CLEAR Y ) CLEAR S INCREASE S INCREASE S INCREASE S INCREASE S CLEAR T REPEAT S TIMES ( INCREASE T ) INCREASE T CLEAR U REPEAT S TIMES ( INCREASE U INCREASE U ) INCREASE U REPEAT S TIMES ( REPEAT T TIMES ( REPEAT U TIMES ( INCREASE W ) ) ) REPEAT W TIMES ( REPEAT Y TIMES ( INCREASE Z REPEAT A TIMES ( CLEAR Z CLEAR S CLEAR T CLEAR U INCREASE U REPEAT A TIMES ( CLEAR U INCREASE S ) REPEAT U TIMES ( CLEAR U INCREASE T ) REPEAT A TIMES ( INCREASE U ) REPEAT B TIMES ( INCREASE U ) REPEAT S TIMES ( INCREASE U ) CLEAR A REPEAT T TIMES ( INCREASE A ) CLEAR S CLEAR T CLEAR V REPEAT U TIMES ( INCREASE V REPEAT T TIMES ( CLEAR T CLEAR V INCREASE S ) REPEAT V TIMES ( INCREASE T CLEAR V ) ) CLEAR U REPEAT B TIMES ( INCREASE U ) REPEAT C TIMES ( INCREASE U ) REPEAT S TIMES ( INCREASE U ) CLEAR B REPEAT T TIMES ( INCREASE B ) CLEAR S CLEAR T CLEAR V REPEAT U TIMES ( INCREASE V REPEAT T TIMES ( CLEAR T CLEAR V INCREASE S ) REPEAT V TIMES ( INCREASE T CLEAR V ) ) CLEAR U REPEAT C TIMES ( INCREASE U ) REPEAT D TIMES ( INCREASE U ) REPEAT S TIMES ( INCREASE U ) CLEAR C REPEAT T TIMES ( INCREASE C ) CLEAR S CLEAR T CLEAR V REPEAT U TIMES ( INCREASE V REPEAT T TIMES ( CLEAR T CLEAR V INCREASE S ) REPEAT V TIMES ( INCREASE T CLEAR V ) ) CLEAR U REPEAT D TIMES ( INCREASE U ) REPEAT E TIMES ( INCREASE U ) REPEAT S TIMES ( INCREASE U ) CLEAR D REPEAT T TIMES ( INCREASE D ) CLEAR S CLEAR T CLEAR V REPEAT U TIMES ( INCREASE V REPEAT T TIMES ( CLEAR T CLEAR V INCREASE S ) REPEAT V TIMES ( INCREASE T CLEAR V ) ) CLEAR U REPEAT E TIMES ( INCREASE U ) REPEAT F TIMES ( INCREASE U ) REPEAT S TIMES ( INCREASE U ) CLEAR E REPEAT T TIMES ( INCREASE E ) CLEAR S CLEAR T CLEAR V REPEAT U TIMES ( INCREASE V REPEAT T TIMES ( CLEAR T CLEAR V INCREASE S ) REPEAT V TIMES ( INCREASE T CLEAR V ) ) CLEAR U REPEAT F TIMES ( INCREASE U ) REPEAT G TIMES ( INCREASE U ) REPEAT S TIMES ( INCREASE U ) CLEAR F REPEAT T TIMES ( INCREASE F ) CLEAR S CLEAR T CLEAR V REPEAT U TIMES ( INCREASE V REPEAT T TIMES ( CLEAR T CLEAR V INCREASE S ) REPEAT V TIMES ( INCREASE T CLEAR V ) ) CLEAR U REPEAT G TIMES ( INCREASE U ) REPEAT H TIMES ( INCREASE U ) REPEAT S TIMES ( INCREASE U ) CLEAR G REPEAT T TIMES ( INCREASE G ) CLEAR S CLEAR T CLEAR V REPEAT U TIMES ( INCREASE V REPEAT T TIMES ( CLEAR T CLEAR V INCREASE S ) REPEAT V TIMES ( INCREASE T CLEAR V ) ) CLEAR U REPEAT H TIMES ( INCREASE U ) REPEAT I TIMES ( INCREASE U ) REPEAT S TIMES ( INCREASE U ) CLEAR H REPEAT T TIMES ( INCREASE H ) CLEAR S CLEAR T CLEAR V REPEAT U TIMES ( INCREASE V REPEAT T TIMES ( CLEAR T CLEAR V INCREASE S ) REPEAT V TIMES ( INCREASE T CLEAR V ) ) CLEAR U REPEAT I TIMES ( INCREASE U ) REPEAT J TIMES ( INCREASE U ) REPEAT S TIMES ( INCREASE U ) CLEAR I REPEAT T TIMES ( INCREASE I ) CLEAR S CLEAR T CLEAR V REPEAT U TIMES ( INCREASE V REPEAT T TIMES ( CLEAR T CLEAR V INCREASE S ) REPEAT V TIMES ( INCREASE T CLEAR V ) ) CLEAR U REPEAT J TIMES ( INCREASE U ) REPEAT K TIMES ( INCREASE U ) REPEAT S TIMES ( INCREASE U ) CLEAR J REPEAT T TIMES ( INCREASE J ) CLEAR S CLEAR T CLEAR V REPEAT U TIMES ( INCREASE V REPEAT T TIMES ( CLEAR T CLEAR V INCREASE S ) REPEAT V TIMES ( INCREASE T CLEAR V ) ) CLEAR U REPEAT K TIMES ( INCREASE U ) REPEAT L TIMES ( INCREASE U ) REPEAT S TIMES ( INCREASE U ) CLEAR K REPEAT T TIMES ( INCREASE K ) CLEAR S CLEAR T CLEAR V REPEAT U TIMES ( INCREASE V REPEAT T TIMES ( CLEAR T CLEAR V INCREASE S ) REPEAT V TIMES ( INCREASE T CLEAR V ) ) CLEAR U REPEAT L TIMES ( INCREASE U ) REPEAT M TIMES ( INCREASE U ) REPEAT S TIMES ( INCREASE U ) CLEAR L REPEAT T TIMES ( INCREASE L ) CLEAR S CLEAR T CLEAR V REPEAT U TIMES ( INCREASE V REPEAT T TIMES ( CLEAR T CLEAR V INCREASE S ) REPEAT V TIMES ( INCREASE T CLEAR V ) ) CLEAR U REPEAT M TIMES ( INCREASE U ) REPEAT N TIMES ( INCREASE U ) REPEAT S TIMES ( INCREASE U ) CLEAR M REPEAT T TIMES ( INCREASE M ) CLEAR S CLEAR T CLEAR V REPEAT U TIMES ( INCREASE V REPEAT T TIMES ( CLEAR T CLEAR V INCREASE S ) REPEAT V TIMES ( INCREASE T CLEAR V ) ) CLEAR U REPEAT N TIMES ( INCREASE U ) REPEAT O TIMES ( INCREASE U ) REPEAT S TIMES ( INCREASE U ) CLEAR N REPEAT T TIMES ( INCREASE N ) CLEAR S CLEAR T CLEAR V REPEAT U TIMES ( INCREASE V REPEAT T TIMES ( CLEAR T CLEAR V INCREASE S ) REPEAT V TIMES ( INCREASE T CLEAR V ) ) CLEAR U REPEAT O TIMES ( INCREASE U ) REPEAT P TIMES ( INCREASE U ) REPEAT S TIMES ( INCREASE U ) CLEAR O REPEAT T TIMES ( INCREASE O ) CLEAR S CLEAR T CLEAR V REPEAT U TIMES ( INCREASE V REPEAT T TIMES ( CLEAR T CLEAR V INCREASE S ) REPEAT V TIMES ( INCREASE T CLEAR V ) ) CLEAR U REPEAT P TIMES ( INCREASE U ) REPEAT Q TIMES ( INCREASE U ) REPEAT S TIMES ( INCREASE U ) CLEAR P REPEAT T TIMES ( INCREASE P ) CLEAR S CLEAR T CLEAR V REPEAT U TIMES ( INCREASE V REPEAT T TIMES ( CLEAR T CLEAR V INCREASE S ) REPEAT V TIMES ( INCREASE T CLEAR V ) ) CLEAR U REPEAT Q TIMES ( INCREASE U ) REPEAT R TIMES ( INCREASE U ) REPEAT S TIMES ( INCREASE U ) CLEAR Q REPEAT T TIMES ( INCREASE Q ) CLEAR S CLEAR T CLEAR V REPEAT U TIMES ( INCREASE V REPEAT T TIMES ( CLEAR T CLEAR V INCREASE S ) REPEAT V TIMES ( INCREASE T CLEAR V ) ) CLEAR R REPEAT T TIMES ( INCREASE R ) ) REPEAT Z TIMES ( CLEAR Z CLEAR A REPEAT B TIMES ( INCREASE A ) CLEAR B REPEAT C TIMES ( INCREASE B ) CLEAR C REPEAT D TIMES ( INCREASE C ) CLEAR D REPEAT E TIMES ( INCREASE D ) CLEAR E REPEAT F TIMES ( INCREASE E ) CLEAR F REPEAT G TIMES ( INCREASE F ) CLEAR G REPEAT H TIMES ( INCREASE G ) CLEAR H REPEAT I TIMES ( INCREASE H ) CLEAR I REPEAT J TIMES ( INCREASE I ) CLEAR J REPEAT K TIMES ( INCREASE J ) CLEAR K REPEAT L TIMES ( INCREASE K ) CLEAR L REPEAT M TIMES ( INCREASE L ) CLEAR M REPEAT N TIMES ( INCREASE M ) CLEAR N REPEAT O TIMES ( INCREASE N ) CLEAR O REPEAT P TIMES ( INCREASE O ) CLEAR P REPEAT Q TIMES ( INCREASE P ) CLEAR Q REPEAT R TIMES ( INCREASE Q ) CLEAR R ) CLEAR X REPEAT A TIMES ( INCREASE X ) CLEAR S INCREASE S INCREASE S REPEAT B TIMES ( REPEAT S TIMES ( INCREASE X ) ) REPEAT S TIMES ( INCREASE S ) REPEAT C TIMES ( REPEAT S TIMES ( INCREASE X ) ) REPEAT S TIMES ( INCREASE S ) REPEAT D TIMES ( REPEAT S TIMES ( INCREASE X ) ) REPEAT S TIMES ( INCREASE S ) REPEAT E TIMES ( REPEAT S TIMES ( INCREASE X ) ) REPEAT S TIMES ( INCREASE S ) REPEAT F TIMES ( REPEAT S TIMES ( INCREASE X ) ) REPEAT S TIMES ( INCREASE S ) REPEAT G TIMES ( REPEAT S TIMES ( INCREASE X ) ) REPEAT S TIMES ( INCREASE S ) REPEAT H TIMES ( REPEAT S TIMES ( INCREASE X ) ) REPEAT S TIMES ( INCREASE S ) REPEAT I TIMES ( REPEAT S TIMES ( INCREASE X ) ) REPEAT S TIMES ( INCREASE S ) REPEAT J TIMES ( REPEAT S TIMES ( INCREASE X ) ) REPEAT S TIMES ( INCREASE S ) REPEAT K TIMES ( REPEAT S TIMES ( INCREASE X ) ) REPEAT S TIMES ( INCREASE S ) REPEAT L TIMES ( REPEAT S TIMES ( INCREASE X ) ) REPEAT S TIMES ( INCREASE S ) REPEAT M TIMES ( REPEAT S TIMES ( INCREASE X ) ) REPEAT S TIMES ( INCREASE S ) REPEAT N TIMES ( REPEAT S TIMES ( INCREASE X ) ) REPEAT S TIMES ( INCREASE S ) REPEAT O TIMES ( REPEAT S TIMES ( INCREASE X ) ) REPEAT S TIMES ( INCREASE S ) REPEAT P TIMES ( REPEAT S TIMES ( INCREASE X ) ) REPEAT S TIMES ( INCREASE S ) REPEAT Q TIMES ( REPEAT S TIMES ( INCREASE X ) ) REPEAT S TIMES ( INCREASE S ) REPEAT R TIMES ( REPEAT S TIMES ( INCREASE X ) ) PRINT X CLEAR S INCREASE S REPEAT B TIMES ( CLEAR S ) REPEAT C TIMES ( CLEAR S ) REPEAT D TIMES ( CLEAR S ) REPEAT E TIMES ( CLEAR S ) REPEAT F TIMES ( CLEAR S ) REPEAT G TIMES ( CLEAR S ) REPEAT H TIMES ( CLEAR S ) REPEAT I TIMES ( CLEAR S ) REPEAT J TIMES ( CLEAR S ) REPEAT K TIMES ( CLEAR S ) REPEAT L TIMES ( CLEAR S ) REPEAT M TIMES ( CLEAR S ) REPEAT N TIMES ( CLEAR S ) REPEAT O TIMES ( CLEAR S ) REPEAT P TIMES ( CLEAR S ) REPEAT Q TIMES ( CLEAR S ) REPEAT R TIMES ( CLEAR S ) REPEAT S TIMES ( CLEAR Y ) ) )