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

A204259 Matrix given by f(i,j) = 1 + [(2i+j) mod 3], by antidiagonals.

Original entry on oeis.org

1, 2, 3, 3, 1, 2, 1, 2, 3, 1, 2, 3, 1, 2, 3, 3, 1, 2, 3, 1, 2, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 3, 1, 2, 3, 1, 2, 3, 1, 2, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3
Offset: 1

Views

Author

Clark Kimberling, Jan 14 2012

Keywords

Comments

This data is used to specify the height of hexagonally packed cylinders in a triangle with open boundaries. Three cylinders that touch each other define a "triple" and water can be retained between these cylinders. A257594, A258445 and A259052 give a classification for such spaces. The links below ignore the inter-cylinder space retention and only consider the water retention above solid cylinders. - Craig Knecht, Jul 16 2015

Examples

			Northwest corner:
1 2 3 1 2 3 1 2
3 1 2 3 1 2 3 1
2 3 1 2 3 1 2 3
1 2 3 1 2 3 1 2
3 1 2 3 1 2 3 1
2 3 1 2 3 1 2 3
		

Crossrefs

Cf. A204260.

Programs

  • Mathematica
    f[i_, j_] := 1 + Mod[2 i + j, 3];
    m[n_] := Table[f[i, j], {i, 1, n}, {j, 1, n}]
    TableForm[m[8]] (* 8x8 principal submatrix *)
    Flatten[Table[f[i, n + 1 - i],
      {n, 1, 12}, {i, 1, n}]]   (* A204259 *)
    Permanent[m_] :=
      With[{a = Array[x, Length[m]]},
       Coefficient[Times @@ (m.a), Times @@ a]];
    Table[Permanent[m[n]], {n, 1, 20}]     (* A204258 *)

A204257 Matrix given by f(i,j)=1+[(i+2j) mod 3], by antidiagonals.

Original entry on oeis.org

1, 3, 2, 2, 1, 3, 1, 3, 2, 1, 3, 2, 1, 3, 2, 2, 1, 3, 2, 1, 3, 1, 3, 2, 1, 3, 2, 1, 3, 2, 1, 3, 2, 1, 3, 2, 2, 1, 3, 2, 1, 3, 2, 1, 3, 1, 3, 2, 1, 3, 2, 1, 3, 2, 1, 3, 2, 1, 3, 2, 1, 3, 2, 1, 3, 2, 2, 1, 3, 2, 1, 3, 2, 1, 3, 2, 1, 3, 1, 3, 2, 1, 3, 2, 1, 3, 2, 1, 3, 2, 1, 3, 2, 1, 3, 2, 1, 3, 2
Offset: 1

Views

Author

Clark Kimberling, Jan 14 2012

Keywords

Examples

			Northwest corner:
1 3 2 1 3 2 1 3
2 1 3 2 1 3 2 1
3 2 1 3 2 1 3 2
1 3 2 1 3 2 1 3
2 1 3 2 1 3 2 1
3 2 1 3 2 1 3 2
		

Crossrefs

Cf. A204258.

Programs

  • Mathematica
    f[i_, j_] := 1 + Mod[i + 2 j, 3];
    m[n_] := Table[f[i, j], {i, 1, n}, {j, 1, n}]
    TableForm[m[8]] (* 8x8 principal submatrix *)
    Flatten[Table[f[i, n + 1 - i],
      {n, 1, 12}, {i, 1, n}]]  (* A204257 *)
    Permanent[m_] :=
      With[{a = Array[x, Length[m]]},
       Coefficient[Times @@ (m.a), Times @@ a]];
    Table[Permanent[m[n]], {n, 1, 20}]  (* A204258 *)
Showing 1-2 of 2 results.