Cody

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

Solution 291780

Submitted on 29 Jul 2013 by Clemens Giegerich
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));

n = 7436 n = 13783 n = 52514 n = 94039 n = 187088 n = 1067869 n = 10755470 n = 18211171 n = 35322452 n = 60744805 n = 111589511 n = 227574622 n = 454050344 n = 897100798 n = 1.7941e+09 n = 8.7461e+09 n = 1.6403e+10 n = 7.0446e+10 n = 1.3099e+11 n = 4.5082e+11 n = 9.0054e+11 n = 1.8001e+12 n = 8.8012e+12 n = 1.7602e+13 n = 8.4724e+13 n = 1.5955e+14 n = 7.5513e+14 n = 1.4003e+15 n = 4.4137e+15 n = 8.8274e+15 n = 1.7654e+16 n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = []

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

n = 9438 n = 17787 n = 96558 n = 182127 n = 903408 n = 1707717 n = 8884788 n = 17759676 n = 85455447 n = 159910905 n = 668930856 n = 1.3270e+09 n = 3.5978e+09 n = 7.1944e+09 n = 1.3289e+10 n = 4.6188e+10 n = 9.1276e+10 n = 1.7254e+11 n = 9.0685e+11 n = 1.7147e+12 n = 8.8519e+12 n = 1.7694e+13 n = 8.4731e+13 n = 1.5945e+14 n = 7.5407e+14 n = 1.3982e+15 n = 4.4897e+15 n = 8.8705e+15 n = 1.7631e+16 n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = []

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

n = 13783 n = 52514 n = 94039 n = 187088 n = 1067869 n = 10755470 n = 18211171 n = 35322452 n = 60744805 n = 111589511 n = 227574622 n = 454050344 n = 897100798 n = 1.7941e+09 n = 8.7461e+09 n = 1.6403e+10 n = 7.0446e+10 n = 1.3099e+11 n = 4.5082e+11 n = 9.0054e+11 n = 1.8001e+12 n = 8.8012e+12 n = 1.7602e+13 n = 8.4724e+13 n = 1.5955e+14 n = 7.5513e+14 n = 1.4003e+15 n = 4.4137e+15 n = 8.8274e+15 n = 1.7654e+16 n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = []

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

n = 8327 n = 15565 n = 72116 n = 133243 n = 475574

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

n = 6655 n = 12221

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

n = 887 n = 1675 n = 7436 n = 13783 n = 52514 n = 94039 n = 187088 n = 1067869 n = 10755470 n = 18211171 n = 35322452 n = 60744805 n = 111589511 n = 227574622 n = 454050344 n = 897100798 n = 1.7941e+09 n = 8.7461e+09 n = 1.6403e+10 n = 7.0446e+10 n = 1.3099e+11 n = 4.5082e+11 n = 9.0054e+11 n = 1.8001e+12 n = 8.8012e+12 n = 1.7602e+13 n = 8.4724e+13 n = 1.5955e+14 n = 7.5513e+14 n = 1.4003e+15 n = 4.4137e+15 n = 8.8274e+15 n = 1.7654e+16 n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = []

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

n = 17787 n = 96558 n = 182127 n = 903408 n = 1707717 n = 8884788 n = 17759676 n = 85455447 n = 159910905 n = 668930856 n = 1.3270e+09 n = 3.5978e+09 n = 7.1944e+09 n = 1.3289e+10 n = 4.6188e+10 n = 9.1276e+10 n = 1.7254e+11 n = 9.0685e+11 n = 1.7147e+12 n = 8.8519e+12 n = 1.7694e+13 n = 8.4731e+13 n = 1.5945e+14 n = 7.5407e+14 n = 1.3982e+15 n = 4.4897e+15 n = 8.8705e+15 n = 1.7631e+16 n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = []

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

n = 18887 n = 97768 n = 184547 n = 930028 n = 1750067 n = 9350638 n = 17711177 n = 94822948 n = 179745797 n = 977293768 n = 1.8447e+09 n = 9.3016e+09 n = 1.7503e+10 n = 9.3523e+10 n = 1.7715e+11 n = 9.4871e+11 n = 1.7983e+12 n = 9.7725e+12 n = 1.8446e+13 n = 9.3008e+13 n = 1.7503e+14 n = 9.3518e+14 n = 1.7714e+15 n = 9.4850e+15 n = 1.7980e+16 n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = []

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

n = 13783 n = 52514 n = 94039 n = 187088 n = 1067869 n = 10755470 n = 18211171 n = 35322452 n = 60744805 n = 111589511 n = 227574622 n = 454050344 n = 897100798 n = 1.7941e+09 n = 8.7461e+09 n = 1.6403e+10 n = 7.0446e+10 n = 1.3099e+11 n = 4.5082e+11 n = 9.0054e+11 n = 1.8001e+12 n = 8.8012e+12 n = 1.7602e+13 n = 8.4724e+13 n = 1.5955e+14 n = 7.5513e+14 n = 1.4003e+15 n = 4.4137e+15 n = 8.8274e+15 n = 1.7654e+16 n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = []

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

n = 14773 n = 52514 n = 94039 n = 187088 n = 1067869 n = 10755470 n = 18211171 n = 35322452 n = 60744805 n = 111589511 n = 227574622 n = 454050344 n = 897100798 n = 1.7941e+09 n = 8.7461e+09 n = 1.6403e+10 n = 7.0446e+10 n = 1.3099e+11 n = 4.5082e+11 n = 9.0054e+11 n = 1.8001e+12 n = 8.8012e+12 n = 1.7602e+13 n = 8.4724e+13 n = 1.5955e+14 n = 7.5513e+14 n = 1.4003e+15 n = 4.4137e+15 n = 8.8274e+15 n = 1.7654e+16 n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = []

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

n = 7436 n = 13783 n = 52514 n = 94039 n = 187088 n = 1067869 n = 10755470 n = 18211171 n = 35322452 n = 60744805 n = 111589511 n = 227574622 n = 454050344 n = 897100798 n = 1.7941e+09 n = 8.7461e+09 n = 1.6403e+10 n = 7.0446e+10 n = 1.3099e+11 n = 4.5082e+11 n = 9.0054e+11 n = 1.8001e+12 n = 8.8012e+12 n = 1.7602e+13 n = 8.4724e+13 n = 1.5955e+14 n = 7.5513e+14 n = 1.4003e+15 n = 4.4137e+15 n = 8.8274e+15 n = 1.7654e+16 n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = []

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

n = 9438 n = 17787 n = 96558 n = 182127 n = 903408 n = 1707717 n = 8884788 n = 17759676 n = 85455447 n = 159910905 n = 668930856 n = 1.3270e+09 n = 3.5978e+09 n = 7.1944e+09 n = 1.3289e+10 n = 4.6188e+10 n = 9.1276e+10 n = 1.7254e+11 n = 9.0685e+11 n = 1.7147e+12 n = 8.8519e+12 n = 1.7694e+13 n = 8.4731e+13 n = 1.5945e+14 n = 7.5407e+14 n = 1.3982e+15 n = 4.4897e+15 n = 8.8705e+15 n = 1.7631e+16 n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = [] n = []

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

n = 8217 n = 15345 n = 69696

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

n = 7447

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

n = 11781 n = 30492 n = 59895

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

n = 16786 n = 85547 n = 160105 n = 661166

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

n = 15785 n = 74536 n = 138083 n = 518914 n = 938729 n = 1866568 n = 10523249 n = 104755750 n = 162313151 n = 313626412 n = 528252725 n = 1.0555e+09 n = 1.6106e+09 n = 3.1122e+09 n = 5.2333e+09

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

n = 18337 n = 91718 n = 173437 n = 907808 n = 1716517 n = 8872688 n = 17735476 n = 85189247 n = 159487405 n = 664272356 n = 1.3175e+09 n = 3.6020e+09 n = 7.1930e+09 n = 1.3297e+10 n = 4.7267e+10 n = 9.3445e+10 n = 1.7688e+11 n = 9.5559e+11 n = 1.8012e+12 n = 8.8132e+12

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

n = 1231 n = 2552

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

n = 15774 n = 63525 n = 116061 n = 276672

### Community Treasure Hunt

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

Start Hunting!