%I #42 May 09 2024 03:13:01
%S 1,12,19,27,37,43,51,55,75,79,93,102,109,115,120,127,133,141,147,151,
%T 156,163,177,181,186,199,217,223,235,241,249,255,259,264,271,277,282,
%U 294,307,312,315,324,331,343,345,349,354,357,363,367
%N First number on layer n of hailstone chain.
%C If hailstone chains are strictly drawn in numerical order at right angles with consistent direction, overlaps occur. The first set of numbers that do not overlap could be considered the 'first layer'. Once an overlap is needed, all numbers farther up the chain (inclusive) are on a higher layer. This is the sequence of the first numbers to appear on layer n.
%C From _Georg Fischer_, Mar 25 2018: (Start)
%C The detailed procedure is as follows: Take the "3x+1" or Collatz sequences (CSs) from A070165, and build a 3-dimensional structure representing all CSs up to some starting number (10000). In that 3D structure, the y direction is downwards, x is to the right, and the "layer" z is outside. Process all CSs with increasing starting number coln = 1, 2, 3, ..., 10000. Begin at the end of any individual CS (4, 2, 1), and proceed backwards up to the starting number. Name the elements e[1] = 1, e[2] = 2, e[3] = 4, etc. Position the element e[1] = 1 at coordinates (x,y,z) = (0,0,0). Investigate all e[i] (i > 1): for even e[i] "go right" = store e[i] at (e[i-1].x+1, e[i-1].y, e[i-1].z), for odd e[i] "go down" = store e[i] at (e[i-1].x, e[i-1].y+1, e[i-1].z), whenever that position is not occupied by a different number, otherwise "go out", i.e., increase the layer z by one for this element and all new elements to be stored from now on.
%C The present sequence A291939 = a(n) consists of the starting values of the CSs which reach a z coordinate of n for the first time.
%C (End)
%H Georg Fischer, <a href="/A291939/b291939.txt">Table of n, a(n) for n = 1..1769</a>
%H Georg Fischer, Description, generating <a href="https://www.teherba.org/tehowiki/index.php/OEIS/A291939">Perl program and 3D visualization</a>
%H <a href="/index/3#3x1">Index entries for sequences related to 3x+1 (or Collatz) problem</a>
%e n=1: the first number is trivially 1;
%e n=2: in the CS for 12, the 12 overlaps with 13, thus 12 is on layer 2;
%e n=3: in the CS for 19, the 44 overlaps with 46, thus 19 is on layer 3.
%Y Cf. A006370, A070165.
%K nonn,easy
%O 1,2
%A _Jonathan Llewellyn_, Sep 06 2017
%E More terms from _Georg Fischer_, Mar 25 2018