Skip to main content Accessibility help
×
Hostname: page-component-78c5997874-mlc7c Total loading time: 0 Render date: 2024-11-10T01:20:17.711Z Has data issue: false hasContentIssue false

8 - Magic Squares

Published online by Cambridge University Press:  08 February 2010

K. Chen
Affiliation:
University of Liverpool
Peter J. Giblin
Affiliation:
University of Liverpool
A. Irving
Affiliation:
University of Liverpool
Get access

Summary

Aims of the project

Magic squares have been known for centuries. This project explores their properties from the perspective of matrix algebra, that is, using addition and multiplication of matrices. The project is not concerned with the number-theoretic problem of finding magic squares containing consecutive integers. The project is self-contained, but it may be of interest to know that several of the mathematical results come from the article [16]. This article also contains other results on the same subject.

Mathematical ideas used

Matrix multiplication, row reduced echelon form and solution of linear equations are used. Also, for example, 3 × 3 matrices are regarded as lying in nine-dimensional space R9, and subspaces of R9 are considered. (There is no requirement to know the definition of an abstract vector space: all spaces are contained in some Rn.) The ideas of linear independence and basis are used. It is necessary to know that, in a subspace X of dimension r in Rn, a set of r vectors in X which is linearly independent automatically spans X and so forms a basis. It is necessary to know the definitions of eigenvalues and eigenvectors, and to use these in a simple argument involving powers of matrices.

MATLAB techniques used

The project is about matrices, so you will need the techniques described in Chapter 2. At one point there is an M-file with several ‘for’ loops, and ‘if’ statements, so you will need to understand these ideas. See Chapter 3. Note that the project is somewhat ‘open-ended’: students who work quickly might like to go on to the final section, on 5 × 5 magic squares, which could be regarded as optional.

Type
Chapter
Information
Publisher: Cambridge University Press
Print publication year: 1999

Access options

Get access to the full version of this content by using one of the access options below. (Log in options will check for institutional or personal access. Content may require purchase if you do not have access.)

Save book to Kindle

To save this book to your Kindle, first ensure [email protected] is added to your Approved Personal Document E-mail List under your Personal Document Settings on the Manage Your Content and Devices page of your Amazon account. Then enter the ‘name’ part of your Kindle email address below. Find out more about saving to your Kindle.

Note you can select to save to either the @free.kindle.com or @kindle.com variations. ‘@free.kindle.com’ emails are free but can only be saved to your device when it is connected to wi-fi. ‘@kindle.com’ emails can be delivered even when you are not connected to wi-fi, but note that service fees apply.

Find out more about the Kindle Personal Document Service.

  • Magic Squares
  • K. Chen, University of Liverpool, Peter J. Giblin, University of Liverpool, A. Irving, University of Liverpool
  • Book: Mathematical Explorations with MATLAB
  • Online publication: 08 February 2010
  • Chapter DOI: https://doi.org/10.1017/CBO9780511624117.009
Available formats
×

Save book to Dropbox

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Dropbox.

  • Magic Squares
  • K. Chen, University of Liverpool, Peter J. Giblin, University of Liverpool, A. Irving, University of Liverpool
  • Book: Mathematical Explorations with MATLAB
  • Online publication: 08 February 2010
  • Chapter DOI: https://doi.org/10.1017/CBO9780511624117.009
Available formats
×

Save book to Google Drive

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Google Drive.

  • Magic Squares
  • K. Chen, University of Liverpool, Peter J. Giblin, University of Liverpool, A. Irving, University of Liverpool
  • Book: Mathematical Explorations with MATLAB
  • Online publication: 08 February 2010
  • Chapter DOI: https://doi.org/10.1017/CBO9780511624117.009
Available formats
×