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.

A320540 (1/4) * number of ways to select 3 distinct collinear points from a square of grid points with side length n.

Table of values

n a(n)
1 0
2 2
3 11
4 38
5 93
6 206
7 386
8 678
9 1112
10 1748
11 2583
12 3768
13 5253
14 7172
15 9630
16 12720
17 16370
18 20910
19 26169
20 32566
21 40139
22 48962
23 58900
24 70710
25 84096
26 99284
27 116469
28 136116
29 157671
30 182436
31 209436
32 239596
33 272976
34 309630
35 350035
36 395346
37 444021
38 496890
39 554402
40 617906

List of values

[0, 2, 11, 38, 93, 206, 386, 678, 1112, 1748, 2583, 3768, 5253, 7172, 9630, 12720, 16370, 20910, 26169, 32566, 40139, 48962, 58900, 70710, 84096, 99284, 116469, 136116, 157671, 182436, 209436, 239596, 272976, 309630, 350035, 395346, 444021, 496890, 554402, 617906]