How many Fibonacci numbers? - MATLAB Cody - MATLAB Central

Problem 44481. How many Fibonacci numbers?

Difficulty:Rate

Find the number of unique Fibonacci numbers (don't count repeats) in a vector of positive integers.

Example:

 x = [1 2 3 4 5 6 7 8 8]
 y = 5

Solution Stats

29.8% Correct | 70.2% Incorrect
Last Solution submitted on Feb 26, 2025

Problem Comments

Solution Comments

Show comments
Primes and Rough Numbers, Basic ideas
What is a rough number? What can they be used...
3
5

Problem Recent Solvers795

Suggested Problems

Problem Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Go to top of page