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.

A227321 a(n) is the least r>=3 such that the difference between the nearest r-gonal number >= n and n is an r-gonal number.

Table of values

n a(n)
0 3
1 3
2 3
3 3
4 4
5 3
6 3
7 3
8 4
9 3
10 3
11 5
12 3
13 8
14 3
15 3
16 4
17 5
18 3
19 11
20 3
21 3
22 3
23 5
24 4
25 3
26 10
27 3
28 3
29 11
30 3
31 17
32 4
33 3
34 5
35 3
36 3
37 7
38 14
39 3
40 4
41 15
42 3
43 23
44 3
45 3
46 5
47 11
48 4
49 3
50 5
51 5
52 3
53 19
54 3
55 3
56 3
57 8
58 5
59 21
60 3
61 32
62 14
63 3
64 4
65 3
66 3
67 15
68 3
69 5
70 5
71 25
72 3
73 38
74 7
75 3
76 6
77 3
78 3
79 13
80 4
81 3

List of values

[3, 3, 3, 3, 4, 3, 3, 3, 4, 3, 3, 5, 3, 8, 3, 3, 4, 5, 3, 11, 3, 3, 3, 5, 4, 3, 10, 3, 3, 11, 3, 17, 4, 3, 5, 3, 3, 7, 14, 3, 4, 15, 3, 23, 3, 3, 5, 11, 4, 3, 5, 5, 3, 19, 3, 3, 3, 8, 5, 21, 3, 32, 14, 3, 4, 3, 3, 15, 3, 5, 5, 25, 3, 38, 7, 3, 6, 3, 3, 13, 4, 3]