login
Number of singletons in the integer partition having viabin number n.
3

%I #14 Oct 02 2024 05:27:52

%S 1,0,1,0,2,0,1,0,1,1,2,0,2,0,1,0,1,0,1,1,3,1,2,0,1,1,2,0,2,0,1,0,1,0,

%T 1,0,2,0,1,1,2,2,3,1,3,1,2,0,1,0,1,1,3,1,2,0,1,1,2,0,2,0,1,0,1,0,1,0,

%U 2,0,1,0,1,1,2,0,2,0,1,1,2,1,2,2,4,2,3,1,2,2,3,1

%N Number of singletons in the integer partition having viabin number n.

%C 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.

%H Paolo Xausa, <a href="/A292342/b292342.txt">Table of n, a(n) for n = 1..10000</a>

%F a(n) = A290260(2n).

%e a(37) = 2; indeed, the binary representation of 37 is 100101, leading to the integer partition [3',2',1,1] (the singletons are marked).

%p 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);

%t A292342[n_] := Count[Split[IntegerDigits[2*n, 2]], {0}];

%t Array[A292342, 100] (* _Paolo Xausa_, Oct 01 2024 *)

%Y Bisection of A290260.

%K nonn

%O 1,5

%A _Emeric Deutsch_, Sep 16 2017