Published March 10, 2025 | Version 0.069
Software Open

Generating Perimeter-magic Polygons

  • 1. ROR icon Max Planck Institute for Astronomy

Description

The C++ program perimMagicPoly constructs and counts perimeter-magic polygons for a given number of polygonal sides and given number of integer elements on each side, requiring that the sum of the elements of each of the sides is the same. 

Various symmetry-related further requirements are supported: (i) do the integers need to be distinct? (ii) do rotations along the polygonal axis or mirrors along symmetry lines through the polygon centers establish the same or different solutions? (iii) to the integers need to be a set of consecutive numbers starting at 1?

Files

perimMagicPoly.zip

Files (222.3 kB)

Name Size Download all
md5:949b09b4918a247f9a33673a5b3636f2
222.3 kB Preview Download

Additional details

Dates

Created
2025-03-10

Software

Programming language
C++