OFFSET
1,3
COMMENTS
LINKS
Rémy Sigrist, Triangles illustrating initial terms (blue, gray and red respectively denote -1's, 0's and 1's)
Rémy Sigrist, PARI program
EXAMPLE
The balanced ternary expansion of 595 is "1T11001" (where T denotes -1), and the corresponding triangle T_595 is as follows:
1
T 0
1 0 0
1 1 T 1
0 T 0 1 1
0 0 1 T 0 T
1 T 1 1 0 0 1
As this triangle has 3-fold rotational symmetry, 595 belongs to the sequence.
PROG
(PARI) \\ See Links section.
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, Mar 30 2024
STATUS
approved