magic.composite {magic}R Documentation

Composite magic squares

Description

Gives a magic square that is a product of two magic squares.

Usage

magic.composite(a, b)

Arguments

a First magic square; if a is an integer, use magic(a).
b as above

Details

Produces a magic square of order order(a)*order(b).

Author(s)

Robin K. S. Hankin

References

William H. Benson and Oswald Jacoby. New recreations with magic squares, Dover 1976.

Examples

magic.composite(3,4)
magic.composite(4,3)

[Package Contents]