cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

Showing 1-10 of 10 results.

A360631 Number of sets of integer-sided rectangular pieces that can tile a 2 X n rectangle.

Original entry on oeis.org

1, 2, 4, 10, 22, 44, 91, 172, 326, 595, 1066, 1849, 3204, 5365, 8921, 14581, 23558, 37440, 59127, 91957, 142060, 217015, 328939, 493917, 737249, 1090432, 1603439, 2341094, 3398313, 4900740, 7032809, 10031010, 14241165, 20112575, 28276657, 39566635, 55140425, 76499692, 105731884, 145550924
Offset: 0

Views

Author

Pontus von Brömssen, Feb 14 2023

Keywords

Examples

			From _Robin Visser_, May 01 2025: (Start)
For n = 1, there are a(1) = 2 possible sets of rectangular pieces that can tile a 2 x 1 rectangle: one 1 x 2 piece; or two 1 x 1 pieces.
For n = 2, there are a(2) = 4 possible sets of rectangular pieces that can tile a 2 x 2 rectangle: one 2 x 2 piece; two 1 x 2 pieces; one 1 x 2 piece and two 1 x 1 pieces; or four 1 x 1 pieces.
For n = 3, there are a(3) = 10 possible sets of rectangular pieces that can tile a 2 x 3 rectangle: one 2 x 3 piece; one 2 x 2 piece and one 1 x 2 piece; one 2 x 2 piece and two 1 x 1 pieces; two 1 x 3 pieces; one 1 x 3 piece, one 1 x 2 piece, and one 1 x 1 piece; one 1 x 3 piece and three 1 x 1 pieces; three 1 x 2 pieces; two 1 x 2 pieces and two 1 x 1 pieces; one 1 x 2 piece and four 1 x 1 pieces; or six 1 x 1 pieces. (End)
		

Crossrefs

Second column of A360629.
Cf. A000041 (1 x n rectangle), A360632 (3 x n rectangle).

Programs

  • Python
    def a(n):
        A, B = [set() for i in range(n+1)], [set() for i in range(n+1)]
        A[0].add(()); B[0].add(());
        for (m,k) in [(x,y) for x in range(1, n+1) for y in range(1, x+1)]:
            for p in A[m-k]: A[m].add(tuple(sorted(list(p)+[k])))
            for (p, q) in [(x,y) for x in A[m] for y in A[m]]:
                B[m].add(tuple(sorted([(1,c) for c in p]+[(1,c) for c in q])))
            for p in B[m-k]: B[m].add(tuple(sorted(list(p)+[tuple(sorted((2,k)))])))
        return len(B[n])  # Robin Visser, May 01 2025

Extensions

More terms from Robin Visser, May 04 2025
a(0) = 1 prepended by Robin Visser, May 05 2025

A360632 Number of sets of integer-sided rectangular pieces that can tile a 3 X n rectangle.

Original entry on oeis.org

1, 3, 10, 21, 73, 190, 510, 1196, 2895, 6437, 14281, 29840, 62405, 124506, 246383, 473094, 899000, 1665763, 3057894, 5500889, 9808150
Offset: 0

Views

Author

Pontus von Brömssen, Feb 14 2023

Keywords

Examples

			From _Robin Visser_, May 01 2025: (Start)
For n = 1, there are a(1) = 3 possible sets of rectangular pieces that can tile a 3 x 1 rectangle: one 1 x 3 piece; one 1 x 2 piece and one 1 x 1 piece; or three 1 x 1 pieces.
For n = 2, there are a(2) = 10 possible sets of rectangular pieces that can tile a 3 x 2 rectangle: one 2 x 3 piece; one 2 x 2 piece and one 1 x 2 piece; one 2 x 2 piece and two 1 x 1 pieces; two 1 x 3 pieces; one 1 x 3 piece, one 1 x 2 piece, and one 1 x 1 piece; one 1 x 3 piece and three 1 x 1 pieces; three 1 x 2 pieces; two 1 x 2 pieces and two 1 x 1 pieces; one 1 x 2 piece and four 1 x 1 pieces; or six 1 x 1 pieces. (End)
		

Crossrefs

Third column of A360629.
Cf. A000041 (1 x n rectangle), A360631 (2 x n rectangle).

Programs

  • Python
    def a(n):
        A = [[[set() for i in range(n+1)] for j in range(n+1)] for k in range(n+1)]
        A[0][0][0].add(()); m = n+1;
        for (i,j,k) in [(x,y,z) for x in range(m) for y in range(m) for z in range(m)]:
            for (l,p) in [(x,y) for x in range(1,i+1) for y in A[i-x][j][k]]:
                A[i][j][k].add(tuple(sorted(list(p)+[(1,l)])))
            for (l,p) in [(x,y) for x in range(1,j+1) for y in A[i][j-x][k]]:
                A[i][j][k].add(tuple(sorted(list(p)+[(1,l)])))
            for (l,p) in [(x,y) for x in range(1,k+1) for y in A[i][j][k-x]]:
                A[i][j][k].add(tuple(sorted(list(p)+[(1,l)])))
            for (l,p) in [(x,y) for x in range(1,min(i,j)+1) for y in A[i-x][j-x][k]]:
                if (i==j): A[i][j][k].add(tuple(sorted(list(p)+[tuple(sorted((2,l)))])))
            for (l,p) in [(x,y) for x in range(1,min(j,k)+1) for y in A[i][j-x][k-x]]:
                if (j==k): A[i][j][k].add(tuple(sorted(list(p)+[tuple(sorted((2,l)))])))
            for (l,p) in [(x,y) for x in range(1,min(i,j,k)+1) for y in A[i-x][j-x][k-x]]:
                if (i==j==k): A[i][j][k].add(tuple(sorted(list(p)+[tuple(sorted((3,l)))])))
        return len(A[n][n][n])  # Robin Visser, May 01 2025

Extensions

a(17)-a(20) from Robin Visser, May 04 2025
a(0) = 1 prepended by Robin Visser, May 05 2025

A360630 Number of sets of integer-sided rectangular pieces that can tile an n X n square.

Original entry on oeis.org

1, 4, 21, 192, 2035, 27407, 399618
Offset: 1

Views

Author

Pontus von Brömssen, Feb 14 2023

Keywords

Examples

			The a(3) = 21 possible sets of pieces that can tile a 3 X 3 square are given in the table below. (Each column on the right gives a set of pieces.)
.
  length X width |            number of pieces
  ---------------+------------------------------------------
       3 X 3     | 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
       2 X 3     | 0 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
       2 X 2     | 0 0 0 0 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0
       1 X 3     | 0 1 0 0 1 1 0 0 0 3 2 2 1 1 1 1 0 0 0 0 0
       1 X 2     | 0 0 1 0 1 0 2 1 0 0 1 0 3 2 1 0 4 3 2 1 0
       1 X 1     | 0 0 1 3 0 2 1 3 5 0 1 3 0 2 4 6 1 3 5 7 9
		

Crossrefs

Main diagonal of A360629.
Cf. A034295 (square pieces).

Extensions

a(7) from Robin Visser, May 09 2025

A361216 Triangle read by rows: T(n,k) is the maximum number of ways in which a set of integer-sided rectangular pieces can tile an n X k rectangle.

Original entry on oeis.org

1, 1, 4, 2, 11, 56, 3, 29, 370, 5752, 4, 94, 2666, 82310, 2519124, 6, 263, 19126, 1232770, 88117873, 6126859968, 12, 968, 134902, 19119198, 2835424200
Offset: 1

Views

Author

Pontus von Brömssen, Mar 05 2023

Keywords

Comments

Tilings that are rotations or reflections of each other are considered distinct.
Pieces can have any combination of integer side lengths, but for the optimal sets computed so far (up to (n,k) = (7,5)), all pieces have one side of length 1.

Examples

			Triangle begins:
  n\k|  1    2       3         4            5          6  7  8
  ---+--------------------------------------------------------
  1  |  1
  2  |  1    4
  3  |  2   11      56
  4  |  3   29     370      5752
  5  |  4   94    2666     82310      2519124
  6  |  6  263   19126   1232770     88117873 6126859968
  7  | 12  968  134902  19119198   2835424200          ?  ?
  8  | 20 3416 1026667 307914196 109979838540          ?  ?  ?
A 3 X 3 square can be tiled by three 1 X 2 pieces and three 1 X 1 pieces in the following ways:
  +---+---+---+   +---+---+---+   +---+---+---+
  |   |   |   |   |   |   |   |   |   |   |   |
  +---+---+---+   +   +---+---+   +---+   +---+
  |       |   |   |   |   |   |   |   |   |   |
  +---+---+   +   +---+---+   +   +---+---+   +
  |       |   |   |       |   |   |       |   |
  +---+---+---+   +---+---+---+   +---+---+---+
.
  +---+---+---+   +---+---+---+   +---+---+---+
  |       |   |   |   |   |   |   |   |       |
  +---+---+---+   +---+---+   +   +---+---+---+
  |   |   |   |   |       |   |   |       |   |
  +---+---+   +   +---+---+---+   +---+---+---+
  |       |   |   |       |   |   |       |   |
  +---+---+---+   +---+---+---+   +---+---+---+
.
  +---+---+---+   +---+---+---+
  |       |   |   |       |   |
  +---+---+---+   +---+---+---+
  |       |   |   |   |       |
  +---+---+---+   +---+---+---+
  |       |   |   |       |   |
  +---+---+---+   +---+---+---+
The first six of these have no symmetries, so they account for 8 tilings each. The last two has a mirror symmetry, so they account for 4 tilings each. In total there are 6*8+2*4 = 56 tilings. This is the maximum for a 3 X 3 square, so T(3,3) = 56.
The following table shows the sets of pieces that give the maximum number of tilings up to (n,k) = (7,5). The solutions are unique except for (n,k) = (2,1) and (n,k) = (6,1).
      \     Number of pieces of size
  (n,k)\  1 X 1 | 1 X 2 | 1 X 3 | 1 X 4
  ------+-------+-------+-------+------
  (1,1) |   1   |   0   |   0   |   0
  (2,1) |   2   |   0   |   0   |   0
  (2,1) |   0   |   1   |   0   |   0
  (2,2) |   2   |   1   |   0   |   0
  (3,1) |   1   |   1   |   0   |   0
  (3,2) |   2   |   2   |   0   |   0
  (3,3) |   3   |   3   |   0   |   0
  (4,1) |   2   |   1   |   0   |   0
  (4,2) |   4   |   2   |   0   |   0
  (4,3) |   3   |   3   |   1   |   0
  (4,4) |   5   |   4   |   1   |   0
  (5,1) |   3   |   1   |   0   |   0
  (5,2) |   4   |   3   |   0   |   0
  (5,3) |   4   |   4   |   1   |   0
  (5,4) |   7   |   5   |   1   |   0
  (5,5) |   7   |   6   |   2   |   0
  (6,1) |   2   |   2   |   0   |   0
  (6,1) |   1   |   1   |   1   |   0
  (6,2) |   4   |   4   |   0   |   0
  (6,3) |   7   |   4   |   1   |   0
  (6,4) |   8   |   5   |   2   |   0
  (6,5) |  10   |   7   |   2   |   0
  (6,6) |  11   |   8   |   3   |   0
  (7,1) |   2   |   1   |   1   |   0
  (7,2) |   5   |   3   |   1   |   0
  (7,3) |   8   |   5   |   1   |   0
  (7,4) |  10   |   6   |   2   |   0
  (7,5) |  11   |   7   |   2   |   1
		

Crossrefs

Main diagonal: A361217.
Columns: A102462 (k = 1), A361218 (k = 2), A361219 (k = 3), A361220 (k = 4).

Formula

T(n,1) = A102462(n).

A361221 Triangle read by rows: T(n,k) is the maximum number of ways in which a set of integer-sided rectangular pieces can tile an n X k rectangle, up to rotations and reflections.

Original entry on oeis.org

1, 1, 1, 1, 5, 8, 2, 12, 95, 719, 2, 31, 682, 20600, 315107
Offset: 1

Views

Author

Pontus von Brömssen, Mar 05 2023

Keywords

Examples

			Triangle begins:
  n\k|  1  2    3     4      5
  ---+------------------------
  1  |  1
  2  |  1  1
  3  |  1  5    8
  4  |  2 12   95   719
  5  |  2 31  682 20600 315107
A 3 X 3 square can be tiled by one 1 X 3 piece, two 1 X 2 pieces and two 1 X 1 pieces in the following 8 ways:
  +---+---+---+   +---+---+---+   +---+---+---+
  |   |   |   |   |       |   |   |   |       |
  +---+---+   +   +---+---+---+   +---+---+---+
  |       |   |   |       |   |   |       |   |
  +---+---+---+   +---+---+---+   +---+---+---+
  |           |   |           |   |           |
  +---+---+---+   +---+---+---+   +---+---+---+
.
  +---+---+---+   +---+---+---+   +---+---+---+
  |   |   |   |   |   |   |   |   |   |       |
  +   +   +---+   +   +---+   +   +   +---+---+
  |   |   |   |   |   |   |   |   |   |   |   |
  +---+---+---+   +---+---+---+   +---+---+---+
  |           |   |           |   |           |
  +---+---+---+   +---+---+---+   +---+---+---+
.
  +---+---+---+   +---+---+---+
  |       |   |   |   |       |
  +---+---+---+   +---+---+---+
  |           |   |           |
  +---+---+---+   +---+---+---+
  |       |   |   |       |   |
  +---+---+---+   +---+---+---+
This is the maximum for a 3 X 3 square, so T(3,3) = 8. There is one other set of pieces that also can tile the 3 X 3 square in 8 ways: three 1 X 2 pieces and three 1 X 1 pieces (see illustration in A361216).
The following table shows all sets of pieces that give the maximum number of tilings for 1 <= k <= n <= 5:
      \     Number of pieces of size
  (n,k)\  1 X 1 | 1 X 2 | 1 X 3 | 2 X 2
  ------+-------+-------+-------+------
  (1,1) |   1   |   0   |   0   |   0
  (2,1) |   2   |   0   |   0   |   0
  (2,1) |   0   |   1   |   0   |   0
  (2,2) |   4   |   0   |   0   |   0
  (2,2) |   2   |   1   |   0   |   0
  (2,2) |   0   |   2   |   0   |   0
  (2,2) |   0   |   0   |   0   |   1
  (3,1) |   3   |   0   |   0   |   0
  (3,1) |   1   |   1   |   0   |   0
  (3,1) |   0   |   0   |   1   |   0
  (3,2) |   2   |   2   |   0   |   0
  (3,3) |   3   |   3   |   0   |   0
  (3,3) |   2   |   2   |   1   |   0
  (4,1) |   2   |   1   |   0   |   0
  (4,2) |   4   |   2   |   0   |   0
  (4,3) |   3   |   3   |   1   |   0
  (4,4) |   5   |   4   |   1   |   0
  (5,1) |   3   |   1   |   0   |   0
  (5,1) |   2   |   0   |   1   |   0
  (5,1) |   1   |   2   |   0   |   0
  (5,2) |   4   |   3   |   0   |   0
  (5,3) |   4   |   4   |   1   |   0
  (5,4) |   7   |   5   |   1   |   0
  (5,5) |   7   |   6   |   2   |   0
It seems that all optimal solutions for A361216 are also optimal here, but occasionally there are other optimal solutions, e.g. for n = k = 3.
		

Crossrefs

Main diagonal: A361222.
Columns: A361223 (k = 1), A361224 (k = 2), A361225 (k = 3).

A361001 Triangle read by rows: T(n,k) is the number of tilings of an n X k rectangle by integer-sided rectangular pieces that cannot be rearranged to produce a different tiling of the rectangle (except rotations and reflections of the original tiling), 1 <= k <= n.

Original entry on oeis.org

1, 2, 4, 3, 7, 9, 4, 11, 18, 23, 4, 14, 22, 34, 41, 6, 23, 42, 72, 108
Offset: 1

Views

Author

Pontus von Brömssen, Feb 28 2023

Keywords

Examples

			Triangle begins:
  n\k|  1  2  3  4   5  6
  ---+-------------------
  1  |  1
  2  |  2  4
  3  |  3  7  9
  4  |  4 11 18 23
  5  |  4 14 22 34  41
  6  |  6 23 42 72 108  ?
The T(3,3) = 9 nonrearrangeable tilings of the 3 X 3 square are:
  +---+---+---+   +---+---+---+   +---+---+---+
  |           |   |           |   |       |   |
  +           +   +---+---+---+   +---+---+---+
  |           |   |           |   |           |
  +           +   +           +   +           +
  |           |   |           |   |           |
  +---+---+---+   +---+---+---+   +---+---+---+
.
  +---+---+---+   +---+---+---+   +---+---+---+
  |   |   |   |   |       |   |   |   |   |   |
  +---+---+---+   +---+---+   +   +---+---+   +
  |           |   |       |   |   |       |   |
  +           +   +       +   +   +       +   +
  |           |   |       |   |   |       |   |
  +---+---+---+   +---+---+---+   +---+---+---+
.
  +---+---+---+   +---+---+---+   +---+---+---+
  |   |   |   |   |           |   |   |   |   |
  +---+---+---+   +---+---+---+   +---+---+---+
  |       |   |   |           |   |   |   |   |
  +       +---+   +---+---+---+   +---+---+---+
  |       |   |   |           |   |   |   |   |
  +---+---+---+   +---+---+---+   +---+---+---+
		

Crossrefs

Cf. A000005, A360629, A360998, A361002 (main diagonal), A361003 (first column), A361004 (second column), A361005 (third column).

Formula

T(n,1) = A361003(n) = A000005(n) + floor((n-1)/2). (The first term corresponds to cases where all pieces have the same size, the second to cases where there are two pieces of different sizes.)

A361424 Triangle read by rows: T(n,k) is the maximum of a certain measure of the difficulty level (see comments) for tiling an n X k rectangle with a set of integer-sided rectangular pieces, rounded down to the nearest integer.

Original entry on oeis.org

1, 2, 2, 2, 6, 8, 4, 12, 48, 80, 4, 16, 80, 480, 1152, 8, 48, 480, 2880, 20160, 53760, 8, 53, 960, 13440, 107520
Offset: 1

Views

Author

Pontus von Brömssen, Mar 11 2023

Keywords

Comments

The (n,k)-tiling difficulty level of a set of integer-sided rectangular pieces is defined as follows. Pieces are free to rotate, so an s X t piece and a t X s piece are equivalent. Consider a random permutation of the pieces together with a random choice of orientation of each nonsquare piece. Take one piece at a time, in the chosen order and with the chosen orientation, and try to put it with its lower left corner in the leftmost free cell in the lowest currently incomplete row of the n X k rectangle. The (n,k)-tiling difficulty level of the set of pieces is the inverse of the probability that this process results in a complete tiling of the n X k rectangle. It equals C(m; m_1, ..., m_j)*2^r/x, where m_1, ..., m_j are the number of pieces of different shapes, m is the total number of pieces, C(m; m_1, ..., m_j) is the multinomial coefficient, r is the number of nonsquare pieces, and x is the number of ways in which an n X k rectangle can be tiled with the set of pieces (where rotations and reflections are considered distinct).
The minimum possible difficulty level is 1, for example for tiling the n X k rectangle with 1 X 1 pieces only.
The difficulty level as defined here is a very crude measure of the perceived difficulty of a tiling puzzle. For example, it does not take into consideration whether a certain piece can fit in the rectangle in only one orientation. This means that the "puzzle" to put a 2 X 1 piece in a 2 X 1 rectangle, for example, has difficulty level 2, the "difficulty" being to orient the piece in the right way.
The only rectangle sizes, currently known to the author, for which the maximum difficulty level is not an integer, are 7 X 2 (difficulty level 160/3) and 13 X 2 (difficulty level 8960/3).

Examples

			Triangle begins:
  n\k|  1   2    3     4      5      6  7  8
  ---+--------------------------------------
  1  |  1
  2  |  2   2
  3  |  2   6    8
  4  |  4  12   48    80
  5  |  4  16   80   480   1152
  6  |  8  48  480  2880  20160  53760
  7  |  8  53  960 13440 107520      ?  ?
  8  | 16 120 1920 53760 483840      ?  ?  ?
For (n,k) = (7,3), the set consisting of three 1 X 2 pieces, one 1 X 5 piece, one 1 X 6 piece, and one 2 X 2 piece gives the maximum difficulty level, which equals C(6;3,1,1,1)*2^5/4 = 120*32/4 = 960 = T(7,3). The 4 in the denominator is the number of ways in which this set of pieces can tile the 7 X 3 rectangle (all 4 are equivalent under rotations and reflections).
The following table shows all sets of pieces that give the maximum (n,k)-tiling difficulty level up to (n,k) = (7,5).
      \               Number of pieces of size
  (n,k)\  1X1 | 1X2 | 1X3 | 1X4 | 1X5 | 1X6 | 1X7 | 2X2 | 2X3
  ------+-----+-----+-----+-----+-----+-----+-----+-----+----
  (1,1) |  1  |  0  |  0  |  0  |  0  |  0  |  0  |  0  |  0
  (2,1) |  0  |  1  |  0  |  0  |  0  |  0  |  0  |  0  |  0
  (2,2) |  0  |  2  |  0  |  0  |  0  |  0  |  0  |  0  |  0
  (3,1) |  1  |  1  |  0  |  0  |  0  |  0  |  0  |  0  |  0
  (3,1) |  0  |  0  |  1  |  0  |  0  |  0  |  0  |  0  |  0
  (3,2) |  1  |  1  |  1  |  0  |  0  |  0  |  0  |  0  |  0
  (3,3) |  1  |  1  |  2  |  0  |  0  |  0  |  0  |  0  |  0
  (4,1) |  0  |  2  |  0  |  0  |  0  |  0  |  0  |  0  |  0
  (4,2) |  0  |  2  |  0  |  1  |  0  |  0  |  0  |  0  |  0
  (4,2) |  0  |  1  |  2  |  0  |  0  |  0  |  0  |  0  |  0
  (4,3) |  0  |  1  |  2  |  1  |  0  |  0  |  0  |  0  |  0
  (4,4) |  0  |  1  |  2  |  2  |  0  |  0  |  0  |  0  |  0
  (5,1) |  1  |  2  |  0  |  0  |  0  |  0  |  0  |  0  |  0
  (5,1) |  0  |  1  |  1  |  0  |  0  |  0  |  0  |  0  |  0
  (5,2) |  1  |  2  |  0  |  0  |  1  |  0  |  0  |  0  |  0
  (5,2) |  0  |  3  |  0  |  1  |  0  |  0  |  0  |  0  |  0
  (5,3) |  0  |  3  |  0  |  1  |  1  |  0  |  0  |  0  |  0
  (5,3) |  0  |  1  |  3  |  1  |  0  |  0  |  0  |  0  |  0
  (5,4) |  0  |  1  |  3  |  1  |  1  |  0  |  0  |  0  |  0
  (5,5) |  1  |  0  |  8  |  0  |  0  |  0  |  0  |  0  |  0
  (6,1) |  0  |  3  |  0  |  0  |  0  |  0  |  0  |  0  |  0
  (6,2) |  0  |  1  |  2  |  1  |  0  |  0  |  0  |  0  |  0
  (6,3) |  0  |  1  |  1  |  1  |  1  |  0  |  0  |  1  |  0
  (6,4) |  0  |  1  |  1  |  1  |  1  |  1  |  0  |  1  |  0
  (6,4) |  0  |  0  |  2  |  2  |  2  |  0  |  0  |  0  |  0
  (6,5) |  0  |  0  |  2  |  2  |  2  |  1  |  0  |  0  |  0
  (6,6) |  0  |  0  |  2  |  2  |  2  |  2  |  0  |  0  |  0
  (7,1) |  1  |  3  |  0  |  0  |  0  |  0  |  0  |  0  |  0
  (7,1) |  0  |  2  |  1  |  0  |  0  |  0  |  0  |  0  |  0
  (7,2) |  0  |  1  |  4  |  0  |  0  |  0  |  0  |  0  |  0
  (7,3) |  0  |  3  |  0  |  0  |  1  |  1  |  0  |  1  |  0
  (7,3) |  0  |  1  |  1  |  1  |  0  |  1  |  0  |  0  |  1
  (7,4) |  0  |  3  |  0  |  0  |  2  |  1  |  0  |  0  |  1
  (7,4) |  0  |  0  |  3  |  2  |  1  |  1  |  0  |  0  |  0
  (7,5) |  0  |  3  |  0  |  0  |  2  |  1  |  1  |  0  |  1
  (7,5) |  0  |  0  |  3  |  2  |  1  |  1  |  1  |  0  |  0
		

Crossrefs

Main diagonal: A361425.
Columns: A016116 (k = 1), A361426 (k = 2), A361427 (k = 3), A361428 (k = 4).

Formula

T(n,1) = A016116(n).

A360998 Triangle read by rows: T(n,k) is the number of tilings of an n X k rectangle by integer-sided rectangular pieces that cannot be rearranged to produce a different tiling of the rectangle (including rotations and reflections of the original tiling), 1 <= k <= n.

Original entry on oeis.org

1, 2, 2, 2, 3, 2, 3, 4, 4, 3, 2, 3, 3, 4, 2, 4, 6, 5, 7, 5, 4
Offset: 1

Views

Author

Pontus von Brömssen, Feb 28 2023

Keywords

Comments

It seems that each solution consists of n*k/(r*s) copies of an r X s piece (arranged in a simple grid, all pieces oriented in the same way), where r is a divisor of n, s is a divisor of k, and either r = s or r is not a divisor of k or s is not a divisor of n. If this is true, T(n,k) <= d(n)*d(k) - d(m)*(d(m)-1), where d = A000005 is the divisor count function and m = gcd(n,k). Equality does not always hold; for (n,k) = (3,2), for example, (r,s) = (1,2) satisfies the condition, but three 1 X 2 pieces can tile the 3 X 2 rectangle in more than one way.
Is d(n)*d(k) - T(n,k) eventually periodic in n for each k?

Examples

			Triangle begins:
  n\k|  1  2  3  4  5  6
  ---+------------------
  1  |  1
  2  |  2  2
  3  |  2  3  2
  4  |  3  4  4  3
  5  |  2  3  3  4  2
  6  |  4  6  5  7  5  4
The T(4,3) = 4 nonrearrangeable tilings of the 4 X 3 rectangle are:
  +---+---+---+   +---+---+---+   +---+---+---+   +---+---+---+
  |           |   |           |   |   |   |   |   |   |   |   |
  +           +   +           +   +   +   +   +   +---+---+---+
  |           |   |           |   |   |   |   |   |   |   |   |
  +           +   +---+---+---+   +   +   +   +   +---+---+---+
  |           |   |           |   |   |   |   |   |   |   |   |
  +           +   +           +   +   +   +   +   +---+---+---+
  |           |   |           |   |   |   |   |   |   |   |   |
  +---+---+---+   +---+---+---+   +---+---+---+   +---+---+---+
		

Crossrefs

Columns: A000005 (k = 1), A360999 (k = 2), A361000 (k = 3).

Formula

T(n,1) = d(n) = A000005(n).
T(n,2) = A360999(n) = 2*d(n) - 1 - [n even] for n >= 2.
T(n,3) = A361000(n) = 2*d(n) - A083039(n) for n >= 3.
It appears that T(n,4) = 3*d(n) - 2 - 2*[n even] - [n divisible by 3] - 2*[n divisible by 4] for n >= 4.
It appears that T(n,n) = d(n). (It is easy to see that T(n,n) >= d(n).)

A361523 Triangle read by rows: T(n,k) is the number of ways of dividing an n X k rectangle into integer-sided rectangles, up to rotations and reflections.

Original entry on oeis.org

1, 1, 1, 1, 2, 4, 1, 3, 17, 54, 1, 6, 61, 892, 9235, 1, 10, 220, 8159, 406653, 10538496
Offset: 0

Views

Author

Pontus von Brömssen, Mar 15 2023

Keywords

Examples

			Triangle begins:
  n\k| 0  1   2    3      4        5
  ---+------------------------------
  0  | 1
  1  | 1  1
  2  | 1  2   4
  3  | 1  3  17   54
  4  | 1  6  61  892   9235
  5  | 1 10 220 8159 406653 10538496
The 3 X 2 rectangle can be divided in T(3,2) = 17 inequivalent ways:
  +---+---+   +---+---+   +---+---+   +---+---+   +---+---+   +---+---+
  |       |   |       |   |   |   |   |   |   |   |   |   |   |   |   |
  +       +   +---+---+   +---+---+   +   +   +   +   +---+   +   +---+
  |       |   |       |   |       |   |   |   |   |   |   |   |   |   |
  +       +   +       +   +       +   +   +   +   +   +   +   +   +---+
  |       |   |       |   |       |   |   |   |   |   |   |   |   |   |
  +---+---+   +---+---+   +---+---+   +---+---+   +---+---+   +---+---+
.
  +---+---+   +---+---+   +---+---+   +---+---+   +---+---+   +---+---+
  |       |   |   |   |   |   |   |   |   |   |   |       |   |   |   |
  +---+---+   +   +   +   +---+---+   +   +---+   +---+---+   +---+---+
  |       |   |   |   |   |       |   |   |   |   |   |   |   |   |   |
  +---+---+   +---+---+   +---+---+   +---+---+   +---+---+   +   +   +
  |       |   |       |   |       |   |       |   |       |   |   |   |
  +---+---+   +---+---+   +---+---+   +---+---+   +---+---+   +---+---+
.
  +---+---+   +---+---+   +---+---+   +---+---+   +---+---+
  |   |   |   |   |   |   |   |   |   |   |   |   |   |   |
  +---+   +   +---+---+   +---+---+   +---+---+   +---+---+
  |   |   |   |   |   |   |   |   |   |       |   |   |   |
  +   +---+   +---+---+   +   +---+   +---+---+   +---+---+
  |   |   |   |       |   |   |   |   |   |   |   |   |   |
  +---+---+   +---+---+   +---+---+   +---+---+   +---+---+
		

Crossrefs

Main diagonal: A361524.
Columns: A000012 (k = 0), A005418 (k = 1), A347825 (k = 2; with an exception for n = 2), A361525 (k = 3), A361526 (k = 4).
Cf. A116694 (rotations and reflections are considered distinct), A227690 (square pieces), A360629.

Formula

T(n,k) >= A116694(n,k)/4 if n != k.
T(n,n) >= A116694(n,n)/8.

A360451 Triangle read by rows: T(n,k) = number of partitions of an n X k rectangle into one or more integer-sided rectangles, 1 <= k <= n = 1, 2, 3, ...

Original entry on oeis.org

1, 2, 6, 3, 14, 50, 5, 34, 179, 892, 7, 72, 548, 3765, 21225, 11, 157, 1651, 14961, 108798, 700212, 15, 311, 4485, 53196, 491235, 3903733
Offset: 1

Views

Author

M. F. Hasler, Feb 09 2023

Keywords

Comments

Partitions are considered as ordered lists or multisets of rectangles or pairs (height, width). They are not counted with multiplicity in case there are different "arrangements" of the rectangles yielding the same "big" rectangle.
For example, for (n,k) = (3,1) (rectangle of height 3 and width 1) we have the A000041(3) = 3 partitions [(3,1)] and [(2,1), (1,1)] (2 X 1 rectangle above a 1 X 1 square) and [(1,1), (1,1), (1,1)]. The partition [(1,1), (2,1)] (1 X 1 square above the 2 X 1 rectangle) does not count as distinct.

Examples

			Triangle begins:
  n\k|  1   2    3     4      5       6  7
  ---+------------------------------------
  1  |  1
  2  |  2   6
  3  |  3  14   50
  4  |  5  34  179   892
  5  |  7  72  548  3765  21225
  6  | 11 157 1651 14961 108798  700212
  7  | 15 311 4485 53196 491235 3903733  ?
For n = k = 2, we have the following six partitions of the 2 X 2 square:
  { [ (2,2) ], [ (2,1), (2,1) ], [ (2,1), (1,1), (1,1) ], [ (1,2), (1,2) ],
    [ (1,2), (1,1), (1,1) ], [ (1,1), (1,1), (1,1), (1,1) ] }.
They can be represented graphically as follows:
     AA   AB   AB   AA   AA   AB
     AA   AB   AC   BB   BC   CD
where in each figure a given letter corresponds to a given rectangular part.
For n = 3, k = 2, we have the fourteen partitions { [(3,2)], [(3,1), (3,1)],
  [(3,1), (2,1), (1,1)], [(3,1), (1,1), (1,1), (1,1)], [(2,2), (1,2)],
  [(2,2), (1,1), (1,1)], [(2,1), (2,1), (1,2)], [(2,1), (2,1), (1,1), (1,1)],
  [(2,1), (1,2), (1,1), (1,1)], [(2,1), (1,1), (1,1), (1,1), (1,1)],
  [(1,2), (1,2), (1,2)], [(1,2), (1,1), (1,1), (1,1), (1,1)],
  [(1,2), (1,2), (1,1), (1,1)], [(1,1), (1,1), (1,1), (1,1), (1,1), (1,1)] },
        AA   AB   AB   AB   AA   AA   AB   AB   AC   AC   AA   AA   AA   AB
  i.e.: AA   AB   AB   AC   AA   AA   AB   AB   AD   AD   BB   BB   BC   CD .
        AA   AB   AC   AD   BB   BC   CC   CD   BB   BE   CC   CD   DE   EF
For n = k = 3, we have 50 distinct partitions. Only one of them, namely
                                                          AAB
  [(2,1), (2,1), (1,2), (1,2), (1,1)]  corresponding to:  DEB
                                                          DCC
  cannot be obtained by repeatedly slicing the full square, and subsequently the resulting smaller rectangles, in two rectangular parts at each step.
  Note that the arrangement: ABC
                             ABD  which also cannot be obtained in that way,
  ABD                        AED  corresponds to the equivalent partition:
  ABD , i.e., the multiset [(3,1), (2,1), (2,1), (1,1), (1,1)],
  AEC   which can be obtained by subsequent "slicing in two rectangles".
		

Crossrefs

Cf. A000041, A116694, A224697, A360629 (pieces are free to rotate by 90 degrees).

Programs

  • PARI
    A360451(n,k) = if(min(n,k)<3 || n+k<7, #Part(k,n), error("Not yet implemented"))
    PartM = Map(); ROT(S) = if(type(S)=="t_INT", [1,10]*divrem(S,10), apply(ROT, S))
    Part(a,b) = { if ( mapisdefined(PartM, [a,b]), mapget(PartM, [a,b]),
      a == 1, [[10+x | x <- P ] | P <- partitions(b) ],
      b == 1, [[x*10+1 | x <- P ] | P <- partitions(a) ],
      a > b, ROT(Part(b,a)),  my(S = [[a*10+b]],
        U(x,y,a,b, S, B = Part(x,y)) = foreach(Part(a,b), P,
          foreach(B, Q, S = setunion([vecsort(concat(P,Q))], S) )); S);
      for(x=1,a\2, S = U(x,b, a-x,b, S)); for(x=1,b\2, S = U(a,x, a,b-x, S));
      a==3 && S=setunion(S, [[11,12,12,21,21]]);
      mapput(PartM, [a,b], S); S)}

Formula

T(n,1) = A000041(n), the partition numbers.

Extensions

T(3,3) corrected following a remark by Pontus von Brömssen. - M. F. Hasler, Feb 10 2023
Last two terms of 4th row, 5th row, and first five terms of 6th row from Pontus von Brömssen, Feb 11 2023
Last term of 6th row from Pontus von Brömssen, Feb 13 2023
First five terms of 7th row from Pontus von Brömssen, Feb 16 2023
T(7,6) added by Robin Visser, May 09 2025
Showing 1-10 of 10 results.