Solving Nonconsecutive Fibonacci Challenges

  • Context: Undergrad 
  • Thread starter Thread starter zhx_haq
  • Start date Start date
Click For Summary

Discussion Overview

The discussion revolves around methods for expressing natural numbers as sums of distinct, nonconsecutive Fibonacci numbers. Participants explore various approaches, including algorithmic strategies and mathematical insights, while addressing specific examples such as 52, 143, 13, and 88.

Discussion Character

  • Exploratory
  • Mathematical reasoning
  • Technical explanation
  • Homework-related

Main Points Raised

  • Some participants suggest using a greedy algorithm to select the largest Fibonacci number that fits within the target number, adjusting as necessary to ensure nonconsecutiveness.
  • One participant describes a brute force approach, noting that the Fibonacci sequence does not exhibit super-increasing properties, which complicates the problem.
  • Another participant shares a programming experience related to calculating sums of Fibonacci numbers, indicating that it can be efficiently solved for integers under 100,000.
  • There is mention of a mathematical formula for Fibonacci numbers, but the complexity of finding an explicit formula for the number of ways to sum to a particular number is acknowledged.
  • Some participants express uncertainty about the usefulness of their methods, questioning whether their approaches are mathematically rigorous.

Areas of Agreement / Disagreement

Participants do not reach a consensus on the best method for solving the problem. Multiple competing views and approaches are presented, with no clear resolution on the most effective strategy.

Contextual Notes

Some limitations are noted, such as the lack of an explicit formula for the number of ways to express a number as a sum of Fibonacci numbers and the dependence on the properties of the Fibonacci sequence.

zhx_haq
Messages
1
Reaction score
0
i need help with finding out how to solve the following:

Express the following natural numbers as a sum of distinct, nonconsecutive Fibonacci numbers: 52, 143, 13, 88.

 
Mathematics news on Phys.org
zhx_haq said:
i need help with finding out how to solve the following:

Express the following natural numbers as a sum of distinct, nonconsecutive Fibonacci numbers: 52, 143, 13, 88.

i'd write out a little of the sequence obviously.

1, 1, 2, 3, 5, 8, 13, 21, 34[/color], 55, 89, 144

so if we pick 34...we have a leftover of 18. 18 can be made by adding 5 and 13.

13 is easy...just 5 and 8...

143...we can't use 144 so we pick randomly 89 for being largest.
143-89=54... so we form a 54 out of 34, 13, 5 and 2.
so 143 = 89+34+13+5+2
And 88 is just 88=55+21+8+3+1

but that's not mathematics that's actually doing it. So I don't know if it's useful.
 
Had the fibonacci sequence been a series of super increasing numbers (the next number in the list is greater than the sum of all numbers behind it) than this question would have made more sense as all you do is subtract the target number by the largest number in the series which is less than the target number... But appearantly you have to do it by brute force...
 
I'd use a greedy algorithm. Take the largest number that fits, and continue down the line, backing up when needed. For 143:
89 <= 143 < 144, so choose 89. 143 - 89 = 54.
Since you chose 89 the next one must be at most 34 (skipping 55), so choose that. 54 - 34 = 20.
Likewise, you must choose at most 13 (skipping 21), so choose that. 20 - 13 = 7.
You must choose at most 5 (skipping 8), so choose that. 7 - 5 = 2.
Since 2 is a Fibonacci number not next to 5, choosing that solves this problem.

I did some programming with a similar problem recently (calculating a b-file for Sloane's http://www.research.att.com/~njas/sequences/A013583 ). It's actually not a hard problem; I was able to find all the ways to make Fibonacci numbers sum to each integer < 100,000 in something like 2 seconds.
 
Last edited by a moderator:
My math teacher said that if you can put the sum in the form of an equation that doesn't take the previews term to find the next...like a function...you'd get rich and you'd never have to work again. So good luck!
 
Robokapp said:
My math teacher said that if you can put the sum in the form of an equation that doesn't take the previews term to find the next...like a function...you'd get rich and you'd never have to work again. So good luck!

Which sum, the Fibonacci numbers? That's not hard.

[tex]F_n=\frac{(1+\sqrt5)^n-(1-\sqrt5)^n}{2^n\sqrt5}[/tex]

Finding an explicit formula for the number of ways to sum to a particular number using Fibonacci numbers is harder, but Sloane's list has this:
[tex]\frac1n\sum^n_{k=1}\left(a(n-k)\sum_{f\mid k} (-1)^{k/f+1}\cdot f\right)[/tex]
 
Last edited:

Similar threads

  • · Replies 4 ·
Replies
4
Views
1K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 11 ·
Replies
11
Views
4K
  • · Replies 16 ·
Replies
16
Views
3K
Replies
6
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 10 ·
Replies
10
Views
3K