Using integer math and in bash:
for i in seq 0 1 20
; do echo "($i % 7) - ($i % 7)/4 * (2*(($i % 7) - 3) -1 ) % (($i % 7) + 1)" | bc; done
Using integer math and in bash:
for i in seq 0 1 20
; do echo "($i % 7) - ($i % 7)/4 * (2*(($i % 7) - 3) -1 ) % (($i % 7) + 1)" | bc; done