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

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

Archive

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