mscroggs.co.uk
mscroggs.co.uk

subscribe

Comment

Comments

Comments in green were written by me. Comments in blue were not written by me.
Another great puzzle calendar, thanks!
I eventually coded Day 21 and while I can certainly see how it could be broken down into a very large number of cases for the purposes of calculation, I am wondering if there is an elegant approach to this one?
Blake
on /blog/120
               
@Blake: It's actually not that many different parts. I did it in a spreadsheet, and there were 30 things to calculate. But once I figured out how they should be organized and calculated, each one was very quick.
(anonymous)
on /blog/120
               
@(anonymous): It’s certainly do-able, but whereas I was able to find a single simple summation formula for the day that asked for no odd consecutive amounts, this one has eluded me so just wondering if an elegant approach does exist
Blake
on /blog/120
               
@Blake: there is an elegant solution but it is very different from day 14. If a small hint is allowed:

recurrence relations!
Aisha
on /blog/120
               
@Aisha: Thanks! I did think of that originally but even going back now I can’t seem to find a neat way to apply that approach (and even the OEIS doesn’t seem to give one for the sequence I get solving this for smaller cases). Would be interested to know how you went about this! As it happens, with a bit more thought I did end up finding a single (double-summation) formula that could be used to calculate this
Blake
on /blog/120
               
@Aisha: Hm, I used exactly the same method for both of these days. I'm not sure if it lends itself to a nice clean formula, but it might! I'll share my approach after the contest is over!
Seth Cohen
on /blog/120
               

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

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

Archive

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