Luca's numbers....

Just like Fibonacci numbers , there are L u c a s \color{#3D99F6}{Luca's} numbers... They are defined by following recurrence relation. L 0 = 2 L_0=2 L 1 = 1 L_1 =1 and \text{and} L n = L n 1 + L n 2 L_n = L_{n-1} + L_{n-2}

Find the value of n = 0 10 L n \displaystyle \sum_{n=0} ^{10} L_n

Note :- I read about Luca's numbers at this problem in the tag recurrence relations, and i think the same thing as why the maker had chosen L 10 L_{10} as asked answer, the same is why I also have chosen it to be sum till 10. After you get the answer, you'll come to know it, the answer number looks very good. \color{#D61F06}{\text{the answer number looks very good.}}


The answer is 321.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

3 solutions

Aditya Raut
Jul 12, 2014

The easy way to solve this is C O M P U T E \color{#3D99F6}{COMPUTE} the numbers manually, we see that they will be

2 , 1 , 3 , 4 , 7 , 11 , 18 , 29 , 47 , 76 , 123 2,1,3,4,7,11,18,29,47,76,123 . (Observe that L 10 = 123 L_{10} = 123 , that's looking a good number :P 123 )

The sum of all these is n = 0 10 L n = 2 + 1 + 3 + 4 + 7 + 11 + 18 + 29 + 47 + 76 + 123 = 321 \displaystyle \sum_{n=0} ^{10} L_n = 2+1+3+4+7+11+18+29+47+76+123 = \boxed{321}

The reason why I chose the number 10 10 in the problem is that L 10 L_{10} is 123 \color{#20A900}{123} and sum of terms till L 10 L_{10} is 321 \color{#20A900}{321 } , mirror images ! That's a coincidence ....

If I'm not mistaken, this series progresses just like the series ϕ n + 1 ϕ n \phi^n + \dfrac{1}{\phi^n} , where ϕ \phi is the golden ratio, right?

Prasun Biswas - 6 years, 6 months ago

Good solution, and sorry for being picky, but it's Lucas number (apostrophe not needed).

A Former Brilliant Member - 1 year, 3 months ago
Mark H
Jul 15, 2014

There is an easy way of solve this which is just noting the pattern of the summation.

S = L 0 + L 1 + L 2 + L 3 + L 4 + L 5 + L 6 + L 7 + L 8 + L 9 + L 10 S = L_0 + L_1 + L_2 + L_3 + L_4 + L_5 + L_6 + L_7 + L_8 + L_9 + L_{10} sum every pair using the recurrence S = L 2 + L 4 + L 6 + L 8 + L 10 + L 10 S = L_2 + L_4 + L_6 + L_8 + L_{10} + L_{10} add L 1 L_1 to both sides

S + L 1 = L 1 + L 2 + L 4 + L 6 + L 8 + L 10 + L 10 S + L_1 = L_1 + L_2 + L_4 + L_6 + L_8 + L_{10} + L_{10}

use the recurrence again repeatedly until completely simplified

S + L 1 = L 3 + L 4 + L 6 + L 8 + L 10 + L 10 S + L_1 = L_3+ L_4 + L_6 + L_8 + L_{10} + L_{10} S + L 1 = L 5 + L 6 + L 8 + L 10 + L 10 S + L_1 = L_5 + L_6 + L_8 + L_{10} + L_{10} S + L 1 = L 7 + L 8 + L 10 + L 10 S + L_1 =L_7 + L_8 + L_{10} + L_{10} S + L 1 = L 9 + L 10 + L 10 S + L_1 = L_9+ L_{10} + L_{10} S + L 1 = L 11 + L 10 S + L_1 = L_{11} + L_{10} S + L 1 = L 12 S + L_1 = L_{12} S = L 12 L 1 S = L_{12} - L_1

Giving us S = 322 1 = 321 S=322-1 = 321

Brock Brown
Dec 27, 2014

Using dynamic programming:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
memo = {0:2,1:1}
def luca(n):
    if n in memo:
        return memo[n]
    memo[n] = luca(n - 1) + luca(n - 2)
    return memo[n]
total = 0
for n in xrange(11):
    total += luca(n)
print total

Good, I do like comp sci approaches to Math problems because that improves our skills, though not of maths! One of the biggest objectives of Brilliant.org is learning and this one helps people learn Computer Science! Kudos :)

Aditya Raut - 6 years, 5 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...