Skip to main content
2 of 2
added 66 characters in body
Gábor Fekete
  • 3.5k
  • 1
  • 9
  • 19

Python 3.8 (pre-release), 69 62 bytes

lambda n:[i-~math.factorial(n)for i in range(1,n)]
import math

Try it online!

Edit: changed math.prod to math.factorial, thanks to @l4m2

Gábor Fekete
  • 3.5k
  • 1
  • 9
  • 19