function Gen(n: integer): sequence of integer; var j,k: real; begin var i := 1; j := n; while i