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.

A034984 a(n)^2 is smallest square starting with a string of n 4's.

This page as a plain text file.
%I A034984 #11 May 31 2023 18:52:17
%S A034984 2,21,667,6667,66667,666667,6666667,21081851,666666667,6666666667,
%T A034984 66666666667,210818510678,2108185106779,66666666666667,
%U A034984 210818510677892,6666666666666667,66666666666666667,666666666666666667,6666666666666666667,66666666666666666667
%N A034984 a(n)^2 is smallest square starting with a string of n 4's.
%H A034984 Robert Israel, <a href="/A034984/b034984.txt">Table of n, a(n) for n = 1..996</a>
%F A034984 a(n) <= A002280(n)+1. - _Robert Israel_, May 31 2023
%e A034984 a(5)^2 = 66667^2 = {44444}88889.
%p A034984 f:= proc(n) local x, k, s;
%p A034984   x:= 4*(10^n-1)/9;
%p A034984   for k from 0 do
%p A034984     s:= ceil(sqrt(10^k*x));
%p A034984     if s^2 < (x+1)*10^k then return s fi
%p A034984   od
%p A034984 end proc:
%p A034984 map(f, [$1..30]); # _Robert Israel_, May 31 2023
%Y A034984 Cf. A034985.
%K A034984 nonn,base
%O A034984 1,1
%A A034984 _Patrick De Geest_, Nov 15 1998
%E A034984 More terms from Francisco Salinas (franciscodesalinas(AT)hotmail.com), Dec 23 2001