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!)
A069916 Number of log-concave compositions (ordered partitions) of n. 34

%I #37 Mar 18 2021 10:17:17

%S 1,1,2,4,6,9,14,20,26,36,47,60,80,102,127,159,194,236,291,355,425,514,

%T 611,718,856,1009,1182,1381,1605,1861,2156,2496,2873,3299,3778,4301,

%U 4902,5574,6325,7176,8116,9152,10317,11610,13028,14611,16354,18259,20365

%N Number of log-concave compositions (ordered partitions) of n.

%C These are compositions with weakly decreasing first quotients, where the first quotients of a sequence are defined as if the sequence were an increasing divisor chain, so for example the first quotients of (6,3,1) are (1/2,1/3). - _Gus Wiseman_, Mar 16 2021

%H Alois P. Heinz, <a href="/A069916/b069916.txt">Table of n, a(n) for n = 0..300</a>

%H Eric Weisstein's World of Mathematics, <a href="http://mathworld.wolfram.com/LogarithmicallyConcaveSequence.html">Logarithmically Concave Sequence</a>.

%H Gus Wiseman, <a href="/A325325/a325325.txt">Sequences counting and ranking integer partitions by the differences of their successive parts</a>.

%H Gus Wiseman, <a href="/A069916/a069916.txt">Sequences counting and ranking partitions and compositions by their differences and quotients</a>.

%e Out of the 8 compositions of 4, only 2+1+1 and 1+1+2 are not log-concave, so a(4)=6.

%e From _Gus Wiseman_, Mar 15 2021: (Start)

%e The a(1) = 1 through a(6) = 14 compositions:

%e (1) (2) (3) (4) (5) (6)

%e (11) (12) (13) (14) (15)

%e (21) (22) (23) (24)

%e (111) (31) (32) (33)

%e (121) (41) (42)

%e (1111) (122) (51)

%e (131) (123)

%e (221) (132)

%e (11111) (141)

%e (222)

%e (231)

%e (321)

%e (1221)

%e (111111)

%e (End)

%t (* This program is not suitable for computing a large number of terms *)

%t compos[n_] := Permutations /@ IntegerPartitions[n] // Flatten[#, 1]&;

%t logConcaveQ[p_] := And @@ Table[p[[i]]^2 >= p[[i-1]]*p[[i+1]], {i, 2, Length[p]-1}]; a[n_] := Count[compos[n], p_?logConcaveQ]; Table[an = a[n]; Print["a(", n, ") = ", an]; a[n], {n, 0, 25}] (* _Jean-François Alcover_, Feb 29 2016 *)

%t Table[Length[Select[Join@@Permutations/@IntegerPartitions[n],GreaterEqual@@Divide@@@Reverse/@Partition[#,2,1]&]],{n,0,15}] (* _Gus Wiseman_, Mar 15 2021 *)

%o (Sage) def A069916(n) : return sum(all(p[i]^2 >= p[i-1] * p[i+1] for i in range(1, len(p)-1)) for p in Compositions(n)) # _Eric M. Schmidt_, Sep 29 2013

%Y The version for differences instead of quotients is A070211.

%Y A000005 counts constant compositions.

%Y A000009 counts strictly increasing (or strictly decreasing) compositions.

%Y A000041 counts weakly increasing (or weakly decreasing) compositions.

%Y A001055 counts factorizations.

%Y A002843 counts compositions with adjacent parts x <= 2y.

%Y A003238 counts chains of divisors summing to n-1, with strict case A122651.

%Y A003242 counts anti-run compositions.

%Y A074206 counts ordered factorizations.

%Y A167865 counts strict chains of divisors summing to n.

%Y Cf. A008965, A048004, A059966, A167606, A175342, A325547.

%K nonn,nice

%O 0,3

%A _Pontus von Brömssen_, Apr 24 2002

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 25 08:27 EDT 2024. Contains 371964 sequences. (Running on oeis4.)