Lucas

Returns the desired Lucas number. Similar to the Fibonacci numbers, each Lucas number is defined to be the sum of its two immediate previous terms. The first two Lucas numbers are L0=2, L1=1 and for n greater than 2, Ln=Ln-1+Ln-2.

Syntax

lucas(Integer)

Description

Given an integer nLaTeXn, returns Ln.

arithmetic.lucas.calc.png