Magic Cubes and Prouhet Sequences