login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

Absolute value of the difference between largest square and largest cube each with n decimal digits.
1

%I #24 Apr 24 2022 11:44:39

%S 1,17,232,540,2520,27702,59869,82657,2947885,5851737,37568808,

%T 297970002,478867545,5721476626,29961646177,65107456694,570931518444,

%U 2997997000002,9607464857096,53858918990529,299956723113202,1253472906066265,2171966135005184

%N Absolute value of the difference between largest square and largest cube each with n decimal digits.

%C a(n) = |A061433(n) - A061435(n)|, where A061433 and A061435 are the largest n-digit square and cube.

%H Harvey P. Dale, <a href="/A119273/b119273.txt">Table of n, a(n) for n = 1..90</a>

%F a(n) = (ceiling(10^(n/2)) - 1)^2 - (ceiling(10^(n/3)) - 1)^3.

%t Table[Abs[Floor[Sqrt[10^n-1]]^2-Floor[Surd[10^n-1,3]]^3],{n,30}] (* _Harvey P. Dale_, Apr 24 2022 *)

%Y Cf. A061433, A061435.

%K base,nonn

%O 1,2

%A _Zak Seidov_, May 12 2006

%E Corrected, extended, and definition clarified by _Harvey P. Dale_, Apr 24 2022