Number of unimodal triples of distinct positive integers summing to n. 0, 0, 0, 0, 0, 0, 4, 4, 8, 12, 16, 20, 28, 32, 40, 48, 56, 64, 76, 84, 96, 108, 120, 132, 148, 160, 176, 192, 208, 224, 244, 260, 280, 300, 320, 340, 364, 384, 408, 432, 456, 480, 508, 532, 560, 588, 616, 644, 676, 704, 736, 768, 800, 832, 868, 900, 936, 972 [0] Last updated: Oct 20 2020. For this entry, let: b(n) = Number of triples of distinct positive integers summing to n. c(n) = Number of non-unimodal triples of distinct positive integers summing to n. Number of 3-part strict compositions of n with the middle part not less than both of the other two. A sequence of integers is unimodal if it is the concatenation of a weakly increasing and a weakly decreasing sequence. Unimodal compositions avoid the patterns (2,1,2), (2,1,3), and (3,1,2). Eric Weisstein's World of Mathematics, Unimodal Sequence a(n) = 4*A001399(n-6). a(n) = b(n) - c(n). 4*A001399(n-6) counts neither increasing nor decreasing strict triples. 2*A001399(n-6) counts either increasing or decreasing strict triples. The a(6) = 4 through a(10) = 16 triples: (1,2,3) (1,2,4) (1,2,5) (1,2,6) (1,2,7) (1,3,2) (1,4,2) (1,3,4) (1,3,5) (1,3,6) (2,3,1) (2,4,1) (1,4,3) (1,5,3) (1,4,5) (3,2,1) (4,2,1) (1,5,2) (1,6,2) (1,5,4) (2,5,1) (2,3,4) (1,6,3) (3,4,1) (2,4,3) (1,7,2) (4,3,1) (2,6,1) (2,3,5) (5,2,1) (3,4,2) (2,5,3) (3,5,1) (2,7,1) (4,3,2) (3,5,2) (5,3,1) (3,6,1) (6,2,1) (4,5,1) (5,3,2) (5,4,1) (6,3,1) (7,2,1) Table[Length[Select[Join@@Permutations/@IntegerPartitions[n,{3}],UnsameQ@@#&&!#[[3]]>#[[2]]<#[[1]]&]],{n,0,15}] b(n) counts 3-part strict compositions, ranked by A337453. c(n) counts the complement. A337453 \ A335373 ranks these compositions. A000212(n-1) is the not necessarily strict version, ranked by A337459. A072706 counts these compositions of any length. A000217(n-2) counts 3-part compositions, ranked by A014311. A001399(n-3) = A069905(n) = A211540(n+2) counts 3-part partitions, ranked by A014612. A001399(n-6) = A069905(n-3) = A211540(n-1) counts 3-part strict partitions, ranked by A007304. More on unimodal compositions: - A001523 counts unimodal compositions. - A001840/A062781/A130518 count non-unimodal triples, ranked by A337460. - A007052 counts unimodal patterns. - A011782 and A332288 count unimodal permutations. - A059204 and A332671 count non-unimodal permutations. - A072706 counts unimodal strict compositions. - A072707 counts non-unimodal strict compositions. - A115981 counts non-unimodal compositions, ranked by A332282 and A335373. - A328509 counts non-unimodal patterns. Cf. A128012, A156040, A216652, A332743, A333149, A335374.