I believe you are refering to a magic square. I forget exactly how you make them (my 5th grade math teacher Mr. Cook would be sad to hear that), but I remember something about moving diagonally until you've run out of room and then moving down. I think the procedure is also different when there are an even number of squares.
Curse your sudden but inevitable betrayal! And this tiny ad too!