Skip to content
HN On Hacker News ↗

Unusual uses of OEIS sequences on GitHub

▲ 33 points 3 comments by surprisetalk 6d ago HN discussion ↗

Pangram verdict · v3.3

We believe that this document is fully human-written

0 %

AI likelihood · overall

Human
100% human-written 0% AI-generated
SEGMENTS · HUMAN 2 of 2
SEGMENTS · AI 0 of 2
WORD COUNT 339
PEAK AI % 0% · §2
Analyzed
May 20
backend: pangram/v3.3
Segments scanned
2 windows
avg 170 words each
Distribution
100 / 0%
human / AI fraction
Verdict
Human
Pangram v3.3

Article text · 339 words · 2 segments analyzed

Human AI-generated
§1 Human · 0%

I went hunting for references to the OEIS in open source code, and found some weird ones.There are not one, but two live-coding music frameworks that use OEIS sequences as a source for “anything that can be sequenced” in music. I’m guessing that’s used for choosing pseudorandom melodies, interesting rhythyms, or how to overlap tracks in different ways.The first project is called mercury, which is advertised as having “an extensive library of algorithms to generate or transform numbersequences that can modulate parameters.”As far as OEIS sequences, they have A000045 (Fibonacci), A006190 (Fibonacci-like), A000032 (Lucas), A000129 (Pell), which are all Fibonacci-like.Then there’s ziffers, which is an extension for Sonic Pi. In their ziffers/lib/enumerables.rb there are a lot more, and weirder sequences.It has the de Bruijn sequence (A000695), Recamán’s sequence (A005132), Thue-Morse (A010060), Dress’s sequence (A001316), and many more. There are a bunch of 10-adic decimal expansions like A225410, the 10-adic integer x such that $x^3 = 7/9$, which seems…music-theory ish?And then there’s the Inventory Sequence, A342585 (oh goodness what is going on there), which seems very much NOT music-theory ish.My real question is: how does music that relies on these weird sequences actually sound? I can’t imagine a melody decided by the Inventory Sequence sounds very good. Every time someone does music based on the digits of pi, it’s kind of meh. But let me know if you’ve tried this.The Kobo e-reader has a document viewing program called Plato. It has a pen tool for markup, and for whatever reason, they use A000041 (the number of partitions of n) as the options for pen size. No reasoning was given in the commit/PR that added this.

§2 Human · 0%

Finally, the GC wizard is a geocaching app that serves as “an offline tool to support geocachers with in-field mysteries and riddles.”There are many hard-coded OEIS sequences and formulas in it, which leads to the amusing mental image of cache hunters standing in the wilderness, trying to decode a clue based on the look-and-say sequence, maybe using a stick to draw formulas in the dirt.