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
×3   ×1            

Archive

Show me a random blog post
 2024 

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

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

Archive

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