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.

A286838 Digits of one of the two 13-adic integers sqrt(-1) (digits 0, 1, ... , 9, 10, 11, 12 are used instead of 0, 1, ... , 9, A, B, C).

Original entry on oeis.org

5, 5, 1, 0, 5, 5, 1, 0, 1, 8, 8, 6, 12, 6, 3, 0, 4, 7, 4, 5, 0, 5, 1, 4, 11, 7, 6, 10, 5, 5, 5, 9, 6, 10, 6, 2, 5, 0, 0, 2, 11, 7, 7, 0, 7, 5, 12, 3, 4, 2, 9, 6, 7, 2, 12, 7, 6, 1, 5, 0, 5, 3, 11, 0, 10, 12, 3, 8, 5, 6, 10, 5, 9, 6, 9, 2, 8, 5, 0, 12, 11, 0, 2, 11
Offset: 0

Views

Author

Seiichi Manyama, Aug 01 2017

Keywords

Crossrefs

Digits of one of the two p-adic integers sqrt(-1): A210850 and A210851 (p=5), this sequence and A286839 (p=13).

Programs

  • Ruby
    def A(k, m, n)
      d_ary = []
      ary = [0]
      a, mod = k, m
      (n + 1).times{|i|
        b = a % mod
        d_ary << (b - ary[-1]) / m ** i
        ary << b
        a = b ** m
        mod *= m
      }
      d_ary
    end
    def A286838(n)
      A(5, 13, n)
    end
    p A286838(100)

Extensions

Keyword "base" added by Jianing Song, Feb 17 2021