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.

A317825 a(1) = 1, a(n) = 3*a(n/2) if n is even, a(n) = n - a(n-1) if n is odd.

Table of values

n a(n)
1 1
2 3
3 0
4 9
5 -4
6 0
7 7
8 27
9 -18
10 -12
11 23
12 0
13 13
14 21
15 -6
16 81
17 -64
18 -54
19 73
20 -36
21 57
22 69
23 -46
24 0
25 25
26 39
27 -12
28 63
29 -34
30 -18
31 49
32 243
33 -210
34 -192
35 227
36 -162
37 199
38 219
39 -180
40 -108
41 149
42 171
43 -128
44 207
45 -162
46 -138
47 185
48 0
49 49
50 75
51 -24
52 117
53 -64
54 -36
55 91
56 189
57 -132
58 -102
59 161
60 -54
61 115
62 147
63 -84
64 729
65 -664
66 -630
67 697
68 -576

List of values

[1, 3, 0, 9, -4, 0, 7, 27, -18, -12, 23, 0, 13, 21, -6, 81, -64, -54, 73, -36, 57, 69, -46, 0, 25, 39, -12, 63, -34, -18, 49, 243, -210, -192, 227, -162, 199, 219, -180, -108, 149, 171, -128, 207, -162, -138, 185, 0, 49, 75, -24, 117, -64, -36, 91, 189, -132, -102, 161, -54, 115, 147, -84, 729, -664, -630, 697, -576]