OFFSET
1,5
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.
LINKS
Paolo Xausa, Table of n, a(n) for n = 1..10000
FORMULA
a(n) = A290260(2n).
EXAMPLE
a(37) = 2; indeed, the binary representation of 37 is 100101, leading to the integer partition [3',2',1,1] (the singletons are marked).
MAPLE
a := proc (n) local b: b := proc (n) if n = 1 then 0 elif `mod`(n, 2) = 0 and `mod`((1/2)*n, 2) = 1 then 1+b((1/2)*n) elif `mod`(n, 2) = 1 then b((1/2)*n-1/2) elif `mod`(n-4, 8) = 0 then b((1/2)*n)-1 else b((1/2)*n) end if end proc: b(2*n) end proc: seq(a(n), n = 1 .. 150);
MATHEMATICA
A292342[n_] := Count[Split[IntegerDigits[2*n, 2]], {0}];
Array[A292342, 100] (* Paolo Xausa, Oct 01 2024 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Emeric Deutsch, Sep 16 2017
STATUS
approved