I made a blog post using Haskell to generate fibonacci numbers :)

fibonacci-title

Hello,

I’m a beginner at Haskell & I made a blog post about generating fibonacci numbers that I found interesting :slight_smile:

https://timothysamson.github.io/posts/fibonacci-haskell/

5 Likes

That’s a very good write up, thanks!

1 Like

Bad things happen when you plug in values for which are outside this range! Try plugging in x = 2
1 / (1 - 2) = -1 = 1 + 2 + 4 + 8 + …

This makes another explanation why the binary representation of -1 is precisely 1 + 2 + 4 + 8 + …

4 Likes

2-adic numbers have entered the chat

4 Likes