login
A282728
Irregular triangle read by rows: row n gives "digits" d_1, d_2, d_3, ... of the 3-expansion of A282720(n).
0
1, 3, 6, 2, 3, 2, 7, 4, 6, 4, -2, -7, 2, 2, 3, 2, 2, 8, 2, 4, 9, 6, -2, -1, 4, 4, 6, 4, -6, 2, 1, 4, -2, -4, -9, 4, -2, -2, -8, 2, 2, 2, 3, 2, 2, 2, 9, 2, 2, 4, 12, 2, 6, -2, 5, 2, 4, 6, 9, 6, -6, 4, 8, 6, -2, 0, -3, 6, 2, -4, -15, 4, 4, 4, 6, 4, -6, -2, 4, 15, 4, -6, 2, 0, 3
OFFSET
1,2
LINKS
Julien Leroy, Michel Rigo, and Manon Stipulanti, Behavior of Digital Sequences Through Exotic Numeration Systems, Electronic Journal of Combinatorics 24(1) (2017), #P1.44. See Lemma 8 p.5 and Table 1 p. 8.
Julien Leroy, Michel Rigo, and Manon Stipulanti, Counting Subwords Occurrences in Base-b Expansions, arXiv:1705.10065 [math.CO], 2017.
Julien Leroy, Michel Rigo, and Manon Stipulanti, Counting Subwords Occurrences in Base-b Expansions, Integers, Electronic Journal of Combinatorial Number Theory 18A (2018), #A13.
Manon Stipulanti, Convergence of Pascal-Like Triangles in Parry-Bertrand Numeration Systems, arXiv:1801.03287 [math.CO], 2018.
EXAMPLE
Triangle begins:
1;
3;
6;
2, 3;
2, 7;
4, 6;
4, -2, -7;
...
PROG
(PARI) add(v, w) = v = Vecrev(v); w = Vecrev(w); my(z = if (#v == #w, v+w, if (#v < #w, Vec(v, #w) + w, Vec(w, #v) + v))); Vecrev(z);
row(n) = if (n==0, return([])); if (n==1, return([1])); my(e = logint(n, 2), r = n-2^e); if (r <= 2^(e-1), add(2*digits(3^(e-1), 3), add(a(2^(e-1)+r), a(r))), add(4*digits(3^e, 3), add(-digits(2*3^(e-1), 3), add(-a(2^(e-1)+2^e-r), -a(2^e-r))))); \\ Michel Marcus, Feb 25 2025
CROSSREFS
Cf. A282720.
Sequence in context: A124085 A132120 A021280 * A193537 A319674 A372696
KEYWORD
sign,tabf,changed
AUTHOR
N. J. A. Sloane, Mar 03 2017
EXTENSIONS
More terms from Michel Marcus, Feb 25 2025
STATUS
approved