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.

A018788 Number of subsets of {1,...,n} containing an arithmetic progression of length 3.

Table of values

n a(n)
0 0
1 0
2 0
3 1
4 3
5 9
6 24
7 63
8 150
9 343
10 746
11 1605
12 3391
13 7075
14 14624
15 30076
16 61385
17 124758
18 252618
19 510161
20 1027632
21 2066304
22 4148715
23 8322113
24 16680369
25 33413592
26 66904484
27 133923906
28 268009597
29 536257466
30 1072861536
31 2146225299
32 4293173040
33 8587388627

List of values

[0, 0, 0, 1, 3, 9, 24, 63, 150, 343, 746, 1605, 3391, 7075, 14624, 30076, 61385, 124758, 252618, 510161, 1027632, 2066304, 4148715, 8322113, 16680369, 33413592, 66904484, 133923906, 268009597, 536257466, 1072861536, 2146225299, 4293173040, 8587388627]