EconPapers    
Economics at your fingertips  
 

Counting the Number of Squares of Each Colour in Cyclically Coloured Rectangular Grids

Marcus R. Garvie ()
Additional contact information
Marcus R. Garvie: Department of Mathematics & Statistics, University of Guelph, Guelph, ON N1G 2W1, Canada

Mathematics, 2025, vol. 13, issue 6, 1-20

Abstract: Modular arithmetic is used to apply generalized C -coloured checkerboard patterns to m × n gridded rectangles, ensuring that colours cycle both horizontally and vertically. This paper yields methods for counting the number of squares of each colour, which is a nontrivial combinatorial problem in discrete geometry. The main theorem provides a closed-form expression for a sum of floor functions, representing the count of squares for each colour. Two proofs are presented: a heuristic, constructive approach dividing the problem into sub-cases, and a purely mathematical derivation that transforms the floor sum into a closed-form solution, computable in O ( 1 ) operations, independent of m , n and C . Numerical counts are validated using a brute-force procedure in MATLAB (Version 9.14, R2023a).

Keywords: tiling theory; modular arithmetic; checkerboard patterns; combinatorial enumeration; floor sums; MATLAB (search for similar items in EconPapers)
JEL-codes: C (search for similar items in EconPapers)
Date: 2025
References: View complete reference list from CitEc
Citations:

Downloads: (external link)
https://www.mdpi.com/2227-7390/13/6/1013/pdf (application/pdf)
https://www.mdpi.com/2227-7390/13/6/1013/ (text/html)

Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.

Export reference: BibTeX RIS (EndNote, ProCite, RefMan) HTML/Text

Persistent link: https://EconPapers.repec.org/RePEc:gam:jmathe:v:13:y:2025:i:6:p:1013-:d:1616696

Access Statistics for this article

Mathematics is currently edited by Ms. Emma He

More articles in Mathematics from MDPI
Bibliographic data for series maintained by MDPI Indexing Manager ().

 
Page updated 2025-04-05
Handle: RePEc:gam:jmathe:v:13:y:2025:i:6:p:1013-:d:1616696