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

A160161 First differences of the 3D toothpick numbers A160160.

Original entry on oeis.org

0, 1, 2, 4, 8, 8, 8, 8, 16, 32, 56, 32, 16, 8, 16, 32, 56, 56, 64, 80, 152, 232, 352, 144, 48, 32, 24, 40, 56, 56, 64, 80, 152, 232, 352, 216, 168, 176, 272, 360, 496, 448, 536, 664, 1168, 1488, 2000, 768, 304, 336, 264, 192, 112, 120, 128, 112, 168, 240, 352, 216, 168, 176, 272, 360, 496
Offset: 0

Views

Author

Omar E. Pol, May 03 2009

Keywords

Comments

Number of toothpicks added at n-th stage to the three-dimensional toothpick structure of A160160.
The sequence should start with a(1) = 1 = A160160(1) - A160160(0), the initial a(0) = 0 seems purely conventional and not given in terms of A160160. The sequence can be written as a table with rows r >= 0 of length 1, 1, 1, 3, 9, 18, 36, ... = 9*2^(r-4) for row r >= 4. In that case, rows 0..3 are filled with 2^r, and all rows r >= 3 have the form (x_r, y_r, x_r) where x_r and y_r have 3*2^(r-4) elements, all multiples of 8. Moreover, y_r[1] = a(A033484(r-2)) = x_{r+1}[1] = a(A176449(r-3)) is the largest element of row r and thus a record value of the sequence. - M. F. Hasler, Dec 11 2018

Examples

			Array begins:
===================
    x     y     z
===================
          0     1
    2     4     8
    8     8     8
   16    32    56
   32    16     8
   16    32    56
   56    64    80
  152   232   352
  144    48    32
...
From _Omar E. Pol_, Feb 28 2018: (Start)
Also, starting with 1, the sequence can be written as an irregular triangle in which the row lengths are the terms of A011782 multiplied by 3, as shown below:
   1,  2,  4;
   8,  8,  8;
   8, 16, 32, 56, 32, 16;
   8, 16, 32, 56, 56, 64, 80, 152, 232, 352, 144, 48;
  32, 24, 40, 56, 56, 64, 80, 152, 232, 352, 216, 168, 176, 272, 360, 496, 448, ...
(End)
If one starts rows with a(A176449(k) = 9*2^k-2), they are of the form A_k, B_k, A_k where A_k and B_k have 3*2^k elements and the first element of A_k is the first element of B_{k-1} and the largest of that (previous) row:
   k | a(9*2^k-2, ...) = A_k ; B_k ; A_k
  ---+-------------------------------------
     | a( 1 .. 6) = (1, 2, 4, 8, 8, 8)   (One might consider a row (8 ; 8 ; 8).)
   0 | a( 7, ...) = (8, 16, 32 ; 56, 32, 16 ; 8, 16, 32)
   1 | a(16, ...) = (56, 56, 64, 80, 152, 232 ; 352, 144, 48, 32, 24, 40 ;
     |               56, 56, 64, 80, 152, 232)
   2 | a(34, ...) = (352, 216, 168, 176, 272, 360, 496, 448, 536, 664, 1168, 1488 ;
     |               2000, 768, 304, 336, 264, 192, 112, 120, 128, 112, 168, 240 ;
     |               352, 216, 168, 176, 272, 360, 496, 448, 536, 664, 1168, 1488)
   3 | a(70, ...) = (2000, 984, ... ; 10576, 4304, ... ; 2000, 984, ...)
   4 | a(142, ...) = (10576, 5016, ... ; 54328, 24120, ...; 10576, 5016, ...)
  etc. - _M. F. Hasler_, Dec 11 2018
		

Crossrefs

Programs

  • PARI
    A160161_vec(n)=(n=A160160_vec(n))-concat(0,n[^-1]) \\ M. F. Hasler, Dec 11 2018
    
  • PARI
    A160161_vec(n)={local(E=[Vecsmall([1,1,1])], s(U)=[Vecsmall(Vec(V)+U)|V<-E], J=[], M, A, B, U); [if(i>4,8*#E=setminus(setunion(A=s(U=matid(3)[i%3+1,]), B=select(vecmin,s(-U))), J=setunion(setunion(setintersect(A, B), E), J)),2^(i-1))|i<-[1..n]]} \\ Returns the vector a(1..n). (A160160 is actually given as partial sums of this sequence, rather than the converse.) - M. F. Hasler, Dec 12 2018

Formula

a(9*2^k - m) = a(6*2^k - m) for all k >= 0 and 2 <= m <= 3*2^(k-1) + 2. - M. F. Hasler, Dec 12 2018

Extensions

Extended to 78 terms with C++ program by R. J. Mathar, Jan 09 2010
Edited and extended by M. F. Hasler, Dec 11 2018

A160171 First differences of X-toothpicks numbers A160170.

Original entry on oeis.org

0, 1, 4, 8, 8, 24, 32, 32, 56, 80, 80, 88, 112, 160, 168, 240, 224, 344, 320, 320, 344, 448, 528, 536, 704, 704, 872, 736, 880, 840, 1024, 1088, 1256, 1328, 1392, 1416, 1440, 1504, 1656
Offset: 0

Views

Author

Omar E. Pol, May 03 2009, Dec 13 2010

Keywords

Comments

Number of X-toothpicks added at n-th stage to the three-dimensional X-toothpick structure of A160170.
For another version see A170875.

Crossrefs

X-toothpick sequence: A160170.

Extensions

More terms (a(6)-a(38)) based on Email from R. J. Mathar dated on Jan 10 2010.

A170876 Number of toothpicks after n stages of 3-D toothpick structure defined in Comments.

Original entry on oeis.org

0, 1, 5, 21, 37, 53, 117, 197, 261, 405, 565, 789, 965, 1221, 1541, 1941, 2453, 2933, 3621, 4389, 5093, 5909, 6805, 7925, 9093, 10629, 12197, 14133, 15733, 17717, 19493, 21605, 23909, 26453, 29109, 32117, 35013, 38085, 41285
Offset: 0

Views

Author

N. J. A. Sloane, Jan 05 2010, based on email from R. J. Mathar, Jun 02 2009 Revised by R. J. Mathar, Jan 08 2010, Jan 09 2010

Keywords

Comments

We are in 3-D, and we are placing ordinary toothpicks, as in A139250.
We start with one toothpick in the z direction
We place toothpicks at any free end, as in A139250.
We always place new toothpicks in pairs, two perpendicular toothpicks that are perpendicular to the original toothpick
The toothpicks are always in 2 out of the 3 (x, y or z) directions.
The initial values are as follows (this should be checked!):
n:.0..1..2..3..4..5..6
----------------------------
x..0..0..2..4..8..4.24 (Number added in x direction)
y..0..0..2..4..8..4.24 (Number added in y direction)
z..0..1..0..8..0..8.16 (Number added in z direction)
----------------------------
...0..1..4.16.16.16.64 (Total number added at n-th stage, A170876)
----------------------------
a..0..1..5.21.37.53.117 (Total so far, this sequence)
----------------------------

Examples

			At stage 2 we have a horizontal cross, a vertical toothpick then another horizontal cross, for a total of 5 toothpicks.
Then we add 8 vertical toothpicks at the ends of the crosses and 8 horizontal toothpicks in the same planes as the crosses, for a total of 21 toothpicks.
		

Crossrefs

Cf. A139250, A170875 (first differences), A160160, A160170. For another version see A170837.
Showing 1-3 of 3 results.