Successive zeros - MATLAB Cody - MATLAB Central

Problem 45436. Successive zeros

Difficulty:Rate

Suppose n is the number of digits a number contains. Now,

 12032 - is a valid n=5 digit number. But
 10023 - is defined as invalid -- because it contains two successive zeros.

Calculate the number of n-digit numbers that do not contain successive d-number of zeros.

Solution Stats

50.0% Correct | 50.0% Incorrect
Last Solution submitted on Apr 16, 2024

Problem Comments

Solution Comments

Show comments
LLMs with MATLAB updated to support the latest OpenAI Models
Large Languge model with MATLAB, a free add-on that lets you access...
2
3

Problem Recent Solvers16

Suggested Problems

More from this Author165

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