A125712 Number of permutations of 1..2n in which the sum of every two adjacent elements is a prime number, including the sum of first and last elements.
2, 8, 12, 32, 960, 12288, 40320, 1296384, 13862592, 126186000, 4703871392, 153495217056, 4312093043076, 225409456295800, 7671288697001460
Offset: 1
Examples
a(2) = 8 because we can generate 8 different permutations: 1 2 3 4 1 4 3 2 2 1 4 3 2 3 4 1 3 2 1 4 3 4 1 2 4 1 2 3 4 3 2 1 in which the sum of every two adjacent elements is a prime number, including the sum of first and last elements.
Extensions
a(8) and a(9) from R. J. Mathar, Nov 02 2007
a(10)-a(15) (using A051252) from Alois P. Heinz, Nov 03 2024
Comments