Cody

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

Solution 2088714

Submitted on 11 Jan 2020 by Asif Newaz
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));

b = '3763' c = '3673' d = 7436 e = 0 p = 2 b = '7436' c = '6347' d = 13783 e = 0 p = 3 b = '13783' c = '38731' d = 52514 e = 0 p = 4 b = '52514' c = '41525' d = 94039 e = 0 p = 5 b = '94039' c = '93049' d = 187088 e = 0 p = 6 b = '187088' c = '880781' d = 1067869 e = 0 p = 7 b = '1067869' c = '9687601' d = 10755470 e = 0 p = 8 b = '10755470' c = '07455701' d = 18211171 e = 0 p = 9 b = '18211171' c = '17111281' d = 35322452 e = 0 p = 10 b = '35322452' c = '25422353' d = 60744805 e = 0 p = 11 b = '60744805' c = '50844706' d = 111589511 e = 0 p = 12 b = '111589511' c = '115985111' d = 227574622 e = 0 p = 13 b = '227574622' c = '226475722' d = 454050344 e = 0 p = 14 b = '454050344' c = '443050454' d = 897100798 e = 0 p = 15 b = '897100798' c = '897001798' d = 1.7941e+09 e = 0 p = 16 b = '1794102596' c = '6952014971' d = 8.7461e+09 e = 0 p = 17 b = '8746117567' c = '7657116478' d = 1.6403e+10 e = 0 p = 18 b = '16403234045' c = '54043230461' d = 7.0446e+10 e = 0 p = 19 b = '70446464506' c = '60546464407' d = 1.3099e+11 e = 0 p = 20 b = '130992928913' c = '319829299031' d = 4.5082e+11 e = 0 p = 21 b = '450822227944' c = '449722228054' d = 9.0054e+11 e = 0 p = 22 b = '900544455998' c = '899554445009' d = 1.8001e+12 e = 0 p = 23 b = '1800098901007' c = '7001098900081' d = 8.8012e+12 e = 0 p = 24 b = '8801197801088' c = '8801087911088' d = 1.7602e+13 e = 0 p = 25 b = '17602285712176' c = '67121758220671' d = 8.4724e+13 e = 0 p = 26 b = '84724043932847' c = '74823934042748' d = 1.5955e+14 e = 0 p = 27 b = '159547977975595' c = '595579779745951' d = 7.5513e+14 e = 0 p = 28 b = '755127757721546' c = '645127757721557' d = 1.4003e+15 e = 0 p = 29 b = '1400255515443103' c = '3013445155520041' d = 4.4137e+15 e = 0 p = 30

2   Pass
assert(islychrel(5943));

b = '5943' c = '3495' d = 9438 e = 0 p = 2 b = '9438' c = '8349' d = 17787 e = 0 p = 3 b = '17787' c = '78771' d = 96558 e = 0 p = 4 b = '96558' c = '85569' d = 182127 e = 0 p = 5 b = '182127' c = '721281' d = 903408 e = 0 p = 6 b = '903408' c = '804309' d = 1707717 e = 0 p = 7 b = '1707717' c = '7177071' d = 8884788 e = 0 p = 8 b = '8884788' c = '8874888' d = 17759676 e = 0 p = 9 b = '17759676' c = '67695771' d = 85455447 e = 0 p = 10 b = '85455447' c = '74455458' d = 159910905 e = 0 p = 11 b = '159910905' c = '509019951' d = 668930856 e = 0 p = 12 b = '668930856' c = '658039866' d = 1.3270e+09 e = 0 p = 13 b = '1326970722' c = '2270796231' d = 3.5978e+09 e = 0 p = 14 b = '3597766953' c = '3596677953' d = 7.1944e+09 e = 0 p = 15 b = '7194444906' c = '6094444917' d = 1.3289e+10 e = 0 p = 16 b = '13288889823' c = '32898888231' d = 4.6188e+10 e = 0 p = 17 b = '46187778054' c = '45087778164' d = 9.1276e+10 e = 0 p = 18 b = '91275556218' c = '81265557219' d = 1.7254e+11 e = 0 p = 19 b = '172541113437' c = '734311145271' d = 9.0685e+11 e = 0 p = 20 b = '906852258708' c = '807852258609' d = 1.7147e+12 e = 0 p = 21 b = '1714704517317' c = '7137154074171' d = 8.8519e+12 e = 0 p = 22 b = '8851858591488' c = '8841958581588' d = 1.7694e+13 e = 0 p = 23 b = '17693817173076' c = '67037171839671' d = 8.4731e+13 e = 0 p = 24 b = '84730989012747' c = '74721098903748' d = 1.5945e+14 e = 0 p = 25 b = '159452087916495' c = '594619780254951' d = 7.5407e+14 e = 0 p = 26 b = '754071868171446' c = '644171868170457' d = 1.3982e+15 e = 0 p = 27 b = '1398243736341903' c = '3091436373428931' d = 4.4897e+15 e = 0 p = 28 b = '4489680109770834' c = '4380779010869844' d = 8.8705e+15 e = 0 p = 29 b = '8870459120640678' c = '8760460219540788' d = 1.7631e+16 e = 0 p = 30

3   Pass
assert(islychrel(4709));

b = '4709' c = '9074' d = 13783 e = 0 p = 2 b = '13783' c = '38731' d = 52514 e = 0 p = 3 b = '52514' c = '41525' d = 94039 e = 0 p = 4 b = '94039' c = '93049' d = 187088 e = 0 p = 5 b = '187088' c = '880781' d = 1067869 e = 0 p = 6 b = '1067869' c = '9687601' d = 10755470 e = 0 p = 7 b = '10755470' c = '07455701' d = 18211171 e = 0 p = 8 b = '18211171' c = '17111281' d = 35322452 e = 0 p = 9 b = '35322452' c = '25422353' d = 60744805 e = 0 p = 10 b = '60744805' c = '50844706' d = 111589511 e = 0 p = 11 b = '111589511' c = '115985111' d = 227574622 e = 0 p = 12 b = '227574622' c = '226475722' d = 454050344 e = 0 p = 13 b = '454050344' c = '443050454' d = 897100798 e = 0 p = 14 b = '897100798' c = '897001798' d = 1.7941e+09 e = 0 p = 15 b = '1794102596' c = '6952014971' d = 8.7461e+09 e = 0 p = 16 b = '8746117567' c = '7657116478' d = 1.6403e+10 e = 0 p = 17 b = '16403234045' c = '54043230461' d = 7.0446e+10 e = 0 p = 18 b = '70446464506' c = '60546464407' d = 1.3099e+11 e = 0 p = 19 b = '130992928913' c = '319829299031' d = 4.5082e+11 e = 0 p = 20 b = '450822227944' c = '449722228054' d = 9.0054e+11 e = 0 p = 21 b = '900544455998' c = '899554445009' d = 1.8001e+12 e = 0 p = 22 b = '1800098901007' c = '7001098900081' d = 8.8012e+12 e = 0 p = 23 b = '8801197801088' c = '8801087911088' d = 1.7602e+13 e = 0 p = 24 b = '17602285712176' c = '67121758220671' d = 8.4724e+13 e = 0 p = 25 b = '84724043932847' c = '74823934042748' d = 1.5955e+14 e = 0 p = 26 b = '159547977975595' c = '595579779745951' d = 7.5513e+14 e = 0 p = 27 b = '755127757721546' c = '645127757721557' d = 1.4003e+15 e = 0 p = 28 b = '1400255515443103' c = '3013445155520041' d = 4.4137e+15 e = 0 p = 29 b = '4413700670963144' c = '4413690760073144' d = 8.8274e+15 e = 0 p = 30

4   Pass
assert(~islychrel(3664));

b = '3664' c = '4663' d = 8327 e = 0 p = 2 b = '8327' c = '7238' d = 15565 e = 0 p = 3 b = '15565' c = '56551' d = 72116 e = 0 p = 4 b = '72116' c = '61127' d = 133243 e = 0 p = 5 b = '133243' c = '342331' d = 475574 e = 1

5   Pass
assert(~islychrel(3692));

b = '3692' c = '2963' d = 6655 e = 0 p = 2 b = '6655' c = '5566' d = 12221 e = 1

6   Pass
assert(islychrel(196));

b = '196' c = '691' d = 887 e = 0 p = 2 b = '887' c = '788' d = 1675 e = 0 p = 3 b = '1675' c = '5761' d = 7436 e = 0 p = 4 b = '7436' c = '6347' d = 13783 e = 0 p = 5 b = '13783' c = '38731' d = 52514 e = 0 p = 6 b = '52514' c = '41525' d = 94039 e = 0 p = 7 b = '94039' c = '93049' d = 187088 e = 0 p = 8 b = '187088' c = '880781' d = 1067869 e = 0 p = 9 b = '1067869' c = '9687601' d = 10755470 e = 0 p = 10 b = '10755470' c = '07455701' d = 18211171 e = 0 p = 11 b = '18211171' c = '17111281' d = 35322452 e = 0 p = 12 b = '35322452' c = '25422353' d = 60744805 e = 0 p = 13 b = '60744805' c = '50844706' d = 111589511 e = 0 p = 14 b = '111589511' c = '115985111' d = 227574622 e = 0 p = 15 b = '227574622' c = '226475722' d = 454050344 e = 0 p = 16 b = '454050344' c = '443050454' d = 897100798 e = 0 p = 17 b = '897100798' c = '897001798' d = 1.7941e+09 e = 0 p = 18 b = '1794102596' c = '6952014971' d = 8.7461e+09 e = 0 p = 19 b = '8746117567' c = '7657116478' d = 1.6403e+10 e = 0 p = 20 b = '16403234045' c = '54043230461' d = 7.0446e+10 e = 0 p = 21 b = '70446464506' c = '60546464407' d = 1.3099e+11 e = 0 p = 22 b = '130992928913' c = '319829299031' d = 4.5082e+11 e = 0 p = 23 b = '450822227944' c = '449722228054' d = 9.0054e+11 e = 0 p = 24 b = '900544455998' c = '899554445009' d = 1.8001e+12 e = 0 p = 25 b = '1800098901007' c = '7001098900081' d = 8.8012e+12 e = 0 p = 26 b = '8801197801088' c = '8801087911088' d = 1.7602e+13 e = 0 p = 27 b = '17602285712176' c = '67121758220671' d = 8.4724e+13 e = 0 p = 28 b = '84724043932847' c = '74823934042748' d = 1.5955e+14 e = 0 p = 29 b = '159547977975595' c = '595579779745951' d = 7.5513e+14 e = 0 p = 30

7   Pass
assert(islychrel(8619));

b = '8619' c = '9168' d = 17787 e = 0 p = 2 b = '17787' c = '78771' d = 96558 e = 0 p = 3 b = '96558' c = '85569' d = 182127 e = 0 p = 4 b = '182127' c = '721281' d = 903408 e = 0 p = 5 b = '903408' c = '804309' d = 1707717 e = 0 p = 6 b = '1707717' c = '7177071' d = 8884788 e = 0 p = 7 b = '8884788' c = '8874888' d = 17759676 e = 0 p = 8 b = '17759676' c = '67695771' d = 85455447 e = 0 p = 9 b = '85455447' c = '74455458' d = 159910905 e = 0 p = 10 b = '159910905' c = '509019951' d = 668930856 e = 0 p = 11 b = '668930856' c = '658039866' d = 1.3270e+09 e = 0 p = 12 b = '1326970722' c = '2270796231' d = 3.5978e+09 e = 0 p = 13 b = '3597766953' c = '3596677953' d = 7.1944e+09 e = 0 p = 14 b = '7194444906' c = '6094444917' d = 1.3289e+10 e = 0 p = 15 b = '13288889823' c = '32898888231' d = 4.6188e+10 e = 0 p = 16 b = '46187778054' c = '45087778164' d = 9.1276e+10 e = 0 p = 17 b = '91275556218' c = '81265557219' d = 1.7254e+11 e = 0 p = 18 b = '172541113437' c = '734311145271' d = 9.0685e+11 e = 0 p = 19 b = '906852258708' c = '807852258609' d = 1.7147e+12 e = 0 p = 20 b = '1714704517317' c = '7137154074171' d = 8.8519e+12 e = 0 p = 21 b = '8851858591488' c = '8841958581588' d = 1.7694e+13 e = 0 p = 22 b = '17693817173076' c = '67037171839671' d = 8.4731e+13 e = 0 p = 23 b = '84730989012747' c = '74721098903748' d = 1.5945e+14 e = 0 p = 24 b = '159452087916495' c = '594619780254951' d = 7.5407e+14 e = 0 p = 25 b = '754071868171446' c = '644171868170457' d = 1.3982e+15 e = 0 p = 26 b = '1398243736341903' c = '3091436373428931' d = 4.4897e+15 e = 0 p = 27 b = '4489680109770834' c = '4380779010869844' d = 8.8705e+15 e = 0 p = 28 b = '8870459120640678' c = '8760460219540788' d = 1.7631e+16 e = 0 p = 29 b = '1.763091934018147e+16' c = '61+e741810439190367.1' d = [] e = 0 p = 30

8   Pass
assert(islychrel(9898));

b = '9898' c = '8989' d = 18887 e = 0 p = 2 b = '18887' c = '78881' d = 97768 e = 0 p = 3 b = '97768' c = '86779' d = 184547 e = 0 p = 4 b = '184547' c = '745481' d = 930028 e = 0 p = 5 b = '930028' c = '820039' d = 1750067 e = 0 p = 6 b = '1750067' c = '7600571' d = 9350638 e = 0 p = 7 b = '9350638' c = '8360539' d = 17711177 e = 0 p = 8 b = '17711177' c = '77111771' d = 94822948 e = 0 p = 9 b = '94822948' c = '84922849' d = 179745797 e = 0 p = 10 b = '179745797' c = '797547971' d = 977293768 e = 0 p = 11 b = '977293768' c = '867392779' d = 1.8447e+09 e = 0 p = 12 b = '1844686547' c = '7456864481' d = 9.3016e+09 e = 0 p = 13 b = '9301551028' c = '8201551039' d = 1.7503e+10 e = 0 p = 14 b = '17503102067' c = '76020130571' d = 9.3523e+10 e = 0 p = 15 b = '93523232638' c = '83623232539' d = 1.7715e+11 e = 0 p = 16 b = '177146465177' c = '771564641771' d = 9.4871e+11 e = 0 p = 17 b = '948711106948' c = '849601117849' d = 1.7983e+12 e = 0 p = 18 b = '1798312224797' c = '7974222138971' d = 9.7725e+12 e = 0 p = 19 b = '9772534363768' c = '8673634352779' d = 1.8446e+13 e = 0 p = 20 b = '18446168716547' c = '74561786164481' d = 9.3008e+13 e = 0 p = 21 b = '93007954881028' c = '82018845970039' d = 1.7503e+14 e = 0 p = 22 b = '175026800851067' c = '760158008620571' d = 9.3518e+14 e = 0 p = 23 b = '935184809471638' c = '836174908481539' d = 1.7714e+15 e = 0 p = 24 b = '1771359717953177' c = '7713597179531771' d = 9.4850e+15 e = 0 p = 25 b = '9484956897484948' c = '8494847986594849' d = 1.7980e+16 e = 0 p = 26 b = '1.79798048840798e+16' c = '61+e89704884089797.1' d = [] e = 0 p = 27 b = 0×0 empty char array c = 0×0 empty char array d = [] e = 0 p = 28 b = 0×0 empty char array c = 0×0 empty char array d = [] e = 0 p = 29 b = 0×0 empty char array c = 0×0 empty char array d = [] e = 0 p = 30

9   Pass
assert(islychrel(9344));

b = '9344' c = '4439' d = 13783 e = 0 p = 2 b = '13783' c = '38731' d = 52514 e = 0 p = 3 b = '52514' c = '41525' d = 94039 e = 0 p = 4 b = '94039' c = '93049' d = 187088 e = 0 p = 5 b = '187088' c = '880781' d = 1067869 e = 0 p = 6 b = '1067869' c = '9687601' d = 10755470 e = 0 p = 7 b = '10755470' c = '07455701' d = 18211171 e = 0 p = 8 b = '18211171' c = '17111281' d = 35322452 e = 0 p = 9 b = '35322452' c = '25422353' d = 60744805 e = 0 p = 10 b = '60744805' c = '50844706' d = 111589511 e = 0 p = 11 b = '111589511' c = '115985111' d = 227574622 e = 0 p = 12 b = '227574622' c = '226475722' d = 454050344 e = 0 p = 13 b = '454050344' c = '443050454' d = 897100798 e = 0 p = 14 b = '897100798' c = '897001798' d = 1.7941e+09 e = 0 p = 15 b = '1794102596' c = '6952014971' d = 8.7461e+09 e = 0 p = 16 b = '8746117567' c = '7657116478' d = 1.6403e+10 e = 0 p = 17 b = '16403234045' c = '54043230461' d = 7.0446e+10 e = 0 p = 18 b = '70446464506' c = '60546464407' d = 1.3099e+11 e = 0 p = 19 b = '130992928913' c = '319829299031' d = 4.5082e+11 e = 0 p = 20 b = '450822227944' c = '449722228054' d = 9.0054e+11 e = 0 p = 21 b = '900544455998' c = '899554445009' d = 1.8001e+12 e = 0 p = 22 b = '1800098901007' c = '7001098900081' d = 8.8012e+12 e = 0 p = 23 b = '8801197801088' c = '8801087911088' d = 1.7602e+13 e = 0 p = 24 b = '17602285712176' c = '67121758220671' d = 8.4724e+13 e = 0 p = 25 b = '84724043932847' c = '74823934042748' d = 1.5955e+14 e = 0 p = 26 b = '159547977975595' c = '595579779745951' d = 7.5513e+14 e = 0 p = 27 b = '755127757721546' c = '645127757721557' d = 1.4003e+15 e = 0 p = 28 b = '1400255515443103' c = '3013445155520041' d = 4.4137e+15 e = 0 p = 29 b = '4413700670963144' c = '4413690760073144' d = 8.8274e+15 e = 0 p = 30

10   Pass
assert(islychrel(9884));

b = '9884' c = '4889' d = 14773 e = 0 p = 2 b = '14773' c = '37741' d = 52514 e = 0 p = 3 b = '52514' c = '41525' d = 94039 e = 0 p = 4 b = '94039' c = '93049' d = 187088 e = 0 p = 5 b = '187088' c = '880781' d = 1067869 e = 0 p = 6 b = '1067869' c = '9687601' d = 10755470 e = 0 p = 7 b = '10755470' c = '07455701' d = 18211171 e = 0 p = 8 b = '18211171' c = '17111281' d = 35322452 e = 0 p = 9 b = '35322452' c = '25422353' d = 60744805 e = 0 p = 10 b = '60744805' c = '50844706' d = 111589511 e = 0 p = 11 b = '111589511' c = '115985111' d = 227574622 e = 0 p = 12 b = '227574622' c = '226475722' d = 454050344 e = 0 p = 13 b = '454050344' c = '443050454' d = 897100798 e = 0 p = 14 b = '897100798' c = '897001798' d = 1.7941e+09 e = 0 p = 15 b = '1794102596' c = '6952014971' d = 8.7461e+09 e = 0 p = 16 b = '8746117567' c = '7657116478' d = 1.6403e+10 e = 0 p = 17 b = '16403234045' c = '54043230461' d = 7.0446e+10 e = 0 p = 18 b = '70446464506' c = '60546464407' d = 1.3099e+11 e = 0 p = 19 b = '130992928913' c = '319829299031' d = 4.5082e+11 e = 0 p = 20 b = '450822227944' c = '449722228054' d = 9.0054e+11 e = 0 p = 21 b = '900544455998' c = '899554445009' d = 1.8001e+12 e = 0 p = 22 b = '1800098901007' c = '7001098900081' d = 8.8012e+12 e = 0 p = 23 b = '8801197801088' c = '8801087911088' d = 1.7602e+13 e = 0 p = 24 b = '17602285712176' c = '67121758220671' d = 8.4724e+13 e = 0 p = 25 b = '84724043932847' c = '74823934042748' d = 1.5955e+14 e = 0 p = 26 b = '159547977975595' c = '595579779745951' d = 7.5513e+14 e = 0 p = 27 b = '755127757721546' c = '645127757721557' d = 1.4003e+15 e = 0 p = 28 b = '1400255515443103' c = '3013445155520041' d = 4.4137e+15 e = 0 p = 29 b = '4413700670963144' c = '4413690760073144' d = 8.8274e+15 e = 0 p = 30

11   Pass
assert(islychrel(4852));

b = '4852' c = '2584' d = 7436 e = 0 p = 2 b = '7436' c = '6347' d = 13783 e = 0 p = 3 b = '13783' c = '38731' d = 52514 e = 0 p = 4 b = '52514' c = '41525' d = 94039 e = 0 p = 5 b = '94039' c = '93049' d = 187088 e = 0 p = 6 b = '187088' c = '880781' d = 1067869 e = 0 p = 7 b = '1067869' c = '9687601' d = 10755470 e = 0 p = 8 b = '10755470' c = '07455701' d = 18211171 e = 0 p = 9 b = '18211171' c = '17111281' d = 35322452 e = 0 p = 10 b = '35322452' c = '25422353' d = 60744805 e = 0 p = 11 b = '60744805' c = '50844706' d = 111589511 e = 0 p = 12 b = '111589511' c = '115985111' d = 227574622 e = 0 p = 13 b = '227574622' c = '226475722' d = 454050344 e = 0 p = 14 b = '454050344' c = '443050454' d = 897100798 e = 0 p = 15 b = '897100798' c = '897001798' d = 1.7941e+09 e = 0 p = 16 b = '1794102596' c = '6952014971' d = 8.7461e+09 e = 0 p = 17 b = '8746117567' c = '7657116478' d = 1.6403e+10 e = 0 p = 18 b = '16403234045' c = '54043230461' d = 7.0446e+10 e = 0 p = 19 b = '70446464506' c = '60546464407' d = 1.3099e+11 e = 0 p = 20 b = '130992928913' c = '319829299031' d = 4.5082e+11 e = 0 p = 21 b = '450822227944' c = '449722228054' d = 9.0054e+11 e = 0 p = 22 b = '900544455998' c = '899554445009' d = 1.8001e+12 e = 0 p = 23 b = '1800098901007' c = '7001098900081' d = 8.8012e+12 e = 0 p = 24 b = '8801197801088' c = '8801087911088' d = 1.7602e+13 e = 0 p = 25 b = '17602285712176' c = '67121758220671' d = 8.4724e+13 e = 0 p = 26 b = '84724043932847' c = '74823934042748' d = 1.5955e+14 e = 0 p = 27 b = '159547977975595' c = '595579779745951' d = 7.5513e+14 e = 0 p = 28 b = '755127757721546' c = '645127757721557' d = 1.4003e+15 e = 0 p = 29 b = '1400255515443103' c = '3013445155520041' d = 4.4137e+15 e = 0 p = 30

12   Pass
assert(islychrel(7491));

b = '7491' c = '1947' d = 9438 e = 0 p = 2 b = '9438' c = '8349' d = 17787 e = 0 p = 3 b = '17787' c = '78771' d = 96558 e = 0 p = 4 b = '96558' c = '85569' d = 182127 e = 0 p = 5 b = '182127' c = '721281' d = 903408 e = 0 p = 6 b = '903408' c = '804309' d = 1707717 e = 0 p = 7 b = '1707717' c = '7177071' d = 8884788 e = 0 p = 8 b = '8884788' c = '8874888' d = 17759676 e = 0 p = 9 b = '17759676' c = '67695771' d = 85455447 e = 0 p = 10 b = '85455447' c = '74455458' d = 159910905 e = 0 p = 11 b = '159910905' c = '509019951' d = 668930856 e = 0 p = 12 b = '668930856' c = '658039866' d = 1.3270e+09 e = 0 p = 13 b = '1326970722' c = '2270796231' d = 3.5978e+09 e = 0 p = 14 b = '3597766953' c = '3596677953' d = 7.1944e+09 e = 0 p = 15 b = '7194444906' c = '6094444917' d = 1.3289e+10 e = 0 p = 16 b = '13288889823' c = '32898888231' d = 4.6188e+10 e = 0 p = 17 b = '46187778054' c = '45087778164' d = 9.1276e+10 e = 0 p = 18 b = '91275556218' c = '81265557219' d = 1.7254e+11 e = 0 p = 19 b = '172541113437' c = '734311145271' d = 9.0685e+11 e = 0 p = 20 b = '906852258708' c = '807852258609' d = 1.7147e+12 e = 0 p = 21 b = '1714704517317' c = '7137154074171' d = 8.8519e+12 e = 0 p = 22 b = '8851858591488' c = '8841958581588' d = 1.7694e+13 e = 0 p = 23 b = '17693817173076' c = '67037171839671' d = 8.4731e+13 e = 0 p = 24 b = '84730989012747' c = '74721098903748' d = 1.5945e+14 e = 0 p = 25 b = '159452087916495' c = '594619780254951' d = 7.5407e+14 e = 0 p = 26 b = '754071868171446' c = '644171868170457' d = 1.3982e+15 e = 0 p = 27 b = '1398243736341903' c = '3091436373428931' d = 4.4897e+15 e = 0 p = 28 b = '4489680109770834' c = '4380779010869844' d = 8.8705e+15 e = 0 p = 29 b = '8870459120640678' c = '8760460219540788' d = 1.7631e+16 e = 0 p = 30

13   Pass
assert(~islychrel(5832));

b = '5832' c = '2385' d = 8217 e = 0 p = 2 b = '8217' c = '7128' d = 15345 e = 0 p = 3 b = '15345' c = '54351' d = 69696 e = 1

14   Pass
assert(~islychrel(7400));

b = '7400' c = '0047' d = 7447 e = 1

15   Pass
assert(~islychrel(2349));

b = '2349' c = '9432' d = 11781 e = 0 p = 2 b = '11781' c = '18711' d = 30492 e = 0 p = 3 b = '30492' c = '29403' d = 59895 e = 1

16   Pass
assert(~islychrel(7349));

b = '7349' c = '9437' d = 16786 e = 0 p = 2 b = '16786' c = '68761' d = 85547 e = 0 p = 3 b = '85547' c = '74558' d = 160105 e = 0 p = 4 b = '160105' c = '501061' d = 661166 e = 1

17   Pass
assert(~islychrel(9706));

b = '9706' c = '6079' d = 15785 e = 0 p = 2 b = '15785' c = '58751' d = 74536 e = 0 p = 3 b = '74536' c = '63547' d = 138083 e = 0 p = 4 b = '138083' c = '380831' d = 518914 e = 0 p = 5 b = '518914' c = '419815' d = 938729 e = 0 p = 6 b = '938729' c = '927839' d = 1866568 e = 0 p = 7 b = '1866568' c = '8656681' d = 10523249 e = 0 p = 8 b = '10523249' c = '94232501' d = 104755750 e = 0 p = 9 b = '104755750' c = '057557401' d = 162313151 e = 0 p = 10 b = '162313151' c = '151313261' d = 313626412 e = 0 p = 11 b = '313626412' c = '214626313' d = 528252725 e = 0 p = 12 b = '528252725' c = '527252825' d = 1.0555e+09 e = 0 p = 13 b = '1055505550' c = '0555055501' d = 1.6106e+09 e = 0 p = 14 b = '1610561051' c = '1501650161' d = 3.1122e+09 e = 0 p = 15 b = '3112211212' c = '2121122113' d = 5.2333e+09 e = 1

18   Pass
assert(~islychrel(8669));

b = '8669' c = '9668' d = 18337 e = 0 p = 2 b = '18337' c = '73381' d = 91718 e = 0 p = 3 b = '91718' c = '81719' d = 173437 e = 0 p = 4 b = '173437' c = '734371' d = 907808 e = 0 p = 5 b = '907808' c = '808709' d = 1716517 e = 0 p = 6 b = '1716517' c = '7156171' d = 8872688 e = 0 p = 7 b = '8872688' c = '8862788' d = 17735476 e = 0 p = 8 b = '17735476' c = '67453771' d = 85189247 e = 0 p = 9 b = '85189247' c = '74298158' d = 159487405 e = 0 p = 10 b = '159487405' c = '504784951' d = 664272356 e = 0 p = 11 b = '664272356' c = '653272466' d = 1.3175e+09 e = 0 p = 12 b = '1317544822' c = '2284457131' d = 3.6020e+09 e = 0 p = 13 b = '3602001953' c = '3591002063' d = 7.1930e+09 e = 0 p = 14 b = '7193004016' c = '6104003917' d = 1.3297e+10 e = 0 p = 15 b = '13297007933' c = '33970079231' d = 4.7267e+10 e = 0 p = 16 b = '47267087164' c = '46178076274' d = 9.3445e+10 e = 0 p = 17 b = '93445163438' c = '83436154439' d = 1.7688e+11 e = 0 p = 18 b = '176881317877' c = '778713188671' d = 9.5559e+11 e = 0 p = 19 b = '955594506548' c = '845605495559' d = 1.8012e+12 e = 0 p = 20 b = '1801200002107' c = '7012000021081' d = 8.8132e+12 e = 1

19   Pass
assert(~islychrel(863));

b = '863' c = '368' d = 1231 e = 0 p = 2 b = '1231' c = '1321' d = 2552 e = 1

20   Pass
assert(~islychrel(5979));

b = '5979' c = '9795' d = 15774 e = 0 p = 2 b = '15774' c = '47751' d = 63525 e = 0 p = 3 b = '63525' c = '52536' d = 116061 e = 0 p = 4 b = '116061' c = '160611' d = 276672 e = 1