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.

A343602 For any positive number n, the balanced ternary representation of a(n) is obtained by left-rotating the balanced ternary representation of n until a nonzero digit appears again as the leftmost digit; a(0) = 0.

Table of values

n a(n)
0 0
1 1
2 -2
3 3
4 4
5 -11
6 -8
7 -5
8 -6
9 9
10 12
11 7
12 10
13 13
14 -38
15 -35
16 -32
17 -29
18 -26
19 -23
20 -20
21 -17
22 -14
23 -33
24 -24
25 -15
26 -18
27 27
28 36
29 21
30 30
31 39
32 16
33 19
34 22
35 25
36 28
37 31
38 34
39 37
40 40
41 -119
42 -116
43 -113
44 -110
45 -107
46 -104
47 -101
48 -98
49 -95
50 -92
51 -89
52 -86
53 -83
54 -80
55 -77
56 -74

List of values

[0, 1, -2, 3, 4, -11, -8, -5, -6, 9, 12, 7, 10, 13, -38, -35, -32, -29, -26, -23, -20, -17, -14, -33, -24, -15, -18, 27, 36, 21, 30, 39, 16, 19, 22, 25, 28, 31, 34, 37, 40, -119, -116, -113, -110, -107, -104, -101, -98, -95, -92, -89, -86, -83, -80, -77, -74]