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!)
A018142 Powers of fifth root of 10 rounded to nearest integer. 3

%I #12 Aug 19 2016 04:32:10

%S 1,2,3,4,6,10,16,25,40,63,100,158,251,398,631,1000,1585,2512,3981,

%T 6310,10000,15849,25119,39811,63096,100000,158489,251189,398107,

%U 630957,1000000,1584893,2511886,3981072,6309573

%N Powers of fifth root of 10 rounded to nearest integer.

%H Chai Wah Wu, <a href="/A018142/b018142.txt">Table of n, a(n) for n = 0..1000</a>

%F a(n) = round(10^(n/5)). - _Wesley Ivan Hurt_, Jun 23 2015

%p A018142:=n->round(10^(n/5)): seq(A018142(n), n=0..50); # _Wesley Ivan Hurt_, Jun 23 2015

%o (Python)

%o from gmpy2 import iroot_rem

%o def A018142(n):

%o i,j = iroot_rem(10**n,5)

%o return int(i) + int(32*j >= 10*i*(4*i*(2*i*(i + 1) + 1) + 1) + 1) # _Chai Wah Wu_, Aug 18 2016

%K nonn,easy

%O 0,2

%A _N. J. A. Sloane_

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 March 28 14:38 EDT 2024. Contains 371254 sequences. (Running on oeis4.)