mscroggs.co.uk
mscroggs.co.uk

subscribe

Comment

Comments

Comments in green were written by me. Comments in blue were not written by me.
You can solve the Dec 21 puzzle using the principle of inclusion/exclusion:

-There are 6! total ways of arranging 6 numbers.
-Now we have to exclude the ones that don't fit. How many ways have 2 following 1? You can think of 12 as a pair, so you're arranging 12/3/4/5/6 in any order, so there are 5! ways to do this. And there are (5 choose 1)=5 total pairs that might exist, so there are 5*5! ways that have either 12, 23, 34, 45, or 56.
-Of course, we've double counted some that have more than one pair. (This is where inclusion/exclusion comes in, we have to include them back in). So how many have, say, 12 and 45? Well now we're arranging 12/3/45/6, so there are 4! ways to do so. There are (5 choose 2)=10 different pairs, so the double counting was 10*4!.
-We continue this on, and inclusion/exclusion says we keep alternating adding and subtracting as we add more pairs, so the answer is:
6!
- (5 choose 1) * 5!
+ (5 choose 2) * 4!
- (5 choose 3) * 3!
+ (5 choose 4) * 2!
- (5 choose 5) * 1!
= 309
Todd
on /blog/88
×6   ×4   ×3   ×3   ×3   

Archive

Show me a random blog post
 2025 

Mar 2025

How to write a crossnumber

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

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

Archive

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