cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A034994 Square root of smallest square starting with a string of n 9's.

This page as a plain text file.
%I A034994 #14 Oct 08 2019 11:23:52
%S A034994 3,315,3161,31622,316227,3162277,31622776,316227765,316227766,
%T A034994 31622776601,316227766016,3162277660167,31622776601683,
%U A034994 316227766016837,3162277660168378,31622776601683792
%N A034994 Square root of smallest square starting with a string of n 9's.
%H A034994 Robert Israel, <a href="/A034994/b034994.txt">Table of n, a(n) for n = 1..998</a>
%e A034994 a(5) = 316227^2 = {99999}515529.
%p A034994 f:= proc(n) local d,q,x;
%p A034994   for d from n do
%p A034994      q:= 10^d-10^(d-n);
%p A034994      x:= isqrt(q);
%p A034994      if x^2 < q then x:= x+1 fi;
%p A034994      if x^2 < 10^d then return x fi
%p A034994   od
%p A034994 end proc:
%p A034994 map(f, [$1..20]); # _Robert Israel_, Sep 28 2018
%Y A034994 Cf. A034995.
%K A034994 nonn,base
%O A034994 1,1
%A A034994 _Patrick De Geest_, Nov 15 1998
%E A034994 More terms from _Hans Havermann_, Jun 18 2001