List all permutations of

  1. \(\{1, 2, 3\}\)
  1. \(123\)
  2. \(132\)
  3. \(213\)
  4. \(231\)
  5. \(312\)
  6. \(321\)
  1. \(\{1, 2, 3, 4\}\)
  1. \(1234\)
  2. \(1243\)
  3. \(1324\)
  4. \(1342\)
  5. \(1423\)
  6. \(1432\)
  7. \(2134\)
  8. \(2143\)
  9. \(2314\)
  10. \(2341\)
  11. \(2413\)
  12. \(2431\)
  13. \(3124\)
  14. \(3142\)
  15. \(3214\)
  16. \(3241\)
  17. \(3412\)
  18. \(3421\)
  19. \(4123\)
  20. \(4132\)
  21. \(4213\)
  22. \(4231\)
  23. \(4312\)
  24. \(4321\)