YangHuiMagic: A Generalization of Yang Hui's Magic Squares

The generalized construction methods for magic squares, inspired by the ancient Chinese mathematician Yang Hui's classical work "Xu Gu Zhai Qi Suan Fa". These methods can construct 4n-order magic squares and 2(2n+1)-order magic squares.

Getting started

Package details

AuthorChun-Xiao Nie [aut, cre] (ORCID: <https://orcid.org/0000-0002-7790-0803>)
MaintainerChun-Xiao Nie <niechunxiao2009@163.com>
LicenseGPL-3
Version1.1
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("YangHuiMagic")

Try the YangHuiMagic package in your browser

Any scripts or data that you put into this service are public.

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