The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A290563 Coefficients in 5-adic expansion of 3^(1/3). 19
2, 2, 3, 1, 0, 3, 3, 2, 1, 2, 0, 0, 0, 2, 3, 4, 3, 3, 4, 4, 0, 3, 2, 0, 2, 2, 2, 2, 0, 1, 0, 3, 0, 1, 0, 0, 0, 4, 0, 0, 0, 0, 1, 0, 2, 3, 3, 1, 4, 0, 3, 4, 4, 3, 1, 3, 2, 4, 4, 3, 0, 3, 3, 1, 1, 2, 0, 3, 0, 2, 3, 4, 3, 0, 2, 2, 2, 3, 1, 4, 3, 2, 0, 1, 0, 3, 3, 4 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,1
LINKS
PROG
(Ruby)
require 'OpenSSL'
def f_a(ary, a)
(0..ary.size - 1).inject(0){|s, i| s + ary[i] * a ** i}
end
def df(ary)
(1..ary.size - 1).map{|i| i * ary[i]}
end
def A(c_ary, k, m, n)
x = OpenSSL::BN.new((-f_a(df(c_ary), k)).to_s).mod_inverse(m).to_i % m
f_ary = c_ary.map{|i| x * i}
f_ary[1] += 1
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 = f_a(f_ary, b)
mod *= m
}
d_ary
end
def A290563(n)
A([-3, 0, 0, 1], 2, 5, n)
end
p A290563(100)
(PARI) Vecrev( digits( truncate( (3+O(5^100))^(1/3) ), 5) ) \\ Joerg Arndt, Aug 06 2017
CROSSREFS
Sequence in context: A293837 A181736 A322987 * A071474 A071480 A371124
KEYWORD
nonn
AUTHOR
Seiichi Manyama, Aug 06 2017
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified June 7 18:53 EDT 2024. Contains 373206 sequences. (Running on oeis4.)