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.

A350178 Take n and subtract the greatest square less than or equal to n. Repeat this process until 0 is reached. a(n) is the sum of all residues after subtractions.

Table of values

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

List of values

[0, 0, 1, 3, 0, 1, 3, 6, 4, 0, 1, 3, 6, 4, 6, 9, 0, 1, 3, 6, 4, 6, 9, 13, 12, 0, 1, 3, 6, 4, 6, 9, 13, 12, 9, 11, 0, 1, 3, 6, 4, 6, 9, 13, 12, 9, 11, 14, 18, 0, 1, 3, 6, 4, 6, 9, 13, 12, 9, 11, 14, 18, 17, 20, 0, 1, 3, 6, 4, 6, 9, 13, 12, 9, 11, 14, 18, 17, 20, 24, 16, 0, 1, 3, 6, 4, 6, 9, 13]