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.

A343603 For any positive number n, the balanced ternary representation of a(n) is obtained by right-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 -7
6 -8
7 11
8 -6
9 9
10 12
11 -5
12 10
13 13
14 -22
15 -25
16 32
17 -21
18 -26
19 33
20 -20
21 29
22 34
23 -19
24 -24
25 35
26 -18
27 27
28 36
29 -17
30 30
31 37
32 -16
33 -23
34 38
35 -15
36 28
37 39
38 -14
39 31
40 40
41 -67
42 -76
43 95
44 -66
45 -79
46 96
47 -65
48 86
49 97
50 -64
51 -75
52 98
53 -63
54 -80
55 99
56 -62
57 87
58 100
59 -61

List of values

[0, 1, -2, 3, 4, -7, -8, 11, -6, 9, 12, -5, 10, 13, -22, -25, 32, -21, -26, 33, -20, 29, 34, -19, -24, 35, -18, 27, 36, -17, 30, 37, -16, -23, 38, -15, 28, 39, -14, 31, 40, -67, -76, 95, -66, -79, 96, -65, 86, 97, -64, -75, 98, -63, -80, 99, -62, 87, 100, -61]