A138388 Numbers of unlabeled graphs with n vertices and 3 unicyclic components.
1, 2, 8, 27, 89, 289, 938, 2985, 9456, 29722, 92842, 288509, 892506, 2749940, 8443504, 25845735, 78897469, 240259510, 730040882, 2213910727, 6701939407, 20255424836, 61128717826, 184233427305, 554574518396, 1667491889239
Offset: 9
Keywords
Examples
a(18) = 29722, since A138387(15) = 17980; nU = 455. The partitions considered by sI are 4+(4+10) and 5+(5+8). Those partitions correspond to 3306 graphs. To sD correspond 4+(5+9), 4+(6+8) and 5+(6+7). This gives 6859 graphs. To sF correspond 4+(7+7), or 1122 graphs. Note that f(4)= 2, f(5) = 5, f(6) = 13, f(7) = 33, f(8) = 89, f(9) = 240 and f(10) = 657.
Links
- D. E. Knuth, The Art of Computer Programming, Vol. 4, Fascicle 4b, p. 20.
Formula
If n <= 11, a(n) = A138387(n-3).
If n > 11, a(n) = A138387(n-3) + nU + sI + sD + sF, where nU = (f(n/3) + 2) * (f(n/3) + 1) * f(n/3)/6, (n mod 3 = 0), 0, (otherwise),
sI = (1/2) * Sum_{4 <= k < n/3}(f(k) + 1) * f(k) * f(n - 2k),
sD = Sum_{4 <= k < (n-2)/3} f(k) * Sum_{k+1 <= i < (n-k)/2} f(i) * f(n-k-i),
sF = (1/2) * Sum_{4 <= k < n/3}f(k) * (f((n-k)/2) + 1) * f((n-k)/2), (even n, k), or (1/2) * Sum_{5 <= k < n/3}f(k) * (f((n-k)/2) + 1) * f((n-k)/2), (odd n, k),
where f(j) is A001429(j).
Comments