Visualizing a few famous integer sequences using Python (matplotlib).
They are spectacular and beautiful; aparently you can listen to them too: http://oeis.org/listen.html
- Script: vizRecaman.py
- Sequence: 0, 1, 3, 6, 2, 7, 13, 20, 12, 21, 11, 22, 10, ...
- References: https://youtu.be/FGC5TdIiT9U, https://oeis.org/A005132
B&W (N = 400) |
Colored (N = 400) |
![det-400b](/data/400b.png) |
![det-400c](/data/400c.png) |
- Script: vizFibonacci.py
- Sequence: 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, ...
- References: https://oeis.org/A000045, https://en.wikipedia.org/wiki/Fibonacci_number
Fibonacci spiral (N = 35) |
Golden-ratio spiral (N = 300) |
![det-40c](/data/35fiborect.png) |
![det-20c](/data/300fibo.png) |
- Script: vizPrimes.py
- Sequence: 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, ...
- References: https://en.wikipedia.org/wiki/Prime_number, https://en.wikipedia.org/wiki/Ulam_spiral
Ulam spiral (N = 32) |
Ulam spiral (N = 256) |
Ulam spiral (N = 256) |
![det-40c](/data/32p.png) |
![det-20c](/data/256p.png) |
![det-20c](/data/256c.png) |
- Script: vizPentagon.py
- Sequence: 1, 5, 12, 22, 35, 51, 70, 92, 117, 145, 176, 210, ...
- References: https://oeis.org/A000326