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.

A362119 Concatenate the base-6 strings for 1,2,...,n.

Original entry on oeis.org

1, 12, 123, 1234, 12345, 1234510, 123451011, 12345101112, 1234510111213, 123451011121314, 12345101112131415, 1234510111213141520, 123451011121314152021, 12345101112131415202122, 1234510111213141520212223, 123451011121314152021222324, 12345101112131415202122232425
Offset: 1

Views

Author

Keywords

Comments

The smallest prime occurs at n = 12891. - Michael S. Branicky, Apr 20 2023
The b-file has only 313 terms, since a(314) has 1001 digits.

Crossrefs

Programs

  • Mathematica
    A362119[n_]:=FromDigits[Flatten[IntegerDigits[Range[n],6]]];Array[A362119,20] (* Paolo Xausa, Nov 27 2023 *)
  • Python
    from sympy.ntheory import digits
    from itertools import count, islice
    def agen(s="", base=6): yield from (int(s:=s+"".join(map(str, digits(n, base)[1:]))) for n in count(1))
    print(list(islice(agen(), 20)))