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

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

Archive

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