A034984 a(n)^2 is smallest square starting with a string of n 4's.
2, 21, 667, 6667, 66667, 666667, 6666667, 21081851, 666666667, 6666666667, 66666666667, 210818510678, 2108185106779, 66666666666667, 210818510677892, 6666666666666667, 66666666666666667, 666666666666666667, 6666666666666666667, 66666666666666666667
Offset: 1
Examples
a(5)^2 = 66667^2 = {44444}88889.
Links
- Robert Israel, Table of n, a(n) for n = 1..996
Crossrefs
Cf. A034985.
Programs
-
Maple
f:= proc(n) local x, k, s; x:= 4*(10^n-1)/9; for k from 0 do s:= ceil(sqrt(10^k*x)); if s^2 < (x+1)*10^k then return s fi od end proc: map(f, [$1..30]); # Robert Israel, May 31 2023
Formula
a(n) <= A002280(n)+1. - Robert Israel, May 31 2023
Extensions
More terms from Francisco Salinas (franciscodesalinas(AT)hotmail.com), Dec 23 2001