login
A119273
Absolute value of the difference between largest square and largest cube each with n decimal digits.
1
1, 17, 232, 540, 2520, 27702, 59869, 82657, 2947885, 5851737, 37568808, 297970002, 478867545, 5721476626, 29961646177, 65107456694, 570931518444, 2997997000002, 9607464857096, 53858918990529, 299956723113202, 1253472906066265, 2171966135005184
OFFSET
1,2
COMMENTS
a(n) = |A061433(n) - A061435(n)|, where A061433 and A061435 are the largest n-digit square and cube.
LINKS
FORMULA
a(n) = (ceiling(10^(n/2)) - 1)^2 - (ceiling(10^(n/3)) - 1)^3.
MATHEMATICA
Table[Abs[Floor[Sqrt[10^n-1]]^2-Floor[Surd[10^n-1, 3]]^3], {n, 30}] (* Harvey P. Dale, Apr 24 2022 *)
CROSSREFS
Sequence in context: A016166 A358712 A206354 * A125474 A264455 A142126
KEYWORD
base,nonn
AUTHOR
Zak Seidov, May 12 2006
EXTENSIONS
Corrected, extended, and definition clarified by Harvey P. Dale, Apr 24 2022
STATUS
approved