cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

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.

Table of values

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

List of values

[1, 1, 4, 19, 57, 178, 543, 1591, 4598, 13117, 36999, 103514, 287653, 794847, 2186054, 5988339, 16347999, 44497490, 120804023, 327217525, 884531586, 2386747391, 6429784509, 17296261734, 46465809007, 124678595953, 334173980818, 894778164125]