login
A321956
Number of permutations of 3 indistinguishable copies of 1,...,n such that the first and second copies of j are adjacent and there are exactly j-1 numbers between the second and the third copy of j.
2
1, 1, 0, 2, 4, 0, 16, 40, 0, 456, 1759, 0, 34636, 175198, 0, 5494621, 34043062, 0
OFFSET
0,4
LINKS
Eric Weisstein's World of Mathematics, Langford's Problem
Wikipedia, Dancing Links
Wikipedia, Langford pairing
FORMULA
a(n) = 0 for n == 2 (mod 3).
EXAMPLE
a(3) = 2: 111332232, 332232111.
a(4) = 4: 111334432242, 332232441114, 334432242111, 441114332232.
CROSSREFS
Sequence in context: A059057 A196225 A127511 * A173315 A205975 A231915
KEYWORD
nonn,more
AUTHOR
Alois P. Heinz, Nov 22 2018
STATUS
approved