Cody

# Problem 44849. Given a base n, find the y values less or equal than 100(without 1), such that they will never produce a periodic number if we divide any whole number between some of them

Solution 1727262

Submitted on 14 Feb 2019 by Tim
• Size: 26
• This is the leading solution.
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
b = 2; y_correct = [2 4 8 16 32 64]; assert(isequal(nperiodos(b),y_correct))

2   Pass
b=3; y_correct = [3 9 27 81]; assert(isequal(nperiodos(b),y_correct))

3   Pass
b=60; y_correct = [2 3 4 5 6 8 9 10 12 15 16 18 20 24 25 27 30 32 36 40 45 48 50 54 60 64 72 75 80 81 90 96 100]; assert(isequal(nperiodos(b),y_correct))

4   Pass
b=50; y_correct = [2 4 5 8 10 16 20 25 32 40 50 64 80 100]; assert(isequal(nperiodos(b),y_correct))

5   Pass
b=10; y_correct = [2 4 5 8 10 16 20 25 32 40 50 64 80 100]; assert(isequal(nperiodos(b),y_correct))

6   Pass
b=29; y_correct = [29]; assert(isequal(nperiodos(b),y_correct))