A lattice cube is a cube in which all vertices have integer coordinates. Let be the number of different lattice cubes in which the coordinates of all vertices range between (and including) and . Two cubes are hereby considered different if any of their vertices have different coordinates.
For example, , , , , and .
Different cubes may contain different numbers of lattice points.
For example, the cube with the vertices , , , , , , , contains lattice points ( lattice points on the surface including the vertices and points within the cube).
In contrast, the cube with the vertices , , , , , , , contains only lattice points ( points on the surface and points within the cube), although both cubes have the same side length .
Let be the sum of the lattice points contained in the different lattice cubes in which the coordinates of all vertices range between (and including) and .
For example, , , , , and .
Find .
Write-up coming later
The complete problem is available here. An approach, code, and answer will be added later.