Disclaimer: ascii85(z85 (Zero MQ) encoding)(ra]?=AclFMy?j-3z/M%*vr&$uhxV<Jxj#xfByw@@ayMypxLzo]aARJAzddi>efG1FzEWl2nHFu$BzbxayIvW0aA7<mx(mA%B.2i7xcpV1vqY<6BzkM5B0bNrvrrS2A+cwmB-qqrB7F(8Bz&pzxMw3naBd)FaA7>7azbUjz6j4owPzu8D2E*MA+cw4v@#<4y&1wtB9hCvz/YG2aARJAAbn@)wGV8dwO&$vvqH16aARpdaA?Eux<$)&az$+8xj$:)A=SviA+cwaz!T94aARJAvR3V[wncc%wftq[vqfQ4B7]J4wGVhgC{40yBrz#DB-RTEBz&psvqxA%x(>Fmz/PziwnbT/x>8p4Bsv
)
Based off of Day 29 - Modulo 3 on heptavegeesimal.com
What is the gimmick for today, you might ask? Well, the number that you are shown might not be the actual amount of mines around it. If you're unfamiliar with what a modulo is, here is what it is: Say we have a number $27$ and we divide it by $4$. We have$$27\equiv3\pmod4\because4\cdot\{27/4\}=3$$where $\{x\}$ is the fractional part function, which can also be represented as $x-\lfloor x\rfloor$ or $\text{Sawtooth}[x]:=x\pmod1$[1]. Now, to make this day easier, there are only going to be double and triple mines. Here is the grid:
2 | 0 | 2 | 1 | ||||
2 | 1 | 1 | 0 | ||||
1 | 1 | 3 | 0 | 0 | |||
$\color{white}{.}$ | |||||||
1 | 0 | 1 | 2 | ||||
0 | 1 | ||||||
3 | 0 | 1 | 2 | ||||
2 | 0 | 3 | 1 |
There are 22 double mines (2) and 15 triple mines (3).
Okay so hopefully there isn't a mistake and I have done my linear algebra correctly. I was able to solve the puzzle, so I think there isn't a mistake, but still.
[1] Actually, now that I think about it, we could also think of modulo 4 as$$x\pmod4\ge4\{x/4\}=x-4\lfloor x/4\rfloor$$because we have$$x\pmod n\ge x-n\lfloor x/n\rfloor\qquad x,n\in\mathbb R,n\ne0$$which is confirmed by Wolfram Alpha.