A094198 Number of ways that n boxes with distinct sizes can contain each other under the condition that each box may contain at most three (themselves possibly nested) boxes. Each box is assumed to be large enough to contain any three smaller boxes.
1, 2, 6, 24, 119, 702, 4795, 37183, 322486, 3091630, 32453172, 370104159, 4555518746, 60182704891, 849245520581, 12746759647944, 202753756944382, 3406596290534764, 60282041591986049, 1120554350714688128
Offset: 1
Keywords
Examples
a(3)=6, as seen from these arrangements: 112233, 321123, 311223, 211233, 223113, 113223, where xyyx indicates that box x contains box y, etc.
Links
- Letong Hong and Rupert Li, Length-Four Pattern Avoidance in Inversion Sequences, arXiv:2112.15081 [math.CO], 2021.
Programs
-
Mathematica
m = 30; G[_] = 1; Do[G[x_] = 1 + (1/6) Integrate[G[x]^3 + 3 G[x] + 2, x] + O[x]^m, {m}]; CoefficientList[Exp[G[x] - 1] + O[x]^m, x] Range[0, m - 1]! // Rest (* Jean-François Alcover, Nov 13 2019 *)
Formula
E.g.f.: exp(G(x) - 1), where G(x) be the function that satisfies 6G'(x) = G(x)^3 + 3G(x) + 2 and G(0) = 1. In this case G'(x) is the exponential generating function giving the number of ways to perform the given task if at most 3 boxes may fail to lie in another box. [Joel B. Lewis, Apr 28 2009]
Extensions
a(20) corrected by Jean-François Alcover, Nov 13 2019
Comments