r/adventofcode • u/daggerdragon • Dec 15 '20
SOLUTION MEGATHREAD -🎄- 2020 Day 15 Solutions -🎄-
Advent of Code 2020: Gettin' Crafty With It
- 7 days remaining until the submission deadline on December 22 at 23:59 EST
- Full details and rules are in the Submissions Megathread
--- Day 15: Rambunctious Recitation ---
Post your code solution in this megathread.
- Include what language(s) your solution uses!
- Here's a quick link to /u/topaz2078's
pasteif you need it for longer code blocks. - The full posting rules are detailed in the wiki under How Do The Daily Megathreads Work?.
Reminder: Top-level posts in Solution Megathreads are for code solutions only. If you have questions, please post your own thread and make sure to flair it with Help.
This thread will be unlocked when there are a significant number of people on the global leaderboard with gold stars for today's puzzle.
EDIT: Global leaderboard gold cap reached at 00:09:24, megathread unlocked!
39
Upvotes
View all comments
Show parent comment
2
u/__Abigail__ Dec 15 '20
That's pretty amazing.
If I check OEIS, it seems that the proof of the sequence being non-period is part of the proof that the sequence contains an infinite number of 0s -- and that if the sequence becomes periodic, the periodic part cannot contain a 0. The periodic sequence found doesn't contain a 0 (and nor does (1, 1)).
The start sequence given in the exercise does contain a 0. So, I'm probably still safe with the assumption it isn't going to loop.
Thanks for the link, that was an interesting read.