Every ordering of N students in a line, then in a circle
Print every way N students can stand in a line. Follow-up: they stand in a circle instead, where rotations of the same arrangement count once.
No answer yet. Write the first one; the best answer gets endorsed.
