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.

A284373 Number of distinct planar connected n-polyhexes having a minimal number of vertices.

Original entry on oeis.org

1, 1, 1, 1, 1, 3, 1, 1, 4, 1, 2, 1, 2, 1, 3, 1, 6, 3, 1, 1, 1, 7, 4, 1, 4, 2, 1, 3, 2, 1, 4, 3, 1, 9, 6, 3, 1, 2, 1, 1, 10, 7, 4, 1, 5, 4, 2, 1, 4, 3, 2, 1, 6, 4, 3, 1, 12, 9, 6, 3, 1, 2, 2, 1, 1, 13, 10, 7, 4, 1, 7, 5, 4, 2, 1, 5, 4, 3, 2, 1, 7, 6, 4, 3, 1, 15, 12, 9, 6
Offset: 1

Views

Author

Luca Petrone, Mar 25 2017

Keywords

Crossrefs

Cf. A121149.

Programs

  • Mathematica
    polyhexeQ[{{_Integer, _Integer} .. }] := True
    polyhexeQ[_] := False
    rot[p_?polyhexeQ] := {-Last[#], Plus @@ #} & /@ p
    ref[p_?polyhexeQ] := {-Plus @@ #, Last[#]} & /@ p
    cyclic[p_] := Module[{i = p, ans = {p}},
      While[(i = rot[i]) != p, AppendTo[ans, i]]; ans]
    dihedral[p_?polyhexeQ] := Flatten[{#, ref[#]} & /@ cyclic[p], 1]
    canonical[p_?polyhexeQ] :=
    Sort[Map[(# - {Min[First /@ p], Min[Last /@ p]}) &, p]] allPieces[p_] := Union[canonical /@ dihedral[p]]
    polyhexes[1] := {{{0, 0}}}
    polyhexes[n_] :=
    polyhexes[n] =
      Module[{f, a, b, fig, ans = {}},
       fig = Map[(f = #; Map[({a, b} = #; {f, {a - 1, b - 1}, f, {a + 1, b - 2}, f, {a + 2, b - 1}, f, {a + 1, b + 1}, f, {a - 1, b + 2}, f, {a - 2, b + 1}}) &, f]) &, polyhexes[n - 1]];
       fig = Partition[Partition[Flatten[fig], 2], n];
       f = Union[canonical /@ Select[Union /@ fig, Length[#] == n &]];
       While[f != {},
        ans = {ans, First[f]};
        f = Complement[f, allPieces[First[f]]]];
       Partition[Partition[Flatten[ans], 2], n]]
    coord[z_] := {Re[#], Im[#]} & /@ z
    atoms[p_?polyhexeQ] := Module[{a, b, v, t, u = E^(Pi I/3)}, {{a, b} = #; v = a + b u; coord[{v, v + 1, v + 1 + u, v + 2 u, v + 2 u - 1, v + u - 1}]} & /@ p]
    A = {};
    n = 1;
    While[n <= 386,
    polyhexes[n];
    polyhexes[n] = Part[polyhexes[n], #] & /@ Ordering[Length[Tally[Flatten[atoms[#], 2]]] &  /@ polyhexes[n],     BinCounts[#, {Min[#], Min[#] + 1}][[1]] & [Length[Tally[Flatten[atoms[#], 2]]] &  /@ polyhexes[n]]];
    A = Flatten[{A, Length[#]}] & [Length[Tally[Flatten[atoms[#], 2]]] &  /@ polyhexes[n]];
    Print[A[[n]]];
    n++;]
    (* Luca Petrone, Mar 25 2017, based on a program by Jaime Rangel-Mondragón *)

A182618 Number of new grid points that are covered by the toothpicks added at n-th-stage to the toothpick spiral of A182617.

Original entry on oeis.org

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

Views

Author

Omar E. Pol, Dec 12 2010

Keywords

Comments

In the toothpick spiral the toothpicks are connected by their endpoints. See A182617 for more information.
Attempt at an explanation, R. J. Mathar, Dec 13 2010: (Start)
In the hexagonal grid, we can pick any of the hexagons as a center, and then define a ring of 6 first neighbors (hexagons adjacent to the center), then define a ring of 12 second neighbors (hexagons adjacent to any of the first ring) and so on. The current sequence describes a self-avoiding walk which starts in a spiral around the center hexagon, which covers 5 edges. The walk then takes one step to reach the rim of the first ring and travels once around this ring until it reaches a point where self-avoidance stops it. It then takes one step to reach the rim of the second ring and walks around that one, etc. Imagine that on each edge we place a toothpick if it's on the path, and interrupt counting the total number of toothpicks each time one of the hexagons has six vertices covered. The first differences of these intermediate totals define the sequence. (End)

Examples

			At stage 1, starting from a node on the hexagonal net, we place 5 toothpicks on 5 edges of the first hexagon, so a(1)= 6 because there are 6 grid points that are covered by the toothpicks.
At stage 2, starting from the last exposed endpoints, we place 4 toothpicks on the edges of the second hexagon, so a(2)=4 because there are new 4 grid points that are covered by the toothpicks.
At stage 3, starting from the last exposed endpoints we place 3 toothpicks on the edges of the third hexagon, so a(3)=3 because there are new 3 grid points covered. Etc.
If written as a triangle, begins:
6,
4,3,3,3,3,2,
3,3,2,3,2,3,2,3,2,3,2,2,
3,2,3,2,2,3,2,2,3,2,2,3,2,2,3,2,2,2,
3,2,2,3,2,2,2,3,2,2,2,3,2,2,2,3,2,2,2,3,2,2,2,2,
3,2,2,2,3,2,2,2,2,3,2,2,2,2,3,2,2,2,2,3,2,2,2,2,3,2,2,2,2,2
		

Crossrefs

Row n has A008458(n-1) terms. Row sums give A017593.

A141135 Minimal number of unit edges required to construct n regular pentagons when allowing edge-sharing.

Original entry on oeis.org

5, 9, 13, 17, 21, 24, 28, 32, 36, 39, 43, 47, 50, 54, 58, 61, 65, 69, 72, 76, 80, 83, 87, 90, 94, 98, 101, 105, 109, 112
Offset: 1

Views

Author

Ralph H. Buchholz (teufel_pi(AT)yahoo.com), Jun 08 2008

Keywords

Examples

			a(6) = 24 since the first pentagon requires 5 edges, the 2nd, 3rd, 4th and 5th pentagons require an additional 4 edges each and the 6th pentagon requires 3 edges since it can share 2 edges (if one tiles via a 6-cycle). Thus 24 = 5 + 4 + 4 + 4 + 4 + 3.
		

Crossrefs

Cf. equilateral triangles A137228, squares A078633, regular hexagons A135708.
Cf. A121149.

Formula

Conjectures from Colin Barker, Apr 05 2019: (Start)
G.f.: x*(5 + 4*x + 4*x^2 - x^3 - x^5 + x^8 - x^9) / ((1 - x)^2*(1 + x + x^2)).
a(n) = a(n-1) + a(n-3) - a(n-4) for n>10.
(End)
Conjecture: if n is a term in A121149, a(n) = a(n-1) + 3, otherwise a(n) = a(n-1) + 4. - Jinyuan Wang, Apr 05 2019

Extensions

a(21)-a(30) from Jinyuan Wang, Apr 05 2019

A121151 Minimal number of vertices in an n-polytrimino (or n-polyiamond).

Original entry on oeis.org

3, 4, 5, 6, 7, 7, 8, 9, 10, 10, 11, 12, 12, 13
Offset: 1

Views

Author

Alexander Adamchuk, Aug 12 2006

Keywords

Comments

An n-polytrimino is similar to polyomino but it is made with n triangles instead of squares.

Crossrefs

Showing 1-4 of 4 results.