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

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

Archive

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