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.

A365459 a(n) = n - the largest power of 3 that is less than or equal to n.

Table of values

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

List of values

[0, 1, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 0, 1, 2, 3, 4, 5, 6, 7]