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

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

Archive

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