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

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

Archive

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