OFFSET
0,3
COMMENTS
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 [2,2,2,1]. The southeast border of its Ferrers board yields 10100, leading to the viabin number 20.
From Omar E. Pol, Jul 24 2017: (Start)
Consider that this is also an irregular triangle read by rows T(n,k), n>=0, k>=1, in which the row lengths are the elements of A011782 (see example).
Conjectures:
1) It appears that if k > 1 and k is a power of 2 then column k lists the positive integers (A000027).
2) It appears that column k lists the nonnegative integers (A001477) starting from the first elements of the column k.
3) It appears that if n > 0 then row n lists the first 2^(n-1) elements of A063787 in reverse order. (End)
LINKS
Antti Karttunen, Table of n, a(n) for n = 0..65537
FORMULA
EXAMPLE
a(9) = 3. Indeed, the binary form of 9 is 1001; with an additional 0 at the end, it leads to the path ENNEN, where E=(1,0), N=(0,1); this path is the southeast border of the Ferrers board of the integer partition [2,1,1], having 3 parts.
From Omar E. Pol, Jul 24 2017: (Start)
Written as an irregular triangle the sequence begins:
0;
1;
2,1;
3,2,2,1;
4,3,3,2,3,2,2,1;
5,4,4,3,4,3,3,2,4,3,3,2,3,2,2,1;
6,5,5,4,5,4,4,3,5,4,4,3,4,3,3,2,5,4,4,3,4,3,3,2,4,3,3,2,3,2,2,1;
...(End)
MAPLE
a := proc (n) if n < 2 then n elif `mod`(n, 2) = 0 then 1+a((1/2)*n) else a((1/2)*n-1/2) end if end proc: seq(a(n), n = 0 .. 150);
MATHEMATICA
a[n_] := a[n] = Which[n < 2, n, EvenQ[n], 1+a[n/2], True, a[(n-1)/2]];
Table[a[n], {n, 0, 105}] (* Jean-François Alcover, Aug 06 2024 *)
PROG
(PARI) A290251(n) = ((n>0)+#binary(n)-hammingweight(n)); \\ Antti Karttunen, Oct 06 2023
CROSSREFS
KEYWORD
nonn,tabf
AUTHOR
Emeric Deutsch, Jul 24 2017
EXTENSIONS
Data section extended up to n=105 by Antti Karttunen, Oct 06 2023
STATUS
approved