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

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

Archive

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