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.

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

Table of values

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

List of values

[3, 3, 3, 3, 3, 4, 3, 3, 4, 3, 3, 3, 5, 3, 7, 3, 3, 4, 3, 7, 4, 3, 3, 5, 3, 4, 4, 3, 3, 3, 11, 3, 16, 9, 3, 5, 3, 3, 19, 3, 4, 7, 3, 6, 22, 3, 3, 5, 3, 4, 4, 3, 5, 4, 19, 3, 3, 15, 3, 11, 6, 3, 7, 5, 4, 3, 3, 3, 4, 3, 5, 5, 3, 4, 37, 5, 3, 14, 3, 3, 4, 3, 4, 13]