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!)
A049416 Largest number whose square has n digits. 9
3, 9, 31, 99, 316, 999, 3162, 9999, 31622, 99999, 316227, 999999, 3162277, 9999999, 31622776, 99999999, 316227766, 999999999, 3162277660, 9999999999, 31622776601, 99999999999, 316227766016, 999999999999, 3162277660168 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
a(n) + A180416(n) + A180425(n) + A167615(n) = A002283(n).
LINKS
FORMULA
a(n) = ceiling(sqrt(10^n)) - 1.
EXAMPLE
31^2 = 961, but 32^2 = 1024, hence a(3) = 31.
a(4) = 99: 99^2 = 9801 has 4 digits, while 100^2 = 10000 has 5 digits.
MATHEMATICA
Ceiling[Sqrt[10^Range[40]]-1] (* Harvey P. Dale, Sep 30 2011 *)
PROG
(Magma) [Ceiling(Sqrt(10^n))-1: n in [1..30]]; // Vincenzo Librandi, Oct 01 2011
CROSSREFS
Cf. A061433, A049415. Equals A017936 - 1.
Sequence in context: A183519 A001672 A138281 * A148959 A148960 A027029
KEYWORD
nonn,base,easy,nice
AUTHOR
Ulrich Schimke (ulrschimke(AT)aol.com)
EXTENSIONS
More terms from Larry Reeves (larryr(AT)acm.org), May 16 2001
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 6 10:34 EDT 2024. Contains 373127 sequences. (Running on oeis4.)