odd_magic_square: Construct odd order magic square (Siamese method)

View source: R/odd_magic_square.R

odd_magic_squareR Documentation

Construct odd order magic square (Siamese method)

Description

Construct odd order magic square (Siamese method)

Usage

odd_magic_square(k)

Arguments

k

Odd order number

Value

k x k magic square with numbers 1 to k^2

Examples

odd_magic_square(7)

YangHuiMagic documentation built on March 23, 2026, 5:07 p.m.