Omniperiodicity
A challenge by
Bulmenisaurus
Description
In 2023 it was proven that the Game of life is omniperiodic, meaning that there exists patterns that repeat for the first time after some n steps for every n. This fact was proven only after the discovery of a period-41 oscillator, the final period that needed to be found.
Today your task is to prove that your programming language of choice is omioperiodic, which thankfully only requires you to provide a period-41 oscillator. That is, your program must print the string period-41 exactly once whenever the program is repeated some multiple of 41 times, and not print anything for any other number of repetitions.
For example, if your program was abc, the program abc by itself must not print anything, but the program abcabcabc… (“abc” repeated 41 times) must print period-41. Likewise, “abc” repeated 82 times must also print period-41 exactly once.
Your score will be the length of your code in bytes multiplied by 41 :)
Leaderboard
| Author | bytes | ||
|---|---|---|---|
| #1 |
|
lukegustafson | 2214 |
| #2 |
|
Salutations45 | 2870 |
| #3 |
|
NicknamedTwice | 3608 |
| #4 |
|
Bulmenisaurus | 3854 |