login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A286839
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).
15
8, 7, 11, 12, 7, 7, 11, 12, 11, 4, 4, 6, 0, 6, 9, 12, 8, 5, 8, 7, 12, 7, 11, 8, 1, 5, 6, 2, 7, 7, 7, 3, 6, 2, 6, 10, 7, 12, 12, 10, 1, 5, 5, 12, 5, 7, 0, 9, 8, 10, 3, 6, 5, 10, 0, 5, 6, 11, 7, 12, 7, 9, 1, 12, 2, 0, 9, 4, 7, 6, 2, 7, 3, 6, 3, 10, 4, 7, 12, 0, 1
OFFSET
0,1
LINKS
FORMULA
a(n) = 12 - A286838(n) for n > 0.
PROG
(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 A286839(n)
A(8, 13, n)
end
p A286839(100)
CROSSREFS
Digits of one of the two p-adic integers sqrt(-1): A210850 and A210851 (p=5), A286838 and this sequence (p=13).
Sequence in context: A198884 A212911 A019326 * A277915 A051011 A298666
KEYWORD
nonn,base
AUTHOR
Seiichi Manyama, Aug 01 2017
EXTENSIONS
Keyword "base" added by Jianing Song, Feb 17 2021
STATUS
approved