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.

Previous Showing 31-40 of 235 results. Next

A194443 Number of toothpicks or D-toothpicks added at n-th stage to the structure of A194442.

Original entry on oeis.org

0, 1, 2, 4, 4, 4, 4, 7, 8, 4, 4, 8, 12, 8, 8, 13, 16, 4, 4, 8, 12, 16, 16, 20, 24, 12, 8, 16, 28, 16, 16, 25, 32, 4, 4, 8, 12, 16, 16, 22, 32, 26, 20, 24, 40, 32, 40, 33, 48, 20, 8, 16, 28, 40, 44, 50, 60, 28, 16, 32, 60, 32, 32, 49, 64, 4, 4, 8
Offset: 0

Views

Author

Omar E. Pol, Aug 29 2011

Keywords

Comments

Essentially the first differences of A194442. It appears that the structure of the "narrow" triangle is much more regular about n=2^k, see formula section.

Examples

			If written as a triangle:
0,
1,
2,
4,4,
4,4,7,8,
4,4,8,12,8,8,13,16,
4,4,8,12,16,16,20,24,12,8,16,28,16,16,25,32,
4,4,8,12,16,16,22,32,26,20,24,40,32,40,33,48,20,8,16,28...
.
It appears that rows converge to A194697.
		

Crossrefs

Formula

Conjectures for n = 2^k+j, if -6<=j<=6:
a(2^k-6) = 2^(k-2), if k >= 3.
a(2^k-5) = 2^(k-1), if k >= 3.
a(2^k-4) = 2^k-4, if k >= 2.
a(2^k-3) = 2^(k-1), if k >= 3.
a(2^k-2) = 2^(k-1), if k >= 2.
a(2^k-1) = 3*2^(k-2)+1, if k >= 2.
a(2^k+0) = 2^k, if k >= 0.
a(2^k+1) = 4, if k >= 1.
a(2^k+2) = 4, if k >= 1.
a(2^k+3) = 8, if k >= 3.
a(2^k+4) = 12, if k >= 3.
a(2^k+5) = 16, if k >= 4.
a(2^k+6) = 16, if k >= 4.
End of conjectures.

A160173 Number of T-toothpicks added at n-th stage to the T-toothpick structure of A160172.

Original entry on oeis.org

0, 1, 3, 5, 9, 9, 9, 13, 25, 21, 9, 13, 25, 25, 25, 37, 73, 57, 9, 13, 25, 25, 25, 37, 73, 61, 25, 37, 73, 73, 73, 109, 217, 165, 9, 13, 25, 25, 25, 37, 73, 61, 25, 37, 73, 73, 73, 109, 217, 169, 25, 37, 73, 73, 73, 109, 217, 181, 73, 109, 217, 217, 217, 325, 649, 489, 9, 13, 25
Offset: 0

Views

Author

Omar E. Pol, Jun 01 2009

Keywords

Comments

Essentially the first differences of A160172.
For further information see the Applegate-Pol-Sloane paper, chapter 11: T-shaped toothpicks. See also the figure 16 in the mentioned paper. - Omar E. Pol, Nov 18 2011
The numbers n in increasing order such that the triple [n, n, n] can be found here, give A199111. [Observed by Omar E. Pol, Nov 18 2011. Confirmed by Alois P. Heinz, Nov 21 2011]

Examples

			From _Omar E. Pol_, Feb 09 2010: (Start)
If written as a triangle:
0;
1;
3;
5;
9,9;
9,13,25,21;
9,13,25,25,25,37,73,57;
9,13,25,25,25,37,73,61,25,37,73,73,73,109,217,165;
9,13,25,25,25,37,73,61,25,37,73,73,73,109,217,169,25,37,73,73,73,109,217,181,73,109,217,217,217,325,649,489;
9,13,25,25,25,37,73,61,25,37,73,73,73,109,217,169,25,37,73,73,73,109...
(End)
		

References

  • David Applegate, Omar E. Pol and N. J. A. Sloane, The Toothpick Sequence and Other Sequences from Cellular Automata, Congressus Numerantium, Vol. 206 (2010), 157-191

Crossrefs

Programs

  • Mathematica
    wt[n_] := DigitCount[n, 2, 1];
    a[0] = 0; a[1] = 1; a[2] = 3; a[n_] := 2/3 (3^wt[n-1] + 3^wt[n-2]) + 1;
    Table[a[n], {n, 0, 68}] (* Jean-François Alcover, Aug 18 2018, after N. J. A. Sloane *)

Formula

a(n) = (2/3)*(3^wt(n-1) + 3^wt(n-2))+1 (where wt is A000120), for n >= 3. - N. J. A. Sloane, Jan 01 2010

Extensions

More terms from N. J. A. Sloane, Jan 01 2010

A147614 a(n) = number of grid points that are covered after n-th stage of A139250, assuming the toothpicks have length 2.

Original entry on oeis.org

0, 3, 7, 13, 19, 27, 39, 53, 63, 71, 83, 99, 119, 147, 183, 217, 235, 243, 255, 271, 291, 319, 355, 391, 419, 447, 487, 539, 607, 699, 803, 885, 919, 927, 939, 955, 975, 1003, 1039, 1075, 1103, 1131, 1171, 1223, 1291, 1383, 1487, 1571, 1615
Offset: 0

Views

Author

David Applegate, Apr 29 2009

Keywords

Comments

a(n) is also the number of "ON" cells at n-th stage in simple 2-dimensional cellular automaton whose virtual skeleton is a polyedge as the toothpick structure of A139250. [From Omar E. Pol, May 18 2009]
It appears that the number of grid points that are covered after n-th stage of A139250, assuming the toothpicks have length 2*k, is equal to (2*k-2) * A139250(n) + a(n), k>0. See formulas in A160420 and A160422. [From Omar E. Pol, Nov 15 2010]
More generally, it appears that a(n) is also the number of grid points that are covered by the "special points" of the toothpicks of A139250, after n-th stage, assuming the toothpicks have length 2*k, k>0 and that each toothpick has three special points: the midpoint and two endpoints.
Note that if k>1 then also there are 2*k-2 grid points that are covered by each toothpick, but these points are not considered for this sequence. [From Omar E. Pol, Nov 15 2010]
Contribution from Omar E. Pol, Sep 16 2012 (Start):
It appears that a(n)/A139250(n) converge to 4/3.
It appears that a(n)/A160124(n) converge to 2.
It appears that a(n)/A139252(n) converge to 4.
(End)

Crossrefs

Formula

Since A160124(n) = 1+2*A139250(n)-A147614(n), n>0 (see A160124), and we have recurrences for A160125 (hence A160124) and A139250, we have a recurrence for this sequence. - N. J. A. Sloane, Feb 02 2010
a(n) = A187220(n+1)-A160124(n), n>0. - Omar E. Pol, Feb 15 2013

A152998 Toothpick sequence on the semi-infinite square grid.

Original entry on oeis.org

0, 1, 3, 5, 7, 11, 17, 21, 23, 27, 33, 39, 47, 61, 77, 85, 87, 91, 97, 103, 111, 125, 141, 151, 159, 173, 191, 211, 241, 285, 325, 341, 343, 347, 353, 359, 367, 381, 397, 407, 415, 429, 447, 467, 497, 541, 581, 599, 607, 621, 639
Offset: 0

Views

Author

Omar E. Pol, Dec 19 2008, Dec 23 2008, Jan 02 2008

Keywords

Comments

Contribution from Omar E. Pol, Oct 01 2011 (Start):
On the semi-infinite square grid, at stage 0, we start from a vertical half toothpick at [(0,0),(0,1)]. This half toothpick represents one of the two components of the first toothpick placed in the toothpick structure of A139250. Consider only the toothpicks of length 2, so a(0) = 0.
At stage 1, we place an orthogonal toothpick of length 2 centered at the end, so a(1) = 1.
In each subsequent stage, for every exposed toothpick end, place an orthogonal toothpick centered at that end.
The sequence gives the number of toothpicks after n stages. A152968 (the first differences) gives the number of toothpicks added to the structure at n-th stage.
For more information see A139250. (End)

Crossrefs

Formula

a(n) = (A139250(n+1)-1)/2.
From Omar E. Pol, Oct 01 2011: (Start)
a(n) = A139250(n+1) - A153003(n) + A153000(n-1) - 1, if n >= 1.
a(n) = A153003(n) - A153000(n-1), if n >= 1.
a(n) = 2*A153000(n-1) + 1, if n >= 1.
(End)
a(n) = (A187220(n+2) - 3)/4. - Omar E. Pol, Feb 18 2013

A160573 G.f.: Product_{k >= 0} (1 + x^(2^k-1) + x^(2^k)).

Original entry on oeis.org

2, 3, 3, 3, 5, 6, 4, 3, 5, 6, 6, 8, 11, 10, 5, 3, 5, 6, 6, 8, 11, 10, 7, 8, 11, 12, 14, 19, 21, 15, 6, 3, 5, 6, 6, 8, 11, 10, 7, 8, 11, 12, 14, 19, 21, 15, 8, 8, 11, 12, 14, 19, 21, 17, 15, 19, 23, 26, 33, 40, 36, 21, 7, 3, 5, 6, 6, 8, 11, 10, 7, 8, 11, 12, 14, 19, 21, 15, 8, 8
Offset: 0

Views

Author

Hagen von Eitzen, May 20 2009

Keywords

Comments

Sequence mentioned in the Applegate-Pol-Sloane article; see Section 9, "explicit formulas." - Omar E. Pol, Sep 20 2011

Examples

			a(5) = binomial(2,0) + binomial(2,1) + binomial(3,2) + binomial(1,3) + binomial(2,4) + binomial(2,5) + ... = 1 + 2 + 3 + 0 + 0 + 0 + ... = 6
From _Omar E. Pol_, Jun 09 2009: (Start)
Triangle begins:
2;
3;3;
3,5,6,4;
3,5,6,6,8,11,10,5;
3,5,6,6,8,11,10,7,8,11,12,14,19,21,15,6;
3,5,6,6,8,11,10,7,8,11,12,14,19,21,15,8,8,11,12,14,19,21,17,15,19,23,26,...
(End)
		

References

  • D. Applegate, Omar E. Pol and N. J. A. Sloane, The Toothpick Sequence and Other Sequences from Cellular Automata, Congressus Numerantium, Vol. 206 (2010), 157-191

Crossrefs

For generating functions of the form Product_{k>=c} (1+a*x^(2^k-1)+b*x^2^k) for the following values of (a,b,c) see: (1,1,0) A160573, (1,1,1) A151552, (1,1,2) A151692, (2,1,0) A151685, (2,1,1) A151691, (1,2,0) A151688 and A152980, (1,2,1) A151550, (2,2,0) A151693, (2,2,1) A151694.
Row sums of A151683. See A151687 for another version.
Cf. A151552 (g.f. has one factor fewer).
Limiting form of rows of A118977 when that sequence is written as a triangle and the initial 1 is omitted. - N. J. A. Sloane, Jun 01 2009
Cf. A139250, A139251. - Omar E. Pol, Sep 20 2011

Programs

  • Maple
    See A118977 for Maple code.
  • Mathematica
    max = 80; Product[1 + x^(2^k - 1) + x^(2^k), {k, 0, Ceiling[Log[2, max]]}] + O[x]^max // CoefficientList[#, x]& (* Jean-François Alcover, Nov 10 2016 *)

Formula

a(n) = Sum_{i >= 0} binomial(A000120(n+i),i).
For k >= 1, a(2^k-2) = k+1 and a(2^k-1) = 3; otherwise if n = 2^i + j, 0 <= j <= 2^i-3, a(n) = a(j) + a(j+1).
a(n) = 2*A151552(n) + A151552(n-1).

A151688 G.f.: Product_{n>=0} (1 + x^(2^n-1) + 2*x^(2^n)).

Original entry on oeis.org

2, 4, 6, 6, 8, 14, 16, 10, 8, 14, 18, 20, 30, 44, 40, 18, 8, 14, 18, 20, 30, 44, 42, 28, 30, 46, 56, 70, 104, 128, 96, 34, 8, 14, 18, 20, 30, 44, 42, 28, 30, 46, 56, 70, 104, 128, 98, 44, 30, 46, 56, 70, 104, 130, 112, 86, 106, 148, 182, 244, 336, 352, 224, 66, 8, 14, 18, 20, 30, 44
Offset: 0

Views

Author

Omar E. Pol, May 02 2009

Keywords

Comments

This is essentially the same g.f. as A151550 but with the n=0 term included.

Examples

			If written as a triangle, begins:
  2;
  4;
  6, 6;
  8, 14, 16, 10;
  8, 14, 18, 20, 30, 44, 40, 18;
  8, 14, 18, 20, 30, 44, 42, 28, 30, 46, 56, 70, 104, 128, 96, 34;
  ...
		

Crossrefs

Equals 2*A152980 = A147646/2.
Equals limit of rows of triangle in A152968.
For generating functions of the form Product_{k>=c} (1 + a*x^(2^k-1) + b*x^2^k) for the following values of (a,b,c) see: (1,1,0) A160573, (1,1,1) A151552, (1,1,2) A151692, (2,1,0) A151685, (2,1,1) A151691, (1,2,0) A151688 and A152980, (1,2,1) A151550, (2,2,0) A151693, (2,2,1) A151694.

Programs

  • Mathematica
    terms = 70; CoefficientList[Product[(1+x^(2^n-1) + 2 x^(2^n)), {n, 0, Log[2, terms] // Ceiling}] + O[x]^terms, x] (* Stefano Spezia, Sep 02 2025 *)

Formula

a(n) = Sum_{k>=0} 2^(wt(n+k)-k)*binomial(wt(n+k),k).

Extensions

Edited by N. J. A. Sloane, Jun 03 2009, Jul 14 2009

A172311 First differences of A172310.

Original entry on oeis.org

0, 1, 2, 4, 6, 8, 12, 14, 14, 18, 18, 20, 24, 24, 38, 34, 42, 34, 26, 28, 32, 38, 52, 54, 64, 58, 68, 60, 60, 50, 66, 70, 70, 74, 50, 52, 60, 54, 64, 66, 84, 88, 116, 106, 132, 100, 136, 126, 140, 106, 118, 100, 122, 106, 138, 114, 138, 132, 152, 156, 176, 158, 190, 166, 158, 154, 98, 88, 132, 82, 124, 94, 112
Offset: 0

Views

Author

Omar E. Pol, Jan 31 2010

Keywords

Comments

Number of L-toothpicks added to the L-toothpick structure of A172310 at the n-th stage.

Crossrefs

Extensions

More terms from Nathaniel Johnston, Nov 15 2010
Corrected by David Applegate and Omar E. Pol; more terms beyond a(22) from David Applegate, Mar 26 2016

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

A161331 First differences of A161330.

Original entry on oeis.org

0, 2, 6, 6, 6, 18, 6, 18, 18, 18, 30, 18, 30, 42, 6, 18, 18, 30, 54, 30, 78, 42, 54, 78, 42, 66, 78, 18, 42, 42, 54, 90, 66, 126, 90, 90, 102, 66, 78, 90, 90, 90, 54, 66, 114, 78, 126, 126, 102, 102, 138, 102, 162, 102, 114, 162, 126, 162, 114, 102, 102, 126, 186, 186, 150, 138, 126, 162, 162, 186, 198, 114, 114, 162
Offset: 0

Views

Author

Omar E. Pol, Jun 07 2009

Keywords

Comments

Number of E-toothpicks added to the snowflake structure at n-th round.

Crossrefs

Extensions

More terms from David Applegate, Dec 13 2012

A161411 First differences of A160410.

Original entry on oeis.org

4, 12, 12, 36, 12, 36, 36, 108, 12, 36, 36, 108, 36, 108, 108, 324, 12, 36, 36, 108, 36, 108, 108, 324, 36, 108, 108, 324, 108, 324, 324, 972, 12, 36, 36, 108, 36, 108, 108, 324, 36, 108, 108, 324, 108, 324, 324, 972, 36, 108, 108, 324, 108, 324, 324, 972, 108, 324, 324
Offset: 1

Views

Author

Omar E. Pol, May 20 2009, Jun 13 2009, Jun 14 2009

Keywords

Comments

The rows of the triangle in A147582 converge to this sequence.
Contribution from Omar E. Pol, Mar 28 2011 (Start):
a(n) is the number of cells turned "ON" at n-th stage of the cellular automaton of A160410.
a(n) is also the number of toothpicks added at n-th stage to the toothpick structure of A160410.
(End)

Examples

			If written as a triangle:
.4;
.12;
.12,36;
.12,36,36,108;
.12,36,36,108,36,108,108,324;
		

Crossrefs

Programs

  • Mathematica
    4*3^DigitCount[Range[0,100],2,1] (* Paolo Xausa, Sep 01 2023 *)

Formula

a(n) = A048883(n-1)*4.

Extensions

Edited by David Applegate and N. J. A. Sloane, Jul 13 2009
Previous Showing 31-40 of 235 results. Next