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.

A230116 Value of row n in triangle A166360 when seen as binary number.

Original entry on oeis.org

1, 3, 7, 9, 17, 51, 127, 129, 257, 771, 1799, 2313, 4369, 13107, 32767, 32769, 65537, 196611, 458759, 589833, 1114129, 3342387, 8323199, 8454273, 16843009, 50529027, 117901063, 151587081, 286331153, 858993459, 2147483647, 2147483649, 4294967297, 12884901891
Offset: 1

Views

Author

Reinhard Zumkeller, Oct 10 2013

Keywords

Comments

a(n) = sum(A166360(n,k)*2^(k-1): k=1..n).

Examples

			.   n         A166360(n,1..n)             A007088(a(n))    a(n)
. ---  -----------------------------    ---------------   -----
.   1                1                                1       1
.   2               1 1                              11       3
.   3              1 1 1                            111       7
.   4             1 0 0 1                          1001       9
.   5            1 0 0 0 1                        10001      17
.   6           1 1 0 0 1 1                      110011      51
.   7          1 1 1 1 1 1 1                    1111111     127
.   8         1 0 0 0 0 0 0 1                  10000001     129
.   9        1 0 0 0 0 0 0 0 1                100000001     257
.  10       1 1 0 0 0 0 0 0 1 1              1100000011     771
.  11      1 1 1 0 0 0 0 0 1 1 1            11100000111    1799
.  12     1 0 0 1 0 0 0 0 1 0 0 1          100100001001    2313
.  13    1 0 0 0 1 0 0 0 1 0 0 0 1        1000100010001    4369
.  14   1 1 0 0 1 1 0 0 1 1 0 0 1 1      11001100110011   13107
.  15  1 1 1 1 1 1 1 1 1 1 1 1 1 1 1    111111111111111   32767 .
		

Crossrefs

Programs

  • Haskell
    a230116 = foldr (\u v-> 2*v + u) 0 . map toInteger . a166360_row