Cody

# Problem 1082. Lychrel Number Test (Inspired by Project Euler Problem 55)

Solution 176442

Submitted on 12 Dec 2012 by Aurelien Queffurust
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
%% assert(islychrel(3763));

``` counter = 1 tf = 0 counter = 2 counter = 3 counter = 4 counter = 5 counter = 6 counter = 7 counter = 8 counter = 9 counter = 10 counter = 11 counter = 12 counter = 13 counter = 14 counter = 15 counter = 16 counter = 17 counter = 18 counter = 19 counter = 20 counter = 21 counter = 22 counter = 23 counter = 24 counter = 25 counter = 26 counter = 27 counter = 28 counter = 29 counter = 30 counter = 31 counter = 32 counter = 33 counter = 34 counter = 35 counter = 36 counter = 37 counter = 38 counter = 39 counter = 40 counter = 41 counter = 42 counter = 43 counter = 44 counter = 45 counter = 46 counter = 47 counter = 48 counter = 49 counter = 50 tf = 1 ```

2   Pass
%% assert(islychrel(5943));

``` counter = 1 tf = 0 counter = 2 counter = 3 counter = 4 counter = 5 counter = 6 counter = 7 counter = 8 counter = 9 counter = 10 counter = 11 counter = 12 counter = 13 counter = 14 counter = 15 counter = 16 counter = 17 counter = 18 counter = 19 counter = 20 counter = 21 counter = 22 counter = 23 counter = 24 counter = 25 counter = 26 counter = 27 counter = 28 counter = 29 counter = 30 counter = 31 counter = 32 counter = 33 counter = 34 counter = 35 counter = 36 counter = 37 counter = 38 counter = 39 counter = 40 counter = 41 counter = 42 counter = 43 counter = 44 counter = 45 counter = 46 counter = 47 counter = 48 counter = 49 counter = 50 tf = 1 ```

3   Pass
%% assert(islychrel(4709));

``` counter = 1 tf = 0 counter = 2 counter = 3 counter = 4 counter = 5 counter = 6 counter = 7 counter = 8 counter = 9 counter = 10 counter = 11 counter = 12 counter = 13 counter = 14 counter = 15 counter = 16 counter = 17 counter = 18 counter = 19 counter = 20 counter = 21 counter = 22 counter = 23 counter = 24 counter = 25 counter = 26 counter = 27 counter = 28 counter = 29 counter = 30 counter = 31 counter = 32 counter = 33 counter = 34 counter = 35 counter = 36 counter = 37 counter = 38 counter = 39 counter = 40 counter = 41 counter = 42 counter = 43 counter = 44 counter = 45 counter = 46 counter = 47 counter = 48 counter = 49 counter = 50 tf = 1 ```

4   Pass
%% assert(~islychrel(3664));

``` counter = 1 tf = 0 counter = 2 counter = 3 counter = 4 counter = 5 counter = 6 ```

5   Pass
%% assert(~islychrel(3692));

``` counter = 1 tf = 0 counter = 2 counter = 3 ```

6   Pass
%% assert(islychrel(196));

``` counter = 1 tf = 0 counter = 2 counter = 3 counter = 4 counter = 5 counter = 6 counter = 7 counter = 8 counter = 9 counter = 10 counter = 11 counter = 12 counter = 13 counter = 14 counter = 15 counter = 16 counter = 17 counter = 18 counter = 19 counter = 20 counter = 21 counter = 22 counter = 23 counter = 24 counter = 25 counter = 26 counter = 27 counter = 28 counter = 29 counter = 30 counter = 31 counter = 32 counter = 33 counter = 34 counter = 35 counter = 36 counter = 37 counter = 38 counter = 39 counter = 40 counter = 41 counter = 42 counter = 43 counter = 44 counter = 45 counter = 46 counter = 47 counter = 48 counter = 49 counter = 50 tf = 1 ```

7   Pass
%% assert(islychrel(8619));

``` counter = 1 tf = 0 counter = 2 counter = 3 counter = 4 counter = 5 counter = 6 counter = 7 counter = 8 counter = 9 counter = 10 counter = 11 counter = 12 counter = 13 counter = 14 counter = 15 counter = 16 counter = 17 counter = 18 counter = 19 counter = 20 counter = 21 counter = 22 counter = 23 counter = 24 counter = 25 counter = 26 counter = 27 counter = 28 counter = 29 counter = 30 counter = 31 counter = 32 counter = 33 counter = 34 counter = 35 counter = 36 counter = 37 counter = 38 counter = 39 counter = 40 counter = 41 counter = 42 counter = 43 counter = 44 counter = 45 counter = 46 counter = 47 counter = 48 counter = 49 counter = 50 tf = 1 ```

8   Pass
%% assert(islychrel(9898));

``` counter = 1 tf = 0 counter = 2 counter = 3 counter = 4 counter = 5 counter = 6 counter = 7 counter = 8 counter = 9 counter = 10 counter = 11 counter = 12 counter = 13 counter = 14 counter = 15 counter = 16 counter = 17 counter = 18 counter = 19 counter = 20 counter = 21 counter = 22 counter = 23 counter = 24 counter = 25 counter = 26 counter = 27 counter = 28 counter = 29 counter = 30 counter = 31 counter = 32 counter = 33 counter = 34 counter = 35 counter = 36 counter = 37 counter = 38 counter = 39 counter = 40 counter = 41 counter = 42 counter = 43 counter = 44 counter = 45 counter = 46 counter = 47 counter = 48 counter = 49 counter = 50 tf = 1 ```

9   Pass
%% assert(islychrel(9344));

``` counter = 1 tf = 0 counter = 2 counter = 3 counter = 4 counter = 5 counter = 6 counter = 7 counter = 8 counter = 9 counter = 10 counter = 11 counter = 12 counter = 13 counter = 14 counter = 15 counter = 16 counter = 17 counter = 18 counter = 19 counter = 20 counter = 21 counter = 22 counter = 23 counter = 24 counter = 25 counter = 26 counter = 27 counter = 28 counter = 29 counter = 30 counter = 31 counter = 32 counter = 33 counter = 34 counter = 35 counter = 36 counter = 37 counter = 38 counter = 39 counter = 40 counter = 41 counter = 42 counter = 43 counter = 44 counter = 45 counter = 46 counter = 47 counter = 48 counter = 49 counter = 50 tf = 1 ```

10   Pass
%% assert(islychrel(9884));

``` counter = 1 tf = 0 counter = 2 counter = 3 counter = 4 counter = 5 counter = 6 counter = 7 counter = 8 counter = 9 counter = 10 counter = 11 counter = 12 counter = 13 counter = 14 counter = 15 counter = 16 counter = 17 counter = 18 counter = 19 counter = 20 counter = 21 counter = 22 counter = 23 counter = 24 counter = 25 counter = 26 counter = 27 counter = 28 counter = 29 counter = 30 counter = 31 counter = 32 counter = 33 counter = 34 counter = 35 counter = 36 counter = 37 counter = 38 counter = 39 counter = 40 counter = 41 counter = 42 counter = 43 counter = 44 counter = 45 counter = 46 counter = 47 counter = 48 counter = 49 counter = 50 tf = 1 ```

11   Pass
%% assert(islychrel(4852));

``` counter = 1 tf = 0 counter = 2 counter = 3 counter = 4 counter = 5 counter = 6 counter = 7 counter = 8 counter = 9 counter = 10 counter = 11 counter = 12 counter = 13 counter = 14 counter = 15 counter = 16 counter = 17 counter = 18 counter = 19 counter = 20 counter = 21 counter = 22 counter = 23 counter = 24 counter = 25 counter = 26 counter = 27 counter = 28 counter = 29 counter = 30 counter = 31 counter = 32 counter = 33 counter = 34 counter = 35 counter = 36 counter = 37 counter = 38 counter = 39 counter = 40 counter = 41 counter = 42 counter = 43 counter = 44 counter = 45 counter = 46 counter = 47 counter = 48 counter = 49 counter = 50 tf = 1 ```

12   Pass
%% assert(islychrel(7491));

``` counter = 1 tf = 0 counter = 2 counter = 3 counter = 4 counter = 5 counter = 6 counter = 7 counter = 8 counter = 9 counter = 10 counter = 11 counter = 12 counter = 13 counter = 14 counter = 15 counter = 16 counter = 17 counter = 18 counter = 19 counter = 20 counter = 21 counter = 22 counter = 23 counter = 24 counter = 25 counter = 26 counter = 27 counter = 28 counter = 29 counter = 30 counter = 31 counter = 32 counter = 33 counter = 34 counter = 35 counter = 36 counter = 37 counter = 38 counter = 39 counter = 40 counter = 41 counter = 42 counter = 43 counter = 44 counter = 45 counter = 46 counter = 47 counter = 48 counter = 49 counter = 50 tf = 1 ```

13   Pass
%% assert(~islychrel(5832));

``` counter = 1 tf = 0 counter = 2 counter = 3 counter = 4 ```

14   Pass
%% assert(~islychrel(7400));

``` counter = 1 tf = 0 counter = 2 ```

15   Pass
%% assert(~islychrel(2349));

``` counter = 1 tf = 0 counter = 2 counter = 3 counter = 4 ```

16   Pass
%% assert(~islychrel(7349));

``` counter = 1 tf = 0 counter = 2 counter = 3 counter = 4 counter = 5 ```

17   Pass
%% assert(~islychrel(9706));

``` counter = 1 tf = 0 counter = 2 counter = 3 counter = 4 counter = 5 counter = 6 counter = 7 counter = 8 counter = 9 counter = 10 counter = 11 counter = 12 counter = 13 counter = 14 counter = 15 counter = 16 ```

18   Pass
%% assert(~islychrel(8669));

``` counter = 1 tf = 0 counter = 2 counter = 3 counter = 4 counter = 5 counter = 6 counter = 7 counter = 8 counter = 9 counter = 10 counter = 11 counter = 12 counter = 13 counter = 14 counter = 15 counter = 16 counter = 17 counter = 18 counter = 19 counter = 20 counter = 21 ```

19   Pass
%% assert(~islychrel(863));

``` counter = 1 tf = 0 counter = 2 counter = 3 ```

20   Pass
%% assert(~islychrel(5979));

``` counter = 1 tf = 0 counter = 2 counter = 3 counter = 4 counter = 5 ```