Post #2016367
2017-08-09 10:02 UTC
Inspired by Alison Kiddle, I've made an Auto-Santa 3000: given a list of naughty things, add up the scores of the things you did. Then it uses the total to tell you the things you did! https://mathstodon.xyz/media/wabXGCyuSpERkVXHjGA https://mathstodon.xyz/media/BiBHC_ZU9XjOmyBGT3I
Replies (2)
-
@christianp@mathstodon.xyz 2017-08-09 10:04
Alison's version uses powers of two, so you can recover the items by writing down the binary representation of the total. I realised you can use Zeckendorf arithmetic: if the scores are alternating terms of the Fibonacci sequence, each total can be decomposed uniquely. But the only property I need is \(f(n+2) \geq f(n+1) + f(n)\), so I add some random noise on to each score to make it extra-spooky.
-
@christianp@mathstodon.xyz 2017-08-09 12:30
just noticed I didn't include the link! It's at https://codepen.io/christianp/full/Ojmbra/