Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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).
15
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,1
LINKS
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 A286838(n)
A(5, 13, n)
end
p A286838(100)
CROSSREFS
Digits of one of the two p-adic integers sqrt(-1): A210850 and A210851 (p=5), this sequence and A286839 (p=13).
Sequence in context: A133337 A279932 A022697 * A347684 A172457 A028277
KEYWORD
nonn,base
AUTHOR
Seiichi Manyama, Aug 01 2017
EXTENSIONS
Keyword "base" added by Jianing Song, Feb 17 2021
STATUS
approved