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.

A270966 Number of ways to write n as x^2 + y^2 + z*(3z+1)/2, where x, y and z are integers with 0 <= x <= y such that x or y has the form p-1 with p prime.

Table of values

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

List of values

[1, 2, 2, 2, 2, 3, 2, 2, 3, 3, 2, 2, 3, 2, 3, 3, 5, 3, 2, 4, 2, 3, 3, 2, 4, 3, 5, 4, 2, 4, 4, 5, 2, 3, 2, 4, 5, 4, 5, 3, 6, 6, 4, 4, 4, 3, 4, 5, 1, 3, 5, 8, 5, 3, 6, 3, 4, 4, 4, 4, 4, 5, 3, 3, 6, 5, 8, 4, 2, 4]