A191798 Number of essentially different ways of arranging numbers 1 through 2*n around a circle so that the sums of each pair of adjacent numbers are neither all prime nor all composite.
0, 2, 58, 2474, 180480, 19895936, 3105348340, 652948189204, 177662757810868, 60772232945639507, 25533219938917963508, 12921764841857675170314, 7754002391777621430686566
Offset: 1
Examples
a(2) = 2 since the arrangements 1,3,2,4 and 1,3,4,2 both satisfy the condition.
Extensions
a(7) corrected, a(8)-a(13) added by Max Alekseyev, Aug 19 2013
Comments