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

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

Archive

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