For a string of letters of length k, say abc...def, let f(k) be the string of length k-1 consisting of the adjacent pairs ab, bc, cd, ..., de, ef. Given n, let U be the string of length 2n consisting of n 1's followed by n 2's: 11...122...2. Then a(n) is the number of the C(2n,n) permutations V of U such that f(U) and f(V) agree in exactly one place.

A098813

For a string of letters of length k, say abc...def, let f(k) be the string of length k-1 consisting of the adjacent pairs ab, bc, cd, ..., de, ef. Given n, let U be the string of length 2n consisting of n 1's followed by n 2's: 11...122...2. Then a(n) is the number of the C(2n,n) permutations V of U such that f(U) and f(V) agree in exactly one place.

Terms

    a(0) =1a(1) =1a(2) =4a(3) =19a(4) =57a(5) =178a(6) =543a(7) =1591a(8) =4598a(9) =13117a(10) =36999a(11) =103514a(12) =287653a(13) =794847a(14) =2186054a(15) =5988339a(16) =16347999a(17) =44497490a(18) =120804023a(19) =327217525a(20) =884531586a(21) =2386747391a(22) =6429784509a(23) =17296261734a(24) =46465809007a(25) =124678595953a(26) =334173980818a(27) =894778164125

External references