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

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

Archive

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