D-Dimensional hypercubes and the Euler and MacNeish conjectures