login

Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.

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

%I #12 May 31 2023 15:39:59

%S 6,58,1825,5774,57735,57735,1825742,57735027,182574186,5773502692,

%T 57735026919,57735026919,5773502691896,57735026918963,577350269189626,

%U 5773502691896258,57735026918962577,577350269189625765,5773502691896257645,57735026918962576451,577350269189625764509,5773502691896257645092

%N a(n)^2 is smallest square starting with a string of n 3's.

%H Robert Israel, <a href="/A034982/b034982.txt">Table of n, a(n) for n = 1..996</a>

%e a(5)^2 = 57735^2 = {33333}30225.

%p f:= proc(n) local x, k, s;

%p x:= (10^n-1)/3;

%p for k from 0 do

%p s:= ceil(sqrt(10^k*x));

%p if s^2 < (x+1)*10^k then return s fi

%p od

%p end proc:

%p map(f, [$1..30]); # _Robert Israel_, May 31 2023

%Y Cf. A034983.

%K nonn,base

%O 1,1

%A _Patrick De Geest_, Nov 15 1998

%E More terms from Francisco Salinas (franciscodesalinas(AT)hotmail.com), Dec 23 2001