Problem 44311. Number of Even Elements in Fibonacci Sequence
Find how many even Fibonacci numbers are available in the first d numbers.
Consider the following first 14 numbers
1 1 2 3 5 8 13 21 34 55 89 144 233 377 ...
4 of them are even.
Solution Stats
Problem Comments
-
7 Comments
Show
4 older comments
Pisces
on 12 Jul 2022
Not a hard problem at all lol
Ricardo
on 13 Nov 2022
The Tran Tran comment is the key to solve the problem.
Robert Wagner
on 9 Nov 2023
interesting - I never noticed the groups of 3
Solution Comments
Show commentsProblem Recent Solvers1442
Suggested Problems
-
Find the sum of all the numbers of the input vector
51568 Solvers
-
Given an unsigned integer x, find the largest y by rearranging the bits in x
1898 Solvers
-
617 Solvers
-
Given a matrix, swap the 2nd & 3rd columns
1169 Solvers
-
Find my daddy long leg (No 's')
2557 Solvers
More from this Author92
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!