A119273 Absolute value of the difference between largest square and largest cube each with n decimal digits.
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
Links
- Harvey P. Dale, Table of n, a(n) for n = 1..90
Programs
-
Mathematica
Table[Abs[Floor[Sqrt[10^n-1]]^2-Floor[Surd[10^n-1,3]]^3],{n,30}] (* Harvey P. Dale, Apr 24 2022 *)
Formula
a(n) = (ceiling(10^(n/2)) - 1)^2 - (ceiling(10^(n/3)) - 1)^3.
Extensions
Corrected, extended, and definition clarified by Harvey P. Dale, Apr 24 2022
Comments