Go package to generate and count Nth number of Lucas sequence (Fibonacci, Lucas, Pell, etc.s). Nth counting is optimized
This library supports big numbers and return big.Int pointer(s).
fib9 := lucas.GenerateFibonacci(10)
fmt.Println(fib9[9].Int64()) // 34fib10 := lucas.NthFibonacci(10)
fmt.Println(fib10.Int64()) // 55go get github.com/hamonangann/lucasFork this repository, then open a pull request to improve this project. I welcome any kind of contributions!
If you have any questions, please raise an issue.