Van Eck's Sequence's nth member - MATLAB Cody - MATLAB Central

Problem 44321. Van Eck's Sequence's nth member

Difficulty:Rate

Return the Van Eck's Sequence's nth member.

For detailed info : OEIS link and here

 seq = 0, 0, 1, 0, 2, 0, 2, 2, 1, 6, 0, 5...

First member is 0;

Second member is 0;

third member is 1 etc

Solution Stats

48.88% Correct | 51.12% Incorrect
Last Solution submitted on Nov 07, 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,...
🚀 MATLAB EXPO 2025 – Day 2 Starts Tomorrow, November 13!
Don’t miss out on two incredible keynotes that will shape the future...
0

Problem Recent Solvers324

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!