A036529 Smallest cube containing exactly n 2's.
0, 27, 21952, 2628072, 202262003, 229220928, 22521332224, 21148222722264, 25942222239227, 2272271222935232, 2262268226562252992, 4223937222222326272, 22225347273222227224, 122245292222422449622424, 2732072222242422541222208, 22422524292920620222272827
Offset: 0
Links
- Giovanni Resta, Table of n, a(n) for n = 0..23
Crossrefs
Programs
-
Mathematica
nsmall = Table[Infinity, 20]; For[i = 0, i <= 10^6, i++, n0 = Count[IntegerDigits[i^3], 2]; If[nsmall[[n0 + 1]] > i^3, nsmall[[n0 + 1]] = i^3]]; Cases[nsmall, ?NumberQ] (* _Robert Price, Mar 20 2020 *)
Formula
a(n) = A048367(n)^3. - M. F. Hasler, Feb 21 2016
Extensions
a(12)-a(15) from Giovanni Resta, Jun 29 2018
Comments