# Thread: Help with a 3-d magic square

1. ## Help with a 3-d magic square

OK, for all the math-huggers and interested people.

I was given the challenge to solve a puzzle.
This puzzle involves 27 numbers (which are 1,2,3 etc upto and including 27), which have to be placed in a 3*3*3 cube.
The sum of each row, column and pillar (so all 3 directions) has to be 42.

And to start you off, one corner has to contain the number 25.

Thanks in advance to anyone that can help me solve this math problem.

2. ## Re: Help with a 3-d magic square

Originally Posted by adamhidius
OK, for all the math-huggers and interested people.

I was given the challenge to solve a puzzle.
This puzzle involves 27 numbers (which are 1,2,3 etc upto and including 27), which have to be placed in a 3*3*3 cube.
The sum of each row, column and pillar (so all 3 directions) has to be 42.

And to start you off, one corner has to contain the number 25.

Thanks in advance to anyone that can help me solve this math problem.
An algorithm for making magic cubes