First time here? Check out the FAQ!
answered 2017-04-04 10:52:09 +0100
Like that
sage: n=4 sage: [sigma for sigma in Permutations(n) if all(sigma(i)>=i-1 for i in range(1,n+1))]