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.

A300558 a(n) is the concatenation n written in base 2 n times, n-1 written in base 2 n-1 times, ..., 1 written in base 2 once.

Original entry on oeis.org

1, 10101, 11111110101, 10010010010011111110101, 10110110110110110010010010011111110101, 11011011011011011010110110110110110010010010011111110101, 11111111111111111111111011011011011011010110110110110110010010010011111110101
Offset: 1

Views

Author

Seiichi Manyama, Mar 08 2018

Keywords

Crossrefs

Programs

  • Ruby
    def A300558(n)
      a = '1'
      [1] + (2..n).map{|i| a = (i.to_s(2) * i + a.to_s).to_i}
    end
    p A300558(10)