login
A129847
a(n) = number of set partitions of {1, 2, ..., n} whose blocks consist only of elements that differ by two or less (that is, have only the forms {i}, {i,i+1}, {i,i+2}, or {i,i+1,i+2}).
7
1, 1, 2, 5, 10, 20, 42, 87, 179, 370, 765, 1580, 3264, 6744, 13933, 28785, 59470, 122865, 253838, 524428, 1083466, 2238435, 4624595, 9554390, 19739321, 40781336, 84254032, 174068400, 359624425, 742982225, 1534997482, 3171296957, 6551883314, 13536157460
OFFSET
0,3
COMMENTS
(1) Bryce Duncan and I found this sequence while studying a graph invariant we call the Bell number. For a simple graph G = (V,E), we define B(G) to be the number of partitions P of V in which each block of P is an independent set of G. The sequence considered here results from choosing V = {1, 2, ..., n} and E = {(i,j) : |i - j| > 2. (The classical Bell numbers B(n) come from the edgeless graph on n vertices.)
(2) The constant r in the formula is the dominant root of the characteristic equation of a linear homogeneous recurrence relation that also defines {a(n)}. (This recurrence relation, along with initial conditions, appears in the Mathematica program given below. The formula for a(n) is analogous to one version of the Binet formula for the Fibonacci numbers, namely F(n) = the integer nearest to (1/sqrt(5)) p^n where p is the golden mean. The shifted Fibonacci numbers F(n+1) are also graphical Bell numbers: replace the condition |i - j| > 2 with |i - j| > 1 to obtain them.
(3) Bell numbers for simple graphs satisfy the deletion-contraction identity B(G) = B(G\e) - B(G/e), but not the product identity B(G union H) = B(G)B(H) for disjoint graphs G and H. However, we do have B(B join H) = B(G)B(H) for the join of graphs G and H. The join graph G join H results from adding to their disjoint union, all possible edges that join a vertex of G to a vertex of H.
Diagonal sums of triangle A158687. - Paul Barry, Mar 24 2009
a(n) is the number of compositions (ordered partitions) of n into parts 1, 2, 3, and 4 where there are two kinds of part 3. - Joerg Arndt, Sep 16 2016
a(n) is the number of ways to tile a skew double-strip of n cells using squares, "double", and "triangular triple" tiles. Here is the skew double-strip corresponding to n=12, with 12 cells:
___ ___ ___ ___ ___ ___
| | | | | | |
_|___|___|___|___|_ _|___|
| | | | | | |
|___|___|___|___|___|___|,
and here are the three possible "double" tiles and two possible "triangular triple" tiles:
___ ___ ___ _______
| | | | | | | |
_| _| |_ |_ _______ _| |_ |_ _|
| | | | | | | | | |
|___|, |___|, |_______|, |_______|, |___|
As an example, here is one of the b(12) = 3264 ways to tile the skew double-strip of 12 cells:
___ ___ _______ _______
| | | | | |
_|___|_ |__ _| |_ _|
| | | | |
|_______|___|___|___ ___|. - Greg Dresden and Ruotong Li, Jun 12 2024
REFERENCES
Herbert S. Wilf, Generatingfunctiononogy (2nd Edition), Academic Press 1990, pp. 1 - 10 and pp. 20 - 23.
Arthur T. Benjamin and Jennifer J. Quinn, Proofs that Really Count, Dolciani Mathematical Expositions (MAA), (2003), p. 1. (A relevant combinatorial interpretation of Fibonacci numbers.)
LINKS
Kassie Archer, Ethan Borsh, Jensen Bridges, Christina Graves, and Millie Jeske, Cyclic permutations avoiding patterns in both one-line and cycle forms, arXiv:2312.05145 [math.CO], 2023. See p. 2.
B. Duncan and R. Peele, Bell and Stirling numbers for graphs, JIS 12 (2009), Article 09.7.1.
W. Kuszmaul, Fast Algorithms for Finding Pattern Avoiders and Counting Pattern Occurrences in Permutations, Mathematics of Computation 87 (2018), 987-1011.
FORMULA
a(n) = the integer nearest to s r^n, where r = 2.0659948920 ... and s = 0.53979687305... . (More information in comment (2).)
a(n) = Sum_{k=0..floor(n/2)} Sum_{j=0..n-2k} C(n-j-k,k)*C(2k,j). - Paul Barry, Mar 24 2009
G.f.: 1/(1 - x - x^2 - 2*x^3 - x^4). - Colin Barker, May 02 2012
a(n) = a(n-1) + a(n-2) + 2*(n-3) + a(n-4) with a(0) = a(1) = 1, a(2) = 2, a(3) = 5. - Taras Goy, Aug 04 2017
a(2*n) = a(n)^2 - a(n-1)^2 + a(n-2)^2 + 2*a(n-1)*(a(n+1)-a(n)). - Greg Dresden, Jul 03 2024
EXAMPLE
a(4) = 10, with set partitions {{1},{2},{3}, {4}}; {{1,2}, {3}, {4}}; {{1,3}, {2}, {4}}; {{1}, {2,3}, {4}}; {{1}, {2,4}, {3}}; {{1}, {2}, {3,4}}; {{1,2,3}, {4}}; {{1}, {2,3,4}}; {{1,2}, {3,4}} and {{1,3}, {2,4}}.
MAPLE
a:= n-> (<<0|1|0|0>, <0|0|1|0>, <0|0|0|1>, <1|2|1|1>>^n)[4, 4]:
seq(a(n), n=0..35); # Alois P. Heinz, Sep 15 2016
MATHEMATICA
a[1] = 1; a[2] = 2; a[3] = 5; a[4] = 10
a[n_] := a[n] = a[n-1] + a[n-2] + 2 a[n-3] + a[n-4]
Table[a[n], {n, 1, 30}]
CROSSREFS
Column k=3 of A276719.
Sequence in context: A293319 A267589 A006836 * A330456 A352120 A176692
KEYWORD
nonn,easy
AUTHOR
Rhodes Peele (rpeele(AT)mail.aum.edu), May 22 2007
EXTENSIONS
a(0)=1 prepended by Alois P. Heinz, Sep 15 2016
STATUS
approved