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
               

Archive

Show me a random blog post
 2025 

Jan 2025

Christmas (2024) is over
Friendly squares
 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

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

Archive

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