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!)
A138173 a(n) is the smallest m such that m^3 begins with n^2. 3
1, 16, 21, 55, 63, 154, 17, 4, 201, 10, 23, 113, 257, 27, 609, 295, 307, 148, 1535, 342, 164, 1692, 809, 1793, 397, 878, 9, 428, 944, 4482, 987, 1008, 1029, 4872, 107, 2349, 5154, 5247, 2478, 252, 552, 5609, 5697, 5785, 2726, 1284, 2806, 6131, 2885 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
Differs from A030691.
LINKS
FORMULA
a(n) = (A138174(n))^(1/3).
PROG
(Sage)
A138173 = lambda n: next(m for m in IntegerRange(1, infinity) if str(m**3).startswith(str(n**2)))
# D. S. McNeil, Dec 12 2010
(Python)
from gmpy2 import iroot
def A138173(n):
d, nd = 1, n**2
while True:
x = iroot(nd-1, 3)[0]+1
if x**3 < nd+d:
return int(x)
d *= 10
nd *= 10 # Chai Wah Wu, May 24 2016
CROSSREFS
Sequence in context: A186454 A302638 A302430 * A302313 A303200 A303043
KEYWORD
nonn,base
AUTHOR
Zak Seidov, Mar 05 2008
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 April 16 05:35 EDT 2024. Contains 371697 sequences. (Running on oeis4.)