# syntax: GAWK -f SUPERPERMUTATION_MINIMISATION.AWK # converted from C BEGIN { arr[0] # prevents fatal: attempt to use scalar 'arr' as an array limit = 11 for (n=0; n<=limit; n++) { leng = super_perm(n) printf("%2d %d ",n,leng) # for (i=0; i