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.

A318553 a(1) = 1, a(n) = -5*a(n/3) if n is divisible by 3, a(n) = n - a(n-1) if n + 1 is divisible by 3, otherwise a(n) = n + a(n-1).

Table of values

n a(n)
1 1
2 1
3 -5
4 -1
5 6
6 -5
7 2
8 6
9 25
10 35
11 -24
12 5
13 18
14 -4
15 -30
16 -14
17 31
18 25
19 44
20 -24
21 -10
22 12
23 11
24 -30
25 -5
26 31
27 -125
28 -97
29 126
30 -175
31 -144
32 176
33 120
34 154
35 -119
36 -25
37 12
38 26
39 -90
40 -50
41 91
42 20
43 63
44 -19
45 150
46 196
47 -149
48 70
49 119
50 -69
51 -155
52 -103
53 156
54 -125
55 -70
56 126
57 -220
58 -162
59 221
60 120
61 181
62 -119
63 50
64 114
65 -49
66 -60
67 7
68 61

List of values

[1, 1, -5, -1, 6, -5, 2, 6, 25, 35, -24, 5, 18, -4, -30, -14, 31, 25, 44, -24, -10, 12, 11, -30, -5, 31, -125, -97, 126, -175, -144, 176, 120, 154, -119, -25, 12, 26, -90, -50, 91, 20, 63, -19, 150, 196, -149, 70, 119, -69, -155, -103, 156, -125, -70, 126, -220, -162, 221, 120, 181, -119, 50, 114, -49, -60, 7, 61]