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
 2025 

Jan 2025

Christmas (2024) is over
Friendly squares
 2024 
▼ show ▼
 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

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

Archive

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