ArticleslgStudy

mathematics

Leonardo number

Leonardo number is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Leonardo number rather than just read about it. In short: The Leonardo numbers are a sequence of numbers given by the recurrence: L ( n ) = { 1 if n = 0 1 if n = 1 L ( n − 1 ) + L ( n − 2 ) + 1 if n > 1 {\displaystyle L(n)={\begin{cases}1&{\mbox{if }}n=0\\1&{\mbox{if }}n=1\\L(n-1)+L(n-2)+1&{\mbox{if }}n>1\\\end{cases}}} Edsger W. Dijkstra used them as an integral part of his smoothsort algorithm, and also analyzed them in some detail.

Key takeaways

  • Leonardo number belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Leonardo number to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Leonardo number from memory before moving on to harder problems.

Reference excerpt

The Leonardo numbers are a sequence of numbers given by the recurrence:

L ( n ) = { 1 if n = 0 1 if n = 1 L ( n − 1 ) + L ( n − 2 ) + 1 if n > 1 {\displaystyle L(n)={\begin{cases}1&{\mbox{if }}n=0\\1&{\mbox{if }}n=1\\L(n-1)+L(n-2)+1&{\mbox{if }}n>1\\\end{cases}}}

Edsger W. Dijkstra used them as an integral part of his smoothsort algorithm, and also analyzed them in some detail. A Leonardo prime is a Leonardo number that is also prime.

Name The term "Leonardo number" was coined by Dijkstra, and the derivation is not given explicitly. Given the close relationship to the famous sequence credited to Leonardo Fibonacci, he may have considered the subject trivial. There is no known nor likely connection to Leonardo da Vinci, the most common subject of that mononym.

Values The first few Leonardo numbers are

1, 1, 3, 5, 9, 15, 25, 41, 67, 109, 177, 287, 465, 753, 1219, 1973, 3193, 5167, 8361, ... (sequence A001595 in the OEIS) The first few Leonardo primes are

3, 5, 41, 67, 109, 1973, 5167, 2692537, 11405773, 126491971, 331160281, 535828591, 279167724889, 145446920496281, 28944668049352441, 5760134388741632239, 63880869269980199809, 167242286979696845953, 597222253637954133837103, ... (sequence A145912 in the OEIS)

Modulo cycles The Leonardo numbers form a cycle in any modulo n ≥ 2 {\displaystyle n\geq 2} . An easy way to see it is:

If a pair of numbers modulo n {\displaystyle n} appears twice in the sequence, then there is a cycle. If we assume the main statement is false, using the previous statement, then it would imply there are an infinite number of distinct pairs of numbers between 0 {\displaystyle 0} and n − 1 {\displaystyle n-1} , which is false since there are n 2 {\displaystyle n^{2}} such pairs. The cycles for n ≤ 8 {\displaystyle n\leq 8} are:

The cycle always end on the pair ( 1 , n − 1 ) {\displaystyle (1,n-1)} , as it is the only pair which can precede the pair ( 1 , 1 ) {\displaystyle (1,1)} .

Expressions The following equation applies:

L ( n ) = 2 L ( n − 1 ) − L ( n − 3 ) {\displaystyle L(n)=2L(n-1)-L(n-3)}

Relation to Fibonacci numbers The Leonardo numbers are related to the Fibonacci numbers by the relation L ( n ) = 2 F ( n + 1 ) − 1 , n ≥ 0 {\displaystyle L(n)=2F(n+1)-1,n\geq 0} . From this relation it is straightforward to derive a closed-form expression for the Leonardo numbers, analogous to Binet's formula for the Fibonacci numbers:

L ( n ) = 2 φ n + 1 − ψ n + 1 φ − ψ − 1 = 2 5 ( φ n + 1 − ψ n + 1 ) − 1 = 2 F ( n + 1 ) − 1 {\displaystyle L(n)=2{\frac {\varphi ^{n+1}-\psi ^{n+1}}{\varphi -\psi }}-1={\frac {2}{\sqrt {5}}}\left(\varphi ^{n+1}-\psi ^{n+1}\right)-1=2F(n+1)-1}

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Leonardo number

Start with the simplest possible case. Write down what Leonardo number claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Leonardo number before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Leonardo number ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Leonardo number

In research
Leonardo number appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Leonardo number in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Leonardo number is common in secondary-school and first-year university syllabi. It links to neighbouring topics Fibonacci numbers, Integer sequences, Recurrence relations, so understanding it makes those chapters shorter.
In everyday life
Look for Leonardo number outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Leonardo number” →

Affiliate

Preply — study more efficiently by working with a personal tutor. 50% off.

How to study Leonardo number in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Leonardo number means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Leonardo number out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Leonardo number in simple terms?

The Leonardo numbers are a sequence of numbers given by the recurrence: L ( n ) = { 1 if n = 0 1 if n = 1 L ( n − 1 ) + L ( n − 2 ) + 1 if n > 1 {\displaystyle L(n)={\begin{cases}1&{\mbox{if }}n=0\\1&{\mbox{if }}n=1\\L(n-1)+L(n-2)+1&{\mbox{if }}n>1\\\end{cases}}} Edsger W. Dijkstra used them as an…

Why does Leonardo number matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Leonardo number?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Leonardo number.

Tags

  • Fibonacci numbers
  • Integer sequences
  • Recurrence relations

Keep exploring