9 frames and 1 super-frame
Hello math-Fun, Some terminology – say we have an infinite square grid like this: – we put the integer 42 somewhere in a cell (we are not allowed to put more than one integer per cell): – the cell 42 has 8 immediate neighbors – we give the name frame to the 8 cells forming this neighborhood (highlighted in yellow hereunder): – what is a rhyme in such a context? – say the sum of the 8 integers (that will form in the future the frame of 42) is k – we want k to end with the string 42 (the sum rhymes with 42 when k = 42, or 142, or 242, or 342, etc.) The goal W e want to amaze the audience by showing them a grid filled with numbers and then asking them to pick one at random. We show then that the sum of the eight neighbors of this number ends (graphically) with the chosen integer! The algorithm We start to fill the grid with a square spiral S centered on the integer 0 (zero); the constraint is to lexico-extend the spiral step by step with distinct integers rhyming wit...