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-4 of 4 results.

A337415 a(n) is the number of ways to tile a size n triangle in the triangular grid with n n-cell polyiamonds, up to rotation and reflection of the triangle.

Original entry on oeis.org

1, 0, 1, 3, 11, 314
Offset: 1

Views

Author

Peter Kagey and Alec Jones, Aug 26 2020

Keywords

Comments

The initial values are computed via the program from Arnauld Chevallier in the Code Golf Stack Exchange link.

Examples

			An example of the a(4) = 3 essentially different ways of tiling a size 4 triangle with 4-iamonds can be found via the Code Golf Stack Exchange link.
		

Crossrefs

A328020 is the analog for square on the square grid.
Cf. A000577.

A347581 The Barnyard sequence: a(n) is the minimum number of unit length line segments required to enclose areas of 1 through n on a square grid.

Original entry on oeis.org

4, 9, 14, 20, 26, 33, 40, 47, 55, 63
Offset: 1

Views

Author

Scott R. Shannon, Oct 05 2021

Keywords

Comments

The areas of size 1 through n can be created in any order and position, the only requirement being the final number of line segments used to enclose all areas is minimized. It is likely the perimeter of each area of size k, 1 <= k <= n, is the minimum possible for an area of size k, although this is unknown.
See A348149 for the total segments when the number of segments at each step is minimized.

Examples

			Example areas using the minimum number of line segments from n = 1 through n = 10 are:
.
   __
  |__|  a(1) = 4
   __ __ __
  |__|__ __|  a(2) = 9
   __ __ __
  |__|__ __|  a(3) = 14
  |__ __ __|
   __ __ __
  |__|__ __|
  |__ __ __|  a(4) = 20
  |     |
  |__ __|
   __ __ __
  |__|__ __|__
  |__ __ __|  |  a(5) = 26
  |     |     |
  |__ __|__ __|
   __ __ __
  |__|__ __|__ __ __
  |__ __ __|  |     |  a(6) = 33
  |     |     |     |
  |__ __|__ __|__ __|
         __ __ __ __
   __ __|__         |
  |__|__ __|__ __ __|
  |__ __ __|  |     |  a(7) = 40
  |     |     |     |
  |__ __|__ __|__ __|
   __ __ __ __ __ __
  |           |     |
  |__ __ __ __|     |
  |        |__ __ __|   a(8) = 47
  |__ __ __|__      |
  |     |  |  |__ __|
  |__ __|__|__ __|__|
   __ __ __ __ __ __ __
  |        |           |
  |        |__ __ __ __|
  |__ __ __|__         |
     |__|__ __|__ __ __|  a(9) = 55
     |__ __ __|  |     |
     |     |     |     |
     |__ __|__ __|__ __|
   __ __ __ __ __ __ __ __
  |         __|__   |     |
  |__ __ __|     |__|__   |
  |        |     |     |__|
  |        |     |     |  |   a(10) = 63
  |__ __ __|__ __|__ __|__|
  |              |     |__|
  |__ __ __ __ __|__ __|
.
		

Crossrefs

A348149 Variation of the Barnyard sequence A347581: a(n) is the minimum number of unit-length line segments required to enclose areas of 1 through n on a square grid when the number of segments is minimized as each area of incrementing size, starting at 1, is added.

Original entry on oeis.org

4, 9, 14, 20, 26, 33, 40, 48, 55, 64
Offset: 1

Views

Author

Scott R. Shannon, Oct 03 2021

Keywords

Comments

In this variation of A347581 the areas must be added in the order of their sizes, from 1 through n, and as each area is added the minimum possible number of line segments must be used. This forces, for example, the first three areas of size 1, 2 and 3 to form a 2 X 3 block and thus they can never appear in any other arrangement in the final area. This is also true for n up to at least 9 due to the restriction of maximizing the usable edges for the next area. This leads to a(8) and a(10) containing one more line segment than the optimal solutions of A347581.

Examples

			Examples of n = 1 to n = 10 are given below. Note that for a(3) the configuration could also consist of the area of size 1 sitting above the area of size 2 with the area of size 3 forming an L-shaped block creating the minimal 2 X 3 block.
.
   __
  |__|  a(1) = 4
   __ __ __
  |__|__ __|  a(2) = 9
   __ __ __
  |__|__ __|  a(3) = 14
  |__ __ __|
   __ __ __
  |__|__ __|
  |__ __ __|  a(4) = 20
  |     |
  |__ __|
   __ __ __
  |__|__ __|__
  |__ __ __|  |  a(5) = 26
  |     |     |
  |__ __|__ __|
   __ __ __
  |__|__ __|__ __ __
  |__ __ __|  |     |  a(6) = 33
  |     |     |     |
  |__ __|__ __|__ __|
         __ __ __ __
   __ __|__         |
  |__|__ __|__ __ __|
  |__ __ __|  |     |  a(7) = 40
  |     |     |     |
  |__ __|__ __|__ __|
         __ __ __ __
        |           |
        |__ __ __ __|
   __ __|__         |
  |__|__ __|__ __ __|  a(8) = 48
  |__ __ __|  |     |
  |     |     |     |
  |__ __|__ __|__ __|
   __ __ __ __ __ __ __
  |        |           |
  |        |__ __ __ __|
  |__ __ __|__         |
     |__|__ __|__ __ __|  a(9) = 55
     |__ __ __|  |     |
     |     |     |     |
     |__ __|__ __|__ __|
      __ __ __ __ __ __ __
     |        |           |
     |        |__ __ __ __|
   __|__ __ __|__         |
  |     |__|__ __|__ __ __|  a(10) = 64
  |     |__ __ __|  |     |
  |     |     |     |     |
  |     |__ __|__ __|__ __|
  |__ __|
.
		

Crossrefs

A363381 a(n) is the number of distinct n-cell patterns that tile an n X n square.

Original entry on oeis.org

1, 2, 1, 60, 1, 102, 1, 62714
Offset: 1

Views

Author

Thomas Young, May 30 2023

Keywords

Comments

Consider n unit squares contained within an n X n square. The n unit squares are an n-cell pattern of the n X n square if, when copied n-1 times, they can, with various rigid transformations, be combined to tessellate the n X n square.
Put another way:
Consider, for example, for n = 4, a transparency with an outline of a 4 X 4 square filled by 16 unit squares. Any 4 unit squares are painted the same color. Those four squares are a potential n-cell pattern of the 4 X 4 square. Three copies of the transparency are made with only the color of the 4 squares being different. If a person can stack the transparencies in such a way that they fill the 4 X 4 square, then the n-cell pattern is acceptable.
Put another way:
n unit squares from an n X n square are painted a color. Those n unit squares are an n-cell pattern. If n-1 copies of the pattern can be painted (each a different color) and together they fill the n X n square, then the n unit squares form an acceptable n-cell pattern.
Conjecture by Andrew Young: For an n X n square, where n is an odd prime, there is only one n-cell pattern.
Conjecture by Andrew Young and Thomas Young: An odd integer n>=3 is prime iff there exists only one n-cell pattern for an n X n square.
For any number n, there is always the 1 X n pattern that tiles the n X n square.
For composite numbers n = f1*f2, 1 < f1 <= f2 < n, there is always an additional f1 X f2 pattern. For example, a 14 X 14 square can be tiled using fourteen 1 X 14 rectangles or fourteen 2 X 7 rectangles; a 15 X 15 square can be tiled using fifteen 1 X 15 rectangles or fifteen 3 X 5 rectangles; a 9 X 9 square can be tiled using nine 1 X 9 rectangles or nine 3 X 3 squares (as in Sudoku!).
The second conjecture is a Corollary of the first: If n = p*q is not prime, then there is always a second tiling using rectangles, as explained above. Since the second conjecture implies the first, the two conjectures are actually equivalent. - M. F. Hasler, Jun 15 2025

Examples

			For n = 1, there is one 1-cell pattern because there is only one unit square to paint.
For n = 2, there are two 2-cell patterns:
   +---+---+     +---+---+         +---+
   | 1 | 2 |     | 1 | 2 |         | 1 |
   +---+---+     +---+---+   and   +---+---+
   | 3 | 4 |                           | 4 |
   +---+---+                           +---+
For n = 3, there is one 3-cell pattern:
   +---+---+---+
   | 1 | 2 | 3 |
   +---+---+---+
   | 4 | 5 | 6 |     It is   +---+---+---+
   +---+---+---+             | 1 | 2 | 3 |
   | 7 | 8 | 9 |             +---+---+---+
   +---+---+---+
For n = 4, there are sixty 4-cell patterns:
   +---+---+---+---+
   | 1 | 2 | 3 | 4 |   One is  +---+---+---+---+
   +---+---+---+---+           | 1 | 2 | 3 | 4 |
   | 5 | 6 | 7 | 8 |           +---+---+---+---+
   +---+---+---+---+
   | 9 |10 |11 |12 |     which is equivalent to:
   +---+---+---+---+                       +---+
   |13 |14 |15 |16 |                       | 1 |
   +---+---+---+---+                       +---+
                                           | 5 |
                                           +---+
and therefore these two are not            | 9 |
counted as distinct patterns.              +---+
                                           |13 |
                                           +---+
Another 4-cell pattern for a 4 X 4 square
   +---+---+---+---+
   | x | x | y | y |
   +---+---+---+---+   is
   | z | y | x | a |          +---+---+
   +---+---+---+---+          | x | x |
   | y | z | a | x |          +---+---+---+
   +---+---+---+---+                  | x |
   | a | a | z | z |                  +---+---+
   +---+---+---+---+                      | x |
                                          +---+
     +---+---+
     | x | x |
     +---+---+---+       is equivalent to
             | x |
             +---+---+
                 | x |
                 +---+
           +---+---+  +---+                          +---+
           | y | y |  | z |                          | a |
       +---+---+---+  +---+---+                  +---+---+
       | y |              | z |                  | a |
   +---+---+              +---+---+---+  +---+---+---+
   | y |                      | z | z |  | a | a |
   +---+                      +---+---+  +---+---+
because the shapes can be created through reflection, rotation, or translation.
Therefore, they are counted as one pattern.
For n = 5, there is one 5-cell pattern.
		

Crossrefs

Formula

a(n) >= 2 if n is composite.
For n > 1, a(n) = 1 iff n is an odd prime (conjectured: cf comments).

Extensions

a(7)-a(8) from Andrew Howroyd, Jun 04 2023
Minor edits by M. F. Hasler, Jun 15 2025
Showing 1-4 of 4 results.