Skip to content

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

License

Notifications You must be signed in to change notification settings

hamonangann/lucas

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

License

Stars

Watchers

Forks

Packages

No packages published

Languages