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

A256940 a(n) is the total number of free ends of a certain configuration of line segments after n iterations (see Comments lines for definition).

Original entry on oeis.org

2, 4, 8, 12, 12, 12, 20, 20, 16, 24, 28, 48, 52, 36, 44, 36, 16, 24, 40, 56, 72, 72, 76, 80, 60, 64, 80, 124, 132, 88, 100, 68, 16, 24, 40, 56, 72, 80, 88, 104, 112, 128, 176, 216, 244, 212, 168, 148, 84, 64, 104, 152, 200, 200, 212, 216, 148, 144, 176, 276, 296, 192, 212, 136, 16
Offset: 0

Views

Author

Kival Ngaokrajang, Apr 19 2015

Keywords

Comments

The initial pattern is a straight line segment which has 2 free ends: a(0)=2.
The construction rules for the following generations are:
(i) add 2 line segments (all line segments are of equal length) at each free end of previous generation by arranging them in a "V" shape at angle Pi/2 and symmetrically placed at the free end,
(ii) overlaps among different generations are prohibited (if, for a given free end, any of the two new segments from its "V" touch or cross a segment from an earlier generation, then the entire "V" is not added, and that free end is just declared non-free),
(iii) the {a(n)} free ends are the ends of elements that do not touch or cross the others (if a new segment is touched by another segment only at the endpoint which it shares with its parent, then this doesn't count as an intersection and its other end is considered free).
It seems that a(n) drop to 16 for n = 8, 16, 32, 64,... . See illustration in the links.
The structure of the illustration of initial terms is very similar to the structure of A194270 and A220500. - Omar E. Pol, Apr 19 2015

Crossrefs

Programs

  • Mathematica
    new2[{{s_, t_}, a_}] := Simplify@Table[{{t, AngleVector[t, {1, a + si Pi/4}]}, a + si Pi/4}, {si, {1, -1}}];
    xx[l1_, l2_] := SquaredEuclideanDistance[First@l1, First@l2] <= 4 && With[{int = Simplify@RegionIntersection[Line@l1, Line@l2]}, int =!= EmptyRegion[2] && int =!= Point[{First@l2}] && int =!= Point[{First@l1}]];
    {nonfree, free} = {{}, {{{{1/2, 0}, {1, 0}}, 0}, {{{1/2, 0}, {0, 0}}, Pi}}};
    a = {2};
    next[] := ({oldnonfree, oldfree, nonfree, free} = {nonfree, free, Join[free, nonfree], {}};
      Do[n2 = new2[f]; If[And @@ Table[AllTrue[oldnonfree, ! xx[First@#, First@new] &], {new, n2}], Do[
        tt = GroupBy[free, xx[First@#, First@new] &];
        free = Lookup[tt, False, {}];
        If[KeyExistsQ[tt, True], nonfree = Join[nonfree, tt[True], {new}], AppendTo[free, new]];
      , {new, n2}]], {f, oldfree}];
      AppendTo[a, Length@free];);
    Do[next[], {10}];
    a (* Andrey Zabolotskiy, Mar 09 2025 *)

Extensions

a(1) = 2 prepended and a(3) = 8 corrected by Omar E. Pol, Apr 19 2015
Partially edited by Kival Ngaokrajang, as Omar E. Pol suggestion, Apr 26 2015
Terms a(12), a(13), a(59) corrected by Kival Ngaokrajang, Apr 26 2015
Terms a(27), a(60), a(63) corrected, other terms verified, description clarified by Andrey Zabolotskiy, Mar 09 2025
Showing 1-1 of 1 results.