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
 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

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

Archive

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