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.

A055143 The first n digits of the juxtaposition of the base-2 numbers converted to decimal.

Original entry on oeis.org

1, 3, 6, 13, 27, 55, 110, 220, 441, 882, 1765, 3531, 7063, 14126, 28253, 56507, 113015, 226031, 452062, 904124, 1808248, 3616497, 7232994, 14465988, 28931977, 57863955, 115727910, 231455821, 462911642, 925823285, 1851646570, 3703293141, 7406586283, 14813172567
Offset: 1

Views

Author

Patrick De Geest, Apr 15 2000

Keywords

Examples

			1 (1); 11 (3); 110 (6); 1101 (13); 11011 (27); 110111 (55); ...
		

Crossrefs

Programs

  • Mathematica
    With[{c=Flatten[Table[IntegerDigits[n,2],{n,20}]]},Table[FromDigits[ Take[ c,k],2],{k,Length[c]}]] (* Harvey P. Dale, May 15 2021 *)
  • Python
    from itertools import count, islice
    def agen():
        k, chap = 1, "1"
        for n in count(1):
            while len(chap) < n: k += 1; chap += bin(k)[2:]
            yield int(chap[:n], 2)
    print(list(islice(agen(), 34))) # Michael S. Branicky, Oct 06 2022

Extensions

a(32) and beyond from Michael S. Branicky, Oct 06 2022

A065834 String formed from first n ternary digits found in decimal expansion of Pi.

Original entry on oeis.org

1, 11, 112, 1122, 11222, 112222, 1122220, 11222202, 112222021, 1122220211, 11222202111, 112222021110, 1122220211102, 11222202111020, 112222021110202, 1122220211102020, 11222202111020201, 112222021110202010, 1122220211102020102, 11222202111020201022, 112222021110202010220
Offset: 1

Views

Author

Patrick De Geest, Nov 24 2001

Keywords

Crossrefs

Extensions

Offset changed to 1 and more terms from Jinyuan Wang, Aug 31 2021

A065835 A065834 converted to base 10.

Original entry on oeis.org

1, 4, 14, 44, 134, 404, 1212, 3638, 10915, 32746, 98239, 294717, 884153, 2652459, 7957379, 23872137, 71616412, 214849236, 644547710, 1933643132, 5800929396, 17402788190, 52208364570, 156625093712, 469875281138, 1409625843415, 4228877530246, 12686632590738, 38059897772216
Offset: 1

Views

Author

Patrick De Geest, Nov 24 2001

Keywords

Comments

The first primes have respectively 126 (n=264), 131 (n=274), 154 (n=322) and 359 (n=751) digits.

Crossrefs

Extensions

Offset changed to 1 and more terms from Jinyuan Wang, Aug 31 2021
Showing 1-3 of 3 results.