read `ResPerms.txt`: K1:=30: K2:=40: print(`The first`, K1, `terms of the sequence enumerating permutations of length n such that pi[i+5]-pi[i] is never 5 are`): print(``): gu:=[seq(Urs(5,5,i),i=1..K1)]: print(``): for i from K1+1 to K2 do gu:=[op(gu),Urs(5,5,i)]: print(`The first`, i, `terms of the sequence enumerating permutations of length n such that pi[i+5]-pi[i] is never 5 are`): print(``): print(gu): print(``): od: print(`---------------------------------`): print(``): print(`This took`, time(), `seconds. `): quit: