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 21 results. Next

A246559 List of one-sided polyominoes in binary coding, ordered by number of bits, then value of the binary code. Can be read as irregular table with row lengths A000988.

Original entry on oeis.org

0, 1, 3, 7, 11, 15, 23, 27, 30, 39, 54, 75, 31, 47, 55, 62, 79, 91, 94, 143, 181, 182, 188, 203, 286, 314, 406, 551, 566, 1099, 63, 95, 111, 126, 159, 175, 183, 189, 190, 207, 219, 221, 222, 252, 287, 303, 315, 318, 347, 350, 378, 407, 413, 476, 504
Offset: 1

Views

Author

M. F. Hasler, Aug 29 2014

Keywords

Comments

The binary coding (as suggested in a post to the SeqFan list by F. T. Adams-Watters) is obtained by summing the powers of 2 corresponding to the numbers covered by the polyomino, when the points of the quarter-plane are numbered by antidiagonals, and the animal is pushed to both borders as to obtain the smallest possible value. See example for further details.
The smallest value for an n-omino is the sum 2^0+...+2^(n-1) = 2^n-1 = A000225(n), and the largest value, obtained for the straight n-omino (in x direction), is 2^0+2^1+2^3+...+2^A000217(n-1) = A181388(n-1).

Examples

			Number the points of the first quadrant as follows:
...
9 ...
5 8 ...
2 4 7 ...
0 1 3 6 10 ...
The "empty" 0-omino is represented by the empty sum equal to 0 = a(1).
The monomino is represented by a square on 0, and the binary code 2^0 = 1 = a(2).
The dominos ".." and ":" would be represented by 2^0+2^1 = 3 and 2^0+2^2 = 5. Since they are equivalent up to rotation, only 3 = a(3) is listed.
The A000988(3) = 2 one-sided trominoes are represented by 2^0+2^1+2^3 = 11 (...) and 2^0+2^1+2^2 = 7 (:.). Again these values are listed in increasing size as a(4) and a(5).
		

Crossrefs

See A246521 and A246533 for enumeration of free and fixed polyominoes.

Programs

  • PARI
    rot(P,T=[0,1;-1,0])=P=Set(apply(x->x*T,P));apply(x->x-[P[1][1],0],P)
    onesided(L,N=apply(p2n,L))={ local(L=L, R=apply(P->setsearch(L,rot(P)),L), cleanup(i)=my(m=N[i]); while(m!=N[i=R[i]], if( m>N[i], m=N[i], L[i]=0))); for(i=1,#L, L[i] && cleanup(i));if(#L>1,select(P->P,L),L)}
    for(i=0,5,print(Set(apply(p2n,onesided(L=if(i,grow(L),[[]])))))) \\ see A246533 for grow() and p2n()

A000105 Number of free polyominoes (or square animals) with n cells.

Original entry on oeis.org

1, 1, 1, 2, 5, 12, 35, 108, 369, 1285, 4655, 17073, 63600, 238591, 901971, 3426576, 13079255, 50107909, 192622052, 742624232, 2870671950, 11123060678, 43191857688, 168047007728, 654999700403, 2557227044764, 9999088822075, 39153010938487, 153511100594603
Offset: 0

Views

Author

Keywords

Comments

For n>0, a(n) + A030228(n) = A000988(n) because the number of free polyominoes plus the number of polyominoes lacking bilateral symmetry equals the number of one-sided polyominoes. - Graeme McRae, Jan 05 2006
The possible symmetry groups of a (nonempty) polyomino are the 10 subgroups of the dihedral group D_8 of order 8: D_8, 1, Z_2 (five times), Z_4, (Z_2)^2 (twice). - Benoit Jubin, Dec 30 2008
Names for first few polyominoes: monomino, domino, tromino, tetromino, pentomino, hexomino, heptomino, octomino, enneomino, decomino, hendecomino, dodecomino, ...
Limit_{n->oo} a(n)^(1/n) = mu with 3.98 < mu < 4.64 (quoted by Castiglione et al., with a reference to Barequet et al., 2006, for the lower bound). The upper bound is due to Klarner and Rivest, 1973. By Madras, 1999, it is now known that this limit, also known as Klarner's constant, is equal to the limit growth rate lim_{n->oo} a(n+1)/a(n).
Polyominoes are worth exploring in the elementary school classroom. Students in grade 2 can reproduce the first 6 terms. Grade 3 students can explore area and perimeter. Grade 4 students can talk about polyomino symmetries.
The pentominoes should be singled out for special attention: 1) they offer a nice, manageable set that a teacher can commercially acquire without too much expense. 2) There are also deeply strategic games and perplexing puzzles that are great for all students. 3) A fraction of students will become engaged because of the beautiful solutions.
Conjecture: Almost all polyominoes are holey. In other words, A000104(n)/a(n) tends to 0 for increasing n. - John Mason, Dec 11 2021 (This is true, a consequence of Madras's 1999 pattern theorem. - Johann Peters, Jan 06 2024)

Examples

			a(0) = 1 as there is 1 empty polyomino with #cells = 0. - _Fred Lunnon_, Jun 24 2020
		

References

  • S. W. Golomb, Polyominoes, Appendix D, p. 152; Princeton Univ. Pr. NJ 1994
  • J. E. Goodman and J. O'Rourke, editors, Handbook of Discrete and Computational Geometry, CRC Press, 1997, p. 229.
  • D. A. Klarner, The Mathematical Gardner, p. 252 Wadsworth Int. CA 1981
  • W. F. Lunnon, Counting polyominoes, pp. 347-372 of A. O. L. Atkin and B. J. Birch, editors, Computers in Number Theory. Academic Press, NY, 1971.
  • W. F. Lunnon, Counting hexagonal and triangular polyominoes, pp. 87-100 of R. C. Read, editor, Graph Theory and Computing. Academic Press, NY, 1972.
  • George E. Martin, Polyominoes - A Guide to Puzzles and Problems in Tiling, The Mathematical Association of America, 1996
  • Ed Pegg, Jr., Polyform puzzles, in Tribute to a Mathemagician, Peters, 2005, pp. 119-125.
  • R. C. Read, Some applications of computers in graph theory, in L. W. Beineke and R. J. Wilson, editors, Selected Topics in Graph Theory, Academic Press, NY, 1978, pp. 417-444.
  • N. J. A. Sloane, A Handbook of Integer Sequences, Academic Press, 1973 (includes this sequence).
  • N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).

Crossrefs

Sequences classifying polyominoes by symmetry group: A006746, A006747, A006748, A006749, A056877, A056878, A142886, A144553, A144554.
Cf. A001168 (not reduced by D_8 symmetry), A000104 (no holes), A054359, A054360, A001419, A000988, A030228 (chiral polyominoes).
See A006765 for another version.
Cf. also A000577, A000228, A103465, A210996 (bisection).
Excluding a(0), 8th and 9th row of A366766.

Programs

  • Mathematica
    (* In this program by Jaime Rangel-Mondragón, polyominoes are represented as a list of Gaussian integers. *)
    polyominoQ[p_List] := And @@ ((IntegerQ[Re[#]] && IntegerQ[Im[#]])& /@ p);
    rot[p_?polyominoQ] := I*p;
    ref[p_?polyominoQ] := (# - 2 Re[#])& /@ p;
    cyclic[p_] := Module[{i = p, ans = {p}}, While[(i = rot[i]) != p, AppendTo[ans, i]]; ans];
    dihedral[p_?polyominoQ] := Flatten[{#, ref[#]}& /@ cyclic[p], 1];
    canonical[p_?polyominoQ] := Union[(# - (Min[Re[p]] + Min[Im[p]]*I))& /@ p];
    allPieces[p_] := Union[canonical /@ dihedral[p]];
    polyominoes[1] = {{0}};
    polyominoes[n_] := polyominoes[n] = Module[{f, fig, ans = {}}, fig = ((f = #1; ({f, #1 + 1, f, #1 + I, f, #1 - 1, f, #1 - I}&) /@ f)&) /@ polyominoes[n - 1]; fig = Partition[Flatten[fig], n]; f = Select[Union[canonical /@ fig], Length[#1] == n &]; While[f != {}, ans = {ans, First[f]}; f = Complement[f, allPieces[First[f]]]]; Partition[Flatten[ans], n]];
    a[n_] := a[n] = Length[ polyominoes[n]];
    Table[Print["a(", n, ") = ", a[n]]; a[n], {n, 1, 12}] (* Jean-François Alcover, Mar 24 2015, after Jaime Rangel-Mondragón *)

Formula

a(n) = A000104(n) + A001419(n). - R. J. Mathar, Jun 15 2014
a(n) = A006749(n) + A006746(n) + A006748(n) + A006747(n) + A056877(n) + A056878(n) + A144553(n) + A142886(n). - Andrew Howroyd, Dec 04 2018
a(n) = A259087(n) + A259088(n). - R. J. Mathar, May 22 2019
a(n) = (4*A006746(n) + 4*A006748(n) + 4*A006747(n) + 6*A056877(n) + 6*A056878(n) + 6*A144553(n) + 7*A142886(n) + A001168(n))/8. - John Mason, Nov 14 2021

Extensions

Extended to n=28 by Tomás Oliveira e Silva
Link updated by William Rex Marshall, Dec 16 2009
Edited by Gill Barequet, May 24 2011
Misspelling "polyominos" corrected by Don Knuth, May 03 2016
a(29)-a(45), a(47) from Toshihiro Shirakawa
a(46) calculated using values from A001168 (I. Jensen), A006748/A056877/A056878/A144553/A142886 (Robert A. Russell) and A006746/A006747 (John Mason), Nov 14 2021

A001168 Number of fixed polyominoes with n cells.

Original entry on oeis.org

1, 1, 2, 6, 19, 63, 216, 760, 2725, 9910, 36446, 135268, 505861, 1903890, 7204874, 27394666, 104592937, 400795844, 1540820542, 5940738676, 22964779660, 88983512783, 345532572678, 1344372335524, 5239988770268, 20457802016011, 79992676367108, 313224032098244, 1228088671826973
Offset: 0

Views

Author

Keywords

Comments

Number of rookwise connected patterns of n square cells.
N. Madras proved in 1999 the existence of lim_{n->oo} a(n+1)/a(n), which is the real limit growth rate of the number of polyominoes; and hence, this limit is equal to lim_{n->oo} a(n)^{1/n}, the well-known Klarner's constant. The currently best-known lower and upper bounds on this constant are 3.9801 (Barequet et al., 2006) and 4.6496 (Klarner and Rivest, 1973), respectively. But see also Knuth (2014).

Examples

			a(0) = 1 as there is 1 empty polyomino with #cells = 0. - _Fred Lunnon_, Jun 24 2020
		

References

  • Steven R. Finch, Mathematical Constants, Cambridge, 2003, pp. 378-382.
  • J. E. Goodman and J. O'Rourke, editors, Handbook of Discrete and Computational Geometry, CRC Press, 1997, p. 229.
  • A. J. Guttmann, ed., Polygons, Polyominoes and Polycubes, Springer, 2009, p. 478. (Table 16.10 has 56 terms of this sequence.)
  • I. Jensen. Counting polyominoes: a parallel implementation for cluster computing. LNCS 2659 (2003) 203-212, ICCS 2003
  • W. F. Lunnon, Counting polyominoes, pp. 347-372 of A. O. L. Atkin and B. J. Birch, editors, Computers in Number Theory. Academic Press, NY, 1971.
  • W. F. Lunnon, Counting hexagonal and triangular polyominoes, pp. 87-100 of R. C. Read, editor, Graph Theory and Computing. Academic Press, NY, 1972.
  • N. J. A. Sloane, A Handbook of Integer Sequences, Academic Press, 1973 (includes this sequence).
  • N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).

Crossrefs

Cf. A000105, A000988, A006746, A056877, A006748, A056878, A006747, A006749, A142886, A144553, row sums of A308359, A210986 (bisection), A210987 (bisection).
A006762 is another version.
Excluding a(0), 8th and 9th row of A366767.

Programs

  • Mathematica
    See Jaime Rangel-Mondragón's article.

Formula

For asymptotics, see Knuth (2014).
a(n) = 8*A006749(n) + 4*A006746(n) + 4*A006748(n) + 4*A006747(n) + 2*A056877(n) + 2*A056878(n) + 2*A144553(n) + A142886(n); the number of fixed polyominoes is calculatable according to multiples of the numbers of the various symmetries of the polyomino. - John Mason, Sep 06 2017

Extensions

Extended to n=28 by Tomás Oliveira e Silva
Extended to n=46 by Iwan Jensen
Verified (and one more term found) by Don Knuth, Jan 09 2001
Richard C. Schroeppel communicated Jensen's calculation of the first 56 terms, Feb 21 2005
Gill Barequet commented on Madras's proof from 1999 of the limit growth rate of this sequence, and provided references to the currently best-known bounds on it, May 24 2011
Incorrect Mathematica program removed by Jean-François Alcover, Mar 24 2015
a(0) = 1 added by N. J. A. Sloane, Jun 24 2020

A195738 Triangle read by rows: DR(n,d) is the number of properly d-dimensional polyominoes with n cells, modulo translations and rotations (n >= 1, 0 <= d <= n-1).

Original entry on oeis.org

1, 0, 1, 0, 1, 1, 0, 1, 6, 3, 0, 1, 17, 17, 4, 0, 1, 59, 131, 52, 7, 0, 1, 195, 915, 709, 153, 13, 0, 1, 703, 6553, 8946, 3350, 454, 28
Offset: 1

Views

Author

N. J. A. Sloane, Sep 22 2011

Keywords

Comments

From Petros Hadjicostas, Jan 11 2019: (Start)
Table 1 (p. 366) in Lunnon (1975) contains more terms. Because the table there (in the reference) has incomplete columns, the extra terms do not appear in this triangular sequence (array).
Entry DR(n=11, d=2) in Table 1 (p. 366) must be a typo. It should not be 33890, but 33895. This was corrected by N. J. A. Sloane in 2011 in the documentation of sequence A006758. (See also sequence A000988.)
(End)
The number of oriented polyominoes (chiral pairs counted as two) here is the sum of the number of unoriented polyominoes (chiral pairs counted as one) in A049430 and the number of chiral pairs. - Robert A. Russell, May 03 2020

Examples

			Triangle begins:
n\d| 0    1    2    3    4    5    6    7
---+---------------------------------=---
1  | 1
2  | 0    1
3  | 0    1    1
4  | 0    1    6    3
5  | 0    1   17   17    4
6  | 0    1   59  131   52    7
7  | 0    1  195  915  709  153   13
8  | 0    1  703 6553 8946 3350  454   28
...
		

Crossrefs

Formula

From Robert A. Russell, May 03 2020: (Start)
For n > 1, DR(n,n-1) = A000055(n) + A045649(n).
DR(n,n-2) = A036364(n) + A036365(n).
We can add unoriented and chiral pairs for the top two diagonals. The summands have quick algorithms. (End)

Extensions

Sequence corrected by Petros Hadjicostas, Jan 11 2019 after observation by Jon E. Schoenfield

A210996 Number of free polyominoes with 2n cells.

Original entry on oeis.org

1, 1, 5, 35, 369, 4655, 63600, 901971, 13079255, 192622052, 2870671950, 43191857688, 654999700403, 9999088822075, 153511100594603, 2368347037571252, 36695016991712879, 570694242129491412, 8905339105809603405, 139377733711832678648, 2187263896664830239467, 34408176607279501779592
Offset: 0

Views

Author

Omar E. Pol, Sep 15 2012

Keywords

Comments

It appears that we can write A216492(n) < A216583(n) < A056785(n) < A056786(n) < a(n) < A210988(n) < A210986(n), if n >= 3. - Omar E. Pol, Sep 16 2012

Examples

			For n = 1 there is only one free domino. For n = 2 there are 5 free tetrominoes. For n = 3 there are 35 free hexominoes. For n = 4 there are 369 free octominoes (see link section).
		

Crossrefs

Programs

Formula

a(n) = A000105(2n).
a(n) = A213376(n) + A056785(n). - R. J. Mathar, Feb 08 2023

Extensions

More terms from John Mason, Apr 15 2023

A030227 Number of achiral polyominoes with n cells.

Original entry on oeis.org

1, 1, 1, 2, 3, 6, 10, 20, 34, 70, 121, 250, 441, 912, 1630, 3375, 6092, 12624, 22961, 47616, 87136, 180811, 332549, 690398, 1275166, 2648422, 4909364, 10199792, 18966700, 39416488, 73497642, 152777230, 285569898, 593717419, 1112188817, 2312672439, 4340728280
Offset: 0

Views

Author

Keywords

Comments

Polyominoes with n cells and at least one line of reflection symmetry. - Joshua Zucker, Mar 08 2008
This sequence can most readily be calculated by enumerating fixed polyominoes for three different axes of symmetry: 1) a line composed of the diagonals of cells, A346800, 2) a line composed of edges of cells, and 3) a line composed of lines connecting the centers of adjacent cells, A346799. For the second case, any fixed polyomino just touching the edge line is reflected on the other side, so that sequence is A001168(n/2) for even values of n and zero otherwise. These three sequences together include each achiral polyomino exactly twice. - Robert A. Russell, Aug 04 2021

Examples

			For a(4)=3, the achiral tetrominoes are a 2 X 2 square, a 1 X 4 rectangle, and a cell plus three cells adjacent to it (forming a shortened T).
		

Crossrefs

Cf. A000988 (oriented), A000105 (unoriented), A030228 (chiral).
Cf. A006746, A006748, A056877, A056878, A142886 (subcategories).

Programs

Formula

a(n) = A000105(n) - A030228(n) = 2*A000105(n) - A000988(n). - Andrew Howroyd, Dec 04 2018
a(n) = A006746(n) + A006748(n) + A056877(n) + A056878(n) + A142886(n) = A000988(n) - 2*A030228(n). - Robert A. Russell, Feb 02 2019
For odd n, a(n) = (A346799(n) + A346800(n)) / 2; for even n, a(n) = (A346799(n) + A001168(n/2) + A346800(n)) / 2. - Robert A. Russell, Aug 04 2021

Extensions

a(23)-a(36) from Andrew Howroyd, Dec 04 2018
Name edited by Robert A. Russell, Feb 03 2019
Offset changed to 0, and a(0) added by John Mason, Jan 12 2023

A030228 Number of chiral polyominoes with n cells.

Original entry on oeis.org

0, 0, 0, 0, 2, 6, 25, 88, 335, 1215, 4534, 16823, 63159, 237679, 900341, 3423201, 13073163, 50095285, 192599091, 742576616, 2870584814, 11122879867, 43191525139, 168046317330, 654998425237, 2557224396342, 9999083912711, 39153000738695, 153511081627903
Offset: 0

Views

Author

Keywords

Comments

For n>0, A000105(n) + a(n) = A000988(n) because the number of free polyominoes plus the number of polyominoes lacking bilateral symmetry equals the number of one-sided polyominoes. - Graeme McRae, Jan 05 2006
For n>0, each chiral pair is counted as one. - Robert A. Russell, Feb 23 2022

Examples

			For a(4)=2, the two chiral tetrominoes are XXX and XX .
                                           X        XX
		

Crossrefs

Cf. A000988 (oriented), A000105 (unoriented), A030227 (achiral).
Cf. A006747, A006749, A144553 (subcategories).

Programs

Formula

For n>0, a(n) = A000988(n) - A000105(n). - Graeme McRae, Jan 05 2006
a(n) = A006749(n) + A006747(n) + A144553(n). - Andrew Howroyd, Dec 04 2018
a(n) = A000105(n) - A030227(n). - Robert A. Russell, Feb 02 2019
For n>0, (A000988(n) - A030227(n)) / 2. - Robert A. Russell, Feb 23 2022

Extensions

Terms a(23) and beyond from Andrew Howroyd, Dec 04 2018
Name edited by Robert A. Russell, Feb 03 2019
a(0)=0 corrected by John Mason, Jan 12 2023

A151522 Number of 1-sided polyrhombs with n cells.

Original entry on oeis.org

1, 2, 4, 13, 35, 120, 392, 1405, 4998, 18378, 67792, 253509, 952534, 3604624, 13699554, 52304807, 200406370, 770442286, 2970401696, 11482513428, 44491881033, 172766765654, 672186650116, 2619996250930, 10228902882021, 39996345469572, 156612023354364, 614044364443761
Offset: 1

Views

Author

Ed Pegg Jr, May 13 2009

Keywords

Comments

Also counts 1-sided polyrects.

Crossrefs

Polyominoes by group of symmetries relating shapes considered the same: A000105 (all symmetries), A001168 (translations only), A000988 (rotations and translations), A056780 (horizontal and vertical reflections, rotations of order 2 and translations), A056783 (reflections in either diagonal, rotations of order 2 and translations), A151522 (rotations of order 2 and translations), A151525 (reflections in a horizontal line and translations), A182645 (reflections in a NE-SW diagonal line and translations)

Programs

Formula

a(n) = 4*A006749(n) + 2*A006746(n) + 2*A006748(n) + 4*A006747(n) + 2*A056877(n) + 2*A056878(n) + 2*A144553(n) + A142886(n). - Andrew Howroyd, Dec 04 2018

Extensions

Edited and a(13)-a(18) by Joseph Myers, Nov 24 2010
a(19)-a(28) from Andrew Howroyd, Dec 04 2018

A210988 Number of one-sided polyominoes with 2n cells.

Original entry on oeis.org

1, 7, 60, 704, 9189, 126759, 1802312, 26152418, 385221143, 5741256764, 86383382827, 1309998125640, 19998172734786, 307022182222506, 4736694001644862, 73390033697855860, 1141388483146794007, 17810678207278478530
Offset: 1

Views

Author

Omar E. Pol, Sep 16 2012

Keywords

Comments

Sequence related with polydominoes and other similar sequences. It appears that we can write A216492(n) < A216583(n) < A056785(n) < A056786(n) < A210996(n) < a(n) < A210986(n), if n >= 3. - Omar E. Pol, Sep 16 2012

Crossrefs

Bisection of A000988.

A006758 Number of strictly 2-dimensional one-sided polyominoes with n cells.

Original entry on oeis.org

0, 0, 0, 1, 6, 17, 59, 195, 703, 2499, 9188, 33895, 126758, 476269, 1802311, 6849776, 26152417, 100203193, 385221142, 1485200847, 5741256763, 22245940544, 86383382826, 336093325057, 1309998125639, 5114451441105, 19998172734785, 78306011677181, 307022182222505, 1205243866707467, 4736694001644861, 18635412907198669
Offset: 0

Views

Author

Keywords

Comments

A000988 is the main entry for this sequence.
This version counts only polyominoes that are strictly 2-dimensional - it excludes those where all the squares are in a single line. Thus a(n) = A000988(n) - 1. - John Mason, Feb 18 2021
The value of a(11) in Table 1 (p. 366) of Lunnon (1975) is incorrect, and was corrected here by N. J. A. Sloane in 2011. - Petros Hadjicostas, Jan 11 2019

References

  • N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).

Crossrefs

A000988 (= a(n) + 1) is another version. A column of A195738.

Extensions

Edited by N. J. A. Sloane, Sep 23 2011
a(0)=0 inserted by Sean A. Irvine, Jun 24 2020
Name clarified by John Mason, Feb 18 2021
Showing 1-10 of 21 results. Next