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.

A034995 Smallest square starting with a string of n 9's.

This page as a plain text file.
%I A034995 #14 Oct 08 2019 11:24:13
%S A034995 9,99225,9991921,999950884,99999515529,9999995824729,999999961946176,
%T A034995 99999999356895225,99999999989350756,999999999956753113201,
%U A034995 99999999999470044512256,9999999999991276338467889
%N A034995 Smallest square starting with a string of n 9's.
%H A034995 Robert Israel, <a href="/A034995/b034995.txt">Table of n, a(n) for n = 1..499</a>
%p A034995 f:= proc(n) local d,q,x;
%p A034995   for d from n do
%p A034995      q:= 10^d-10^(d-n);
%p A034995      x:= isqrt(q);
%p A034995      if x^2 < q then x:= x+1 fi;
%p A034995      if x^2 < 10^d then return x^2 fi
%p A034995   od
%p A034995 end proc:
%p A034995 map(f, [$1..20]); # _Robert Israel_, Sep 28 2018
%Y A034995 Cf. A034994.
%K A034995 nonn,base
%O A034995 1,1
%A A034995 _Patrick De Geest_, Nov 15 1998
%E A034995 More terms from _Hans Havermann_, Jun 18 2001