NTLib - Number Theory Library 0.9
Loading...
Searching...
No Matches
lucas_sequence Module Reference

Compute terms of Lucas sequences. More...

Functions

template<Integer N, Integer S>
constexpr std::pair< S, S > ntlib::lucas_nth_term (N n, S P, S Q)
 Compute the \(n\)-th term of the Lucas sequences of the first and second kind.
template<Integer N, Integer S>
constexpr std::pair< S, S > ntlib::mod_lucas_nth_term (N n, S P, S Q, S m)
 Compute the \(n\)-th term of the Lucas sequences of the first and second kind modulo some number.

Detailed Description

Compute terms of Lucas sequences.

Files

file  modules/prime_test/lucas_sequence.cpp
 Primary module interface unit for modlue lucas_sequence.