mscroggs.co.uk
mscroggs.co.uk

subscribe

Comment

Comments

Comments in green were written by me. Comments in blue were not written by me.
I would appreciate any small hint on how to proceed.

9: Is there a neat formula for how many squares the line passes through in terms of the dimensions?

21: Should we find a relation between the number of lists of n and the number for n-1 or some other way?
Alireza
on /blog/120
               
@Alireza: For 9 there is definitely a neat formula. I would recommend either investigating this with grids of different dimensions and/or thinking about the ways the line passes from one square to another. 21 was not easy - there’s been some discussion already in these comments (including from me)
Blake
on /blog/120
               
@Alireza: 9: I didn't try to find a formula, but I made the grid in a spreadsheet, and for each cell, I calculated if the line would pass through that cell.

21: I thought about each group of even A's as a single unit, and thought about how many ways that group of A's could be slotted among the B's. The simplest version of this is the following. You have 2 A's and 9 B's. Treat the 2 A's as a single unit that can't be divided. How many ways can you slot that unit among the B's? Now do that for every possible configuration of even groups of A's. It seems like it'd be a ton of calculation, but it ends up being "only" like 30 cases or something.
Seth Cohen
on /blog/120
               

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

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

Archive

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