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

857 Solutions

328 Solvers

Last Solution submitted on Feb 12, 2026

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...

Problem Recent Solvers328

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!