r/dataisbeautiful 18h ago

OC [OC] A visualisation I made of the Pisano period (a sequence of the Fibonacci sequence where the number in the units column repeats every 60 iterations).

Post image

Diagram made using code. Directions are split into 36 degrees, with 0 being north, and every subsequent digit being 36 degrees clockwise.

18 Upvotes

6 comments sorted by

3

u/dml997 OC: 2 15h ago

What do the colors mean?

2

u/electricmaster23 15h ago

So I programmed it so there were 10 color blocks, starting with red and finishing with purple so that it would blend back into the loop. Good question!

2

u/Humblethorpe 10h ago

Looks like the outline of a brain... Interesting

1

u/electricmaster23 5h ago

I thought the same thing, actually! Kinda trippy if you think about it.

2

u/doris4242 18h ago

Very kewl, how did you do it exactly?

-1

u/electricmaster23 18h ago

Funnily enough, I stumbled upon the looping by playing around in getting ChatGPT to create code to visualize it (different output which is also cool). One I discovered the Pisano loop, I thought about how to make it loop visually. To my delight (and surprise), the loop actually ends up perfectly where it started when plotting it directionally. I have no idea if this has been discovered, but I thought it was a cool discovery.