Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lucas

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).

Example

fib9 := lucas.GenerateFibonacci(10)
fmt.Println(fib9[9].Int64()) // 34
fib10 := lucas.NthFibonacci(10)
fmt.Println(fib10.Int64()) // 55

Installation

go get github.com/hamonangann/lucas

Contribution

Fork 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.

About

Go library for generating and counting Nth number of Lucas sequence (Fibonacci, Pell, Lucas, etc.)

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages