OFFSET
1,2
COMMENTS
The viabin numbers of integer partitions having only odd parts. The viabin number of an integer partition is defined in the following way. Consider the southeast border of the Ferrers board of the integer partition and consider the binary number obtained by replacing each east step with 1 and each north step, except the last one, with 0. The corresponding decimal form is, by definition, the viabin number of the given integer partition. "Viabin" is coined from "via binary". For example, consider the integer partition [7,5]. The southeast border of its Ferrers board yields 11111011 (length is 8), leading to the viabin number 251 (a term in row 8).
Number of entries in row n is the Fibonacci number F(n) = A000045(n).
T(n,k) = A290258(n+1,k) - 2^n.
Last entry in row n = A140253(n).
FORMULA
The entries in row n (n>=3) are (i) 2x, where x is in row n-1, and (ii) 4y + 3, where y is in row n-2. The Maple program is based on this.
EXAMPLE
115 is in the sequence; indeed, its binary representation, namely 1110011, has first run of 1's of odd length and the other runs of 1's have even length.
Triangle begins:
1;
2;
4, 7;
8, 11, 14;
16, 19, 22, 28, 31;
32, 35, 38, 44, 47, 56, 59, 62;
...
MAPLE
A[1] := {1}; A[2] := {2}; for n from 3 to 10 do A[n] := `union`(map(proc (x) 2*x end proc, A[n-1]), map(proc (x) 4*x+3 end proc, A[n-2])) end do; # yields sequence in triangular form
MATHEMATICA
nmax = 10; A[1] = {1}; A[2] = {2}; For[n = 3, n <= nmax, n++, A[n] = Union[2 A[n-1], 4 A[n-2] + 3]]; Table[A[n], {n, 1, nmax}] // Flatten (* Jean-François Alcover, Aug 26 2024, after Maple program *)
CROSSREFS
KEYWORD
nonn,base,tabf
AUTHOR
Emeric Deutsch, Sep 12 2017
STATUS
approved