mscroggs.co.uk
mscroggs.co.uk

subscribe

Comment

Comments

Comments in green were written by me. Comments in blue were not written by me.
In attempting (and failing) to solve the puzzle when it first came out, I noticed that there were quite a few ways to colour the squares/place the kings for each minimum solution, some quite symmetrical and interesting. I wondered how many such "colourings" existed for each size of grid. And so because I apparently had nothing better to do over the weekend, I invested an inordinate amount of time coding up a script to bruteforce the number of colourings, and then a similarly inordinate amount of time optimizing it so I could get past a 5x5 grid. Here are the results:

2x2: 6
3x3: 2
4x4: 1296
5x5: 371
6x6: 8

Haven't been able to go any farther with my current script, but for what it's worth, here it is on GitHub.
Aaron
on /blog/114
   ×1            

Archive

Show me a random blog post
 2026 

Feb 2026

Christmas (2025) is over
 2025 
▼ show ▼
 2024 
▼ show ▼
 2023 
▼ show ▼
 2022 
▼ show ▼
 2021 
▼ show ▼
 2020 
▼ show ▼
 2019 
▼ show ▼
 2018 
▼ show ▼
 2017 
▼ show ▼
 2016 
▼ show ▼
 2015 
▼ show ▼
 2014 
▼ show ▼
 2013 
▼ show ▼
 2012 
▼ show ▼

Tags

mathsjam numbers christmas geogebra london underground nonograms data graph theory youtube regular expressions puzzles rust big internet math-off bubble bobble manchester science festival geometry weather station a gamut of games crochet gather town golden spiral exponential growth hexapawn runge's phenomenon anscombe's quartet data visualisation dragon curves databet mathsteroids javascript polynomials chess light royal baby speed tmip misleading statistics pac-man rugby graphs craft gerry anderson inverse matrices folding paper simultaneous equations asteroids matrix of cofactors warwick quadrilaterals arithmetic palindromes oeis royal institution pythagoras london hats probability logo hannah fry sorting triangles numerical analysis standard deviation news bots phd raspberry pi gaussian elimination error bars trigonometry cambridge captain scarlet advent calendar convergence game of life curvature matt parker talking maths in public sound dates dataset video games propositional calculus folding tube maps chebyshev reddit map projections braiding game show probability bodmas dinosaurs crossnumber realhats mean matrix of minors sport statistics electromagnetic field frobel christmas card turtles boundary element methods estimation preconditioning newcastle countdown machine learning chalkdust magazine nine men's morris finite element method 24 hour maths weak imposition partridge puzzle books world cup signorini conditions flexagons errors datasaurus dozen hyperbolic surfaces national lottery friendly squares reuleaux polygons football pi approximation day coins crosswords rhombicuboctahedron noughts and crosses inline code coventry binary ucl computational complexity interpolation squares final fantasy edinburgh finite group determinants ternary people maths mathslogicbot kings stirling numbers pi menace the aperiodical golden ratio zines wool logs approximation accuracy correlation programming matrix multiplication bempp kenilworth pascal's triangle crossnumbers radio 4 pizza cutting martin gardner platonic solids go games fonts wave scattering thirteen matrices fence posts sobolev spaces python logic harriss spiral alphabets cross stitch manchester draughts tennis php live stream latex guest posts fractals plastic ratio european cup recursion stickers

Archive

Show me a random blog post
▼ show ▼
© Matthew Scroggs 2012–2026