mscroggs.co.uk
mscroggs.co.uk

subscribe

Comment

Comments

Comments in green were written by me. Comments in blue were not written by me.
@Reza:

I didn't use a recurrence. When dividing into three areas, one of the the lines must span the entire grid creating two areas. Then one more line is used to split one of the just created areas into three areas. I just figured out how many ways there are to place the first line, then how many ways there are to place the second. There are two main scenarios you need to deal with:
1) Two horizontal or vertical lines
2) One horizontal and one vertical line

Hope that helps
Aaron
on /blog/107
×4   ×1   ×2   ×2   ×2   
@Aaron: Wow thank you Aaron, that was just the idea I needed. Very fun.
Reza
on /blog/107
×3   ×3   ×3   ×3   ×3   

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

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

Archive

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