A363224 Number of integer compositions of n in which the least part appears more than once.
0, 1, 1, 5, 8, 21, 44, 94, 197, 416, 857, 1766, 3621, 7392, 15032, 30493, 61708, 124646, 251359, 506203, 1018279, 2046454, 4109534, 8246985, 16540791, 33160051, 66451484, 133122753, 266612828, 533839069, 1068701695, 2139110054, 4281063708, 8566862025
Offset: 1
Keywords
Examples
The a(1) = 0 through a(6) = 21 compositions: . (11) (111) (22) (113) (33) (112) (131) (114) (121) (311) (141) (211) (1112) (222) (1111) (1121) (411) (1211) (1113) (2111) (1122) (11111) (1131) (1212) (1221) (1311) (2112) (2121) (2211) (3111) (11112) (11121) (11211) (12111) (21111) (111111)
Links
- John Tyler Rascoe, Table of n, a(n) for n = 1..1000
Crossrefs
Programs
-
Mathematica
Table[Length[Select[Join@@Permutations /@ IntegerPartitions[n],Count[#,Min@@#]>1&]],{n,15}]
-
PARI
C_x(N)={my(x='x+O('x^N), h=sum(i=1,N,(x^(2*i)*(x-1)^3)/((x^i+x-1)*(x^(i+1)+x-1)^2))); concat([0],Vec(h))} C_x(35) \\ John Tyler Rascoe, Jul 06 2024
Formula
G.f.: Sum_{i>0} (x^(2*i) * (x-1)^3)/((x^i + x - 1)*(x^(i+1) + x - 1)^2). - John Tyler Rascoe, Jul 06 2024
Comments