login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A181366 Least entry in a 2-composition of n, summed over all 2-compositions of n. A 2-composition of n is a nonnegative matrix with two rows, such that each column has at least one nonzero entry and whose entries sum up to n. 2

%I #13 Nov 15 2020 09:29:25

%S 0,1,2,5,10,20,38,74,144,282,552,1086,2144,4247,8430,16761,33364,

%T 66479,132566,264520,528078,1054636,2106854,4209853,8413548,16817253,

%U 33618758,67212301,134384182,268703498,537302782,1074437977,2148606246

%N Least entry in a 2-composition of n, summed over all 2-compositions of n. A 2-composition of n is a nonnegative matrix with two rows, such that each column has at least one nonzero entry and whose entries sum up to n.

%C a(n) = Sum(k*A181365(n,k), k>=0).

%H Alois P. Heinz, <a href="/A181366/b181366.txt">Table of n, a(n) for n = 1..500</a>

%H G. Castiglione, A. Frosini, E. Munarini, A. Restivo and S. Rinaldi, <a href="https://doi.org/10.1016/j.ejc.2006.06.020">Combinatorial aspects of L-convex polyominoes</a>, European Journal of Combinatorics, 28, 2007, 1724-1741.

%F a(n) = Sum_{k>=0} k*A181365(n,k).

%F G.f. for 2-compositions with all entries >= k is h(k,z)=(1-z)^2/(1-2z+z^2-z^{2k}) if k>0 and h(0,z)=(1-z)^2/(1-4z+2z^2) if k=0.

%F G.f. for 2-compositions with least entry k is f(k,z)=h(k,z)-h(k+1,z).

%F G.f.: G(z) = Sum(k*f(k,z), k=1..infinity).

%F a(n) ~ 2^(n-2). - _Vaclav Kotesovec_, Sep 03 2014

%e a(2)=1 because the 2-compositions of 2, written as (top row / bottom row), are (1/1), (0/2), (2/0), (1,0/0,1), (0,1/1,0), (1,1/0,0), (0,0/1,1) and the least entries are 1 and eight 0's.

%p h := proc (k) if k = 0 then (1-z)^2/(1-4*z+2*z^2) else (1-z)^2/(1-2*z+z^2-z^(2*k)) end if end proc: f := proc (k) options operator, arrow; h(k)-h(k+1) end proc: G := sum(k*f(k), k = 1 .. 50): Gser := series(G, z = 0, 45): seq(coeff(Gser, z, n), n = 1 .. 35);

%t terms = 100;

%t A[n_, k_] := A[n, k] = If[n==0, 1, Sum[If[i==0 && j==0, 0, A[n-i-j, k]], {j, k, n}, {i, k, n-j}]];

%t T[n_, k_] := A[n, k] - A[n, k+1];

%t a[n_] := Sum[k T[n, k], {k, 0, terms}];

%t Array[a, terms] (* _Jean-François Alcover_, Nov 11 2020, after _Alois P. Heinz_ in A181365 *)

%Y Cf. A181365.

%K nonn

%O 1,3

%A _Emeric Deutsch_, Oct 15 2010

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 24 09:58 EDT 2024. Contains 371935 sequences. (Running on oeis4.)