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.

A154752 Least prime p (or 0) such that n = p + T, where T is a triangular number (A000217), or -1 if there is no such representation.

Table of values

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

List of values

[0, 2, 0, 3, 2, 0, 7, 2, 3, 0, 5, 2, 3, 11, 0, 13, 2, 3, 13, 5, 0, 7, 2, 3, 19, 5, 17, 0, 19, 2, 3, 11, 5, 13, 7, 0, 31, 2, 3, 19, 5, 41, 7, 23, 0, 31, 2, 3, 13, 5, 23, 7, 17, 53, 0, 11, 2, 3, 23, 5, 61, 7, 53, 19, 29, 0, 31, 2, 3, 67, 5, 17, 7, 19, 47, 31, 11, 0, 13, 2, 3, 37, 5, 29, 7, 31, 59, 43]