A174076 Number of permutations of length n with no consecutive triples i,i+2,i+4 or i,i-2,i-4.
1, 1, 2, 6, 24, 108, 632, 4408, 35336, 319056, 3205824, 35451984, 427683560, 5588310904, 78615281768, 1184587864512, 19033796498496, 324852522308160, 5868833343451592, 111889157407344424
Offset: 0
Examples
For n=5 there are 5!-a(5)=12 permutations with i,i+2,i+4 or i,i-2,i-4 triples. An examples of one is (4,2,0,1,3).
Extensions
a(0)-a(4) and a(10)-a(19) from Alois P. Heinz, Apr 14 2021
Comments