Triangle begins:
1
0 1
0 1 1
0 0 3 1
0 0 3 6 1
0 0 0 15 10 1
0 0 0 15 45 15 1
0 0 0 0 105 105 21 1
0 0 0 0 105 420 210 28 1
0 0 0 0 0 945 1260 378 36 1
As noted above, a(n) is the number of set partitions of {1..n} into k singletons or pairs. This is also the number of set partitions of subsets of {1..n} into n - k pairs. In the first case, row n = 5 counts the following set partitions:
{{1},{2,3},{4,5}} {{1},{2},{3},{4,5}} {{1},{2},{3},{4},{5}}
{{1,2},{3},{4,5}} {{1},{2},{3,4},{5}}
{{1,2},{3,4},{5}} {{1},{2,3},{4},{5}}
{{1,2},{3,5},{4}} {{1,2},{3},{4},{5}}
{{1},{2,4},{3,5}} {{1},{2},{3,5},{4}}
{{1},{2,5},{3,4}} {{1},{2,4},{3},{5}}
{{1,3},{2},{4,5}} {{1},{2,5},{3},{4}}
{{1,3},{2,4},{5}} {{1,3},{2},{4},{5}}
{{1,3},{2,5},{4}} {{1,4},{2},{3},{5}}
{{1,4},{2},{3,5}} {{1,5},{2},{3},{4}}
{{1,4},{2,3},{5}}
{{1,4},{2,5},{3}}
{{1,5},{2},{3,4}}
{{1,5},{2,3},{4}}
{{1,5},{2,4},{3}}
In the second case, we have:
{{1,2},{3,4}} {{1,2}} {}
{{1,2},{3,5}} {{1,3}}
{{1,2},{4,5}} {{1,4}}
{{1,3},{2,4}} {{1,5}}
{{1,3},{2,5}} {{2,3}}
{{1,3},{4,5}} {{2,4}}
{{1,4},{2,3}} {{2,5}}
{{1,4},{2,5}} {{3,4}}
{{1,4},{3,5}} {{3,5}}
{{1,5},{2,3}} {{4,5}}
{{1,5},{2,4}}
{{1,5},{3,4}}
{{2,3},{4,5}}
{{2,4},{3,5}}
{{2,5},{3,4}}
(End)