A338849 Triangle read by rows: T(n,k) is the number of permutations of k elements from [1..n] in a circle where adjacent values cannot be consecutive modulo n, rotations are distinct.
1, 1, 1, 1, 2, 0, 1, 3, 0, 0, 1, 4, 4, 0, 0, 1, 5, 10, 0, 0, 10, 1, 6, 18, 12, 24, 60, 36, 1, 7, 28, 42, 112, 280, 420, 322, 1, 8, 40, 96, 336, 1040, 2400, 3696, 2832, 1, 9, 54, 180, 792, 3060, 9540, 22428, 35280, 27954, 1, 10, 70, 300, 1600, 7540, 29880, 95340, 229280, 369540, 299260
Offset: 0
Examples
n\k 0 1 2 3 4 5 6 7 8 0 1 1 1 1 2 1 2 0 3 1 3 0 0 4 1 4 4 0 0 5 1 5 10 0 0 10 6 1 6 18 12 24 60 36 7 1 7 28 42 112 280 420 322 8 1 8 40 96 336 1040 2400 3696 2832
Comments