Cody

# Problem 46016. Determine digits of the Copeland-Erdos constant

Solution 2713479

Submitted on 19 Jul 2020 by ChrisR
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

### Test Suite

Test Status Code Input and Output
1   Pass
n = 1; d_correct = 2; assert(isequal(CopelandErdosDigit(n),d_correct))

2   Pass
n = 2; d_correct = 3; assert(isequal(CopelandErdosDigit(n),d_correct))

3   Pass
n = 10; d_correct = 7; assert(isequal(CopelandErdosDigit(n),d_correct))

4   Pass
n = 100:105; d_correct = [1 1 9 3 1 9]; assert(isequal(CopelandErdosDigit(n),d_correct))

5   Pass
n = 2000:2005; d_correct = [3 9 8 9 4 0]; assert(isequal(CopelandErdosDigit(n),d_correct))

6   Pass
n = 54321:54331; d_correct = [1 1 1 1 5 2 2 3 1 1 5]; assert(isequal(CopelandErdosDigit(n),d_correct))

7   Pass
n = 951943; d_correct = 7 assert(isequal(CopelandErdosDigit(n),d_correct))

d_correct = 7

8   Pass
n = 8675309; d_correct = 5; assert(isequal(CopelandErdosDigit(n),d_correct))

### Community Treasure Hunt

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

Start Hunting!