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.

A339941 Triangle read by rows: T(n,k) is the number of permutations of {1,...,n} whose longest embedded arithmetic progression has length k.

Table of values

n a(n)
1 1
2 0
3 2
4 0
5 4
6 2
7 0
8 10
9 12
10 2
11 0
12 20
13 82
14 16
15 2
16 0
17 48
18 516
19 134
20 20
21 2
22 0
23 104
24 3232
25 1480
26 198
27 24
28 2
29 0
30 282
31 21984
32 15702
33 2048
34 274
35 28
36 2
37 0
38 496
39 168368
40 162368
41 28048
42 3204
43 362
44 32
45 2
46 0
47 1066
48 1306404
49 1902496
50 374194
51 39420
52 4720
53 462
54 36
55 2
56 0
57 2460
58 11064306
59 23226786
60 4929828
61 622140
62 64020
63 6644
64 574
65 40
66 2

List of values

[1, 0, 2, 0, 4, 2, 0, 10, 12, 2, 0, 20, 82, 16, 2, 0, 48, 516, 134, 20, 2, 0, 104, 3232, 1480, 198, 24, 2, 0, 282, 21984, 15702, 2048, 274, 28, 2, 0, 496, 168368, 162368, 28048, 3204, 362, 32, 2, 0, 1066, 1306404, 1902496, 374194, 39420, 4720, 462, 36, 2, 0, 2460, 11064306, 23226786, 4929828, 622140, 64020, 6644, 574, 40, 2]