INCREASE W
INCREASE W
INCREASE W
INCREASE W
INCREASE W
INCREASE W
INCREASE W
INCREASE W
INCREASE W
INCREASE W
INCREASE W
INCREASE W
INCREASE W
INCREASE W
INCREASE W
INCREASE W
INCREASE W
INCREASE W
INCREASE W
INCREASE W
INCREASE W
INCREASE W
INCREASE W
INCREASE W
INCREASE W
INCREASE W
INCREASE W
INCREASE W
INCREASE W
INCREASE W
INCREASE W
INCREASE W
INCREASE W
INCREASE W
INCREASE W
INCREASE W
INCREASE W
INCREASE W
INCREASE W
INCREASE W
INCREASE W
INCREASE W
INCREASE W
INCREASE W
INCREASE W
INCREASE W
INCREASE W
INCREASE W
INCREASE W
INCREASE W
INCREASE W
INCREASE W
INCREASE W
INCREASE W
INCREASE W
INCREASE W
INCREASE W
INCREASE V
INCREASE V
INCREASE V
INCREASE V
INCREASE O
INCREASE O
INCREASE O
INCREASE L
PRINT X
REPEAT W TIMES ( REPEAT L TIMES (
CLEAR D
CLEAR G
CLEAR H
CLEAR I
CLEAR E
REPEAT X TIMES (
REPEAT D TIMES (
INCREASE F
)
INCREASE D
REPEAT H TIMES (
INCREASE I
INCREASE E
CLEAR D
CLEAR H
)
REPEAT G TIMES (
INCREASE H
CLEAR D
CLEAR G
)
REPEAT F TIMES (
INCREASE E
INCREASE G
CLEAR D
CLEAR F
)
)
# D, F, G, H, E
#0. 0, 0, 0, 0, 0
#1. 1, 0, 0, 0, 0
#2. 0, 0, 1, 0, 1
#3. 0, 0, 0, 1, 1
#4. 0, 0, 0, 0, 2
#5. 1, 0, 0, 0, 2
#6. 0, 0, 1, 0, 3
#X=0 mod 4 -> 4x, 2x, 1x 0
#X=1 mod 4 -> 4x+1, 12x+4, 6x+2, 3x+1 17
#X=2 mod 4 -> 4x+2, 2x+1, 6x+4, 3x+2 3
#X=3 mod 4 -> 4x+3, 12x+10, 6x+5, 18x+16, 9x+8 19
CLEAR A
INCREASE A
#1 mod 4:
REPEAT D TIMES (
CLEAR L
REPEAT I TIMES (
CLEAR L
INCREASE L
)
#X=4x+1, E=2x, I=x
REPEAT V TIMES ( REPEAT E TIMES ( INCREASE X ) )
#X+=4*2*x->X=12x+1
INCREASE X
INCREASE X
INCREASE X
#12x+4
REPEAT L TIMES ( PRINT X )
CLEAR X
REPEAT O TIMES ( REPEAT I TIMES ( INCREASE X ) )
REPEAT O TIMES ( REPEAT I TIMES ( INCREASE X ) )
INCREASE X
INCREASE X
#6x+2
REPEAT L TIMES ( PRINT X )
CLEAR X
REPEAT O TIMES ( REPEAT I TIMES ( INCREASE X ) )
INCREASE X
#3x+1
REPEAT L TIMES ( PRINT X )
CLEAR A
)
#2 mod 4
REPEAT G TIMES (
CLEAR L
REPEAT I TIMES (
CLEAR L
INCREASE L
)
#X=4x+2, E=2x+1, I=x
PRINT E
REPEAT E TIMES ( INCREASE X )
INCREASE X
REPEAT L TIMES ( PRINT X )
CLEAR X
REPEAT I TIMES ( INCREASE X )
REPEAT E TIMES ( INCREASE X )
INCREASE X
REPEAT L TIMES ( PRINT X )
CLEAR A
)
# 3 mod 4
REPEAT H TIMES (
#X=4x+3, E=2x+1, I=x
#X=3 mod 4 -> 4x+3, 12x+10, 6x+5, 18x+16, 9x+8 19
CLEAR Y
REPEAT O TIMES ( REPEAT X TIMES ( INCREASE Y ) )
INCREASE Y
PRINT Y
REPEAT E TIMES ( INCREASE X )
INCREASE X
PRINT X
REPEAT X TIMES ( INCREASE Y )
INCREASE Y
PRINT Y
REPEAT E TIMES ( INCREASE X )
REPEAT I TIMES ( INCREASE X )
INCREASE X
INCREASE X
PRINT X
CLEAR A
)
REPEAT A TIMES (
REPEAT L TIMES ( PRINT E )
REPEAT L TIMES ( PRINT I )
CLEAR X
REPEAT I TIMES ( INCREASE X )
)
)
)