OFFSET
0,6
COMMENTS
a(n) = 0 for n == 1 (mod 3).
LINKS
Eric Weisstein's World of Mathematics, Langford's Problem
Wikipedia, Dancing Links
Wikipedia, Langford pairing
EXAMPLE
a(0) = 1: the empty permutation.
a(2) = 1: 221121.
a(3) = 1: 223321131.
a(5) = 3: 223325534411514, 225523344531141, 552244253341131.
a(6) = 6: 221121665544336543, 225523366534411614, 225526633544361141, 446611415563322532, 552266253344631141, 665544336543221121.
CROSSREFS
KEYWORD
nonn,more
AUTHOR
Alois P. Heinz, Nov 25 2015
EXTENSIONS
a(20)-a(22) from Martin Fuller, Jan 25 2026
STATUS
approved
