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

A071038 Triangle read by rows giving successive states of cellular automaton generated by "Rule 182".

Original entry on oeis.org

1, 1, 1, 1, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1
Offset: 0

Views

Author

Hans Havermann, May 26 2002

Keywords

Comments

Row n has length 2n+1.

Examples

			Triangle begins:
                           1,
                        1, 1, 1,
                     1, 0, 1, 0, 1,
                  1, 1, 1, 1, 1, 1, 1,
               1, 0, 1, 1, 1, 1, 1, 0, 1,
            1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1,
         1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1,
      1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
   1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1,
1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1,
...
		

References

  • S. Wolfram, A New Kind of Science, Wolfram Media, 2002; Chapter 3.

Crossrefs

See A071042 for number of zeros at generation n.

Programs

Extensions

Corrected by Hans Havermann, Jan 07 2012

A071055 Number of 0's in n-th row of triangle in A071038.

Original entry on oeis.org

0, 0, 2, 0, 2, 2, 6, 0, 2, 2, 6, 2, 6, 6, 14, 0, 2, 2, 6, 2, 6, 6, 14, 2, 6, 6, 14, 6, 14, 14, 30, 0, 2, 2, 6, 2, 6, 6, 14, 2, 6, 6, 14, 6, 14, 14, 30, 2, 6, 6, 14, 6, 14, 14, 30, 6, 14, 14, 30, 14, 30, 30, 62, 0, 2, 2, 6, 2, 6, 6, 14, 2, 6, 6, 14, 6, 14, 14, 30, 2, 6, 6, 14, 6
Offset: 0

Views

Author

Hans Havermann, May 26 2002

Keywords

Comments

a(n) is also the number of pairs of consecutive entries in the n-th row of Pascal's triangle with opposite parity.
All terms appear to be of the form 2^k - 2 (checked for n <= 10000). - Michael De Vlieger, Mar 02 2015
This appears to be equal to the number of previous values k, from 1..n-1, such that k AND n = k, where 'AND' is binary AND, and where the sequence starts at 1. For example, 1 AND 2 = 0, so a(2) = 0, while 1 AND 3 = 1 and 2 AND 3 = 2, so a(3) = 2. It follows from this that if n = 2^m - 1 then a(n) = n - 1 = 2^m - 2, giving the right border values noted below. - Scott R. Shannon, Apr 19 2023

Examples

			From _Omar E. Pol_, Mar 02 2015: (Start)
Also, written as an irregular triangle in which the row lengths are the powers of 2, the sequence begins:
0;
0,2;
0,2,2,6;
0,2,2,6,2,6,6,14;
0,2,2,6,2,6,6,14,2,6,6,14,6,14,14,30;
0,2,2,6,2,6,6,14,2,6,6,14,6,14,14,30,2,6,6,14,6,14,14,30,6,14,14,30,14,30,30,62;
...
It appears that the right border gives the nonnegative terms of A000918.
It appears that the row sums give A056182.
(End)
		

References

  • S. Wolfram, A New Kind of Science, Wolfram Media, 2002; Chapter 3.

Crossrefs

Cf. A071042.

Programs

Formula

a(n)=b(n+1), with b(0)=0, b(2n)=b(n), b(2n+1)=2b(n)+2-2[n==0] (conjectured). - Ralf Stephan, Mar 05 2004
a(n) = pext(n, n + 1) (conjectured) where pext is the "parallel bits extract" instruction of the x86 CPU; pext(x, mask) extracts bits from x at the bit locations specified by mask to contiguous low bits. - Falk Hüffner, Jul 26 2019
Showing 1-2 of 2 results.