| DATA
|
0, 0, 0, 0, 0, 0, 6, 6, 6, 12, 12, 12, 18, 18, 18, 18, 18, 18, 30, 36, 42, 42, 42, 42, 48, 54, 54, 60, 66, 72, 78, 78, 78, 78, 78, 78, 90, 90, 96, 96, 102, 114, 120, 120, 126, 132, 144, 144, 150, 150, 156, 156, 156, 162, 180, 180, 186, 192, 204, 204, 216, 216
|
| MATHEMATICA
|
t = Compile[{{n, _Integer}}, Module[{s = 0},
(Do[If[w^3 == x^3 + y^3 + z^3, s = s + 1],
{w, 1, #}, {x, 1, #}, {y, 1, #}, {z, 1, #}] &[n]; s)]];
Map[t[#] &, Range[0, 70]] (* A212096 *)
%/6 (* integers *)
(* Peter Moses, Apr 13 2012 *)
|