mscroggs.co.uk
mscroggs.co.uk

subscribe

Comment

Comments

Comments in green were written by me. Comments in blue were not written by me.
@selina
Good instinct to start with smaller variants of the problem and working your way up.

You've chosen a perhaps confusing way of directly tackling the big length=14 problem, by partitioning it as "how big is the set of 14-digit numbers with exactly that many 2s".

Note that you can start smaller and simpler, by just considering shorter-length numbers first.

As you work the shorter examples, you may see a pattern in construction, or a pattern in the numbers. Either intuition will help you.
Dr Matrix
on /blog/97
×2   ×1   ×1   ×1   ×1   

Archive

Show me a random blog post
 2026 

May 2026

World Cup stickers 2026

Apr 2026

A new puzzle every day
Mixing Wordle with other games

Feb 2026

Christmas (2025) is over
 2025 

Dec 2025

Christmas card 2025

Nov 2025

Christmas (2025) is coming!

Sep 2025

The partridge puzzle

Aug 2025

TMiP 2025 puzzle hunt

Jun 2025

A nonogram alphabet

Mar 2025

How to write a crossnumber

Jan 2025

Christmas (2024) is over
Friendly squares
 2024 

Dec 2024

A regular expression Christmas puzzle
Christmas card 2024

Nov 2024

Christmas (2024) is coming!

Feb 2024

Zines, pt. 2

Jan 2024

Christmas (2023) is over
 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

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

Archive

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