Returns the k_th number in the Lucas Sequence reduced modulo n.

Namespace: MonoSoftware.Core
Assembly: MonoSoftware.Core (in MonoSoftware.Core.dll) Version: 1.0.40.669 (1.0.40.669)

Syntax

C#
public static BigInteger[] LucasSequence(
	BigInteger P,
	BigInteger Q,
	BigInteger k,
	BigInteger n
)
Visual Basic
Public Shared Function LucasSequence ( 
	P As BigInteger,
	Q As BigInteger,
	k As BigInteger,
	n As BigInteger
) As BigInteger()
Visual C++
public:
static array<BigInteger^>^ LucasSequence(
	BigInteger^ P, 
	BigInteger^ Q, 
	BigInteger^ k, 
	BigInteger^ n
)
F#
static member LucasSequence : 
        P : BigInteger * 
        Q : BigInteger * 
        k : BigInteger * 
        n : BigInteger -> BigInteger[] 

Return Value

Type: array<BigInteger>[]()[][]

See Also