Number of Even Elements in Fibonacci Sequence - MATLAB Cody - MATLAB Central

Problem 44311. Number of Even Elements in Fibonacci Sequence

Difficulty:Rate

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

24.62% Correct | 75.38% Incorrect
Last Solution submitted on Nov 19, 2025

Problem Comments

Solution Comments

Show comments
Join Cody Contest 2025 — Have Fun and Win Prizes!
...
We’re excited to invite you to Cody Contest 2025! 🎉 Pick a team,...

Problem Recent Solvers1610

Suggested Problems

More from this Author92

Community Treasure Hunt

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

Start Hunting!