Cody

Problem 42841. Return the sequence element III

Solution 2635318

Submitted on 30 Jun 2020
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   Fail
x1 = 1; x2 = 2; n = 5; y_correct = 6; assert(isequal(ulam(x1,x2,n),y_correct))

a = 3 m1 = 1 m2 = 1 s = 1 2 3 a = 4 8 m1 = 1 1 m2 = 1 2 s = 1 2 3 4 a = 10 20 m1 = 1 1 m2 = 1 2 s = 1 2 3 4 10 a = 20 60 m1 = 1 1 m2 = 1 2 s = 1 2 3 4 10 20 a = 40 160 m1 = 1 1 m2 = 1 2 s = 1 2 3 4 10 20 40

Output argument "y" (and maybe others) not assigned during call to "ulam". Error in Test1 (line 5) assert(isequal(ulam(x1,x2,n),y_correct))

2   Fail
x1 = 1; x2 = 2; n = 22; y_correct = 77; assert(isequal(ulam(x1,x2,n),y_correct))

a = 3 m1 = 1 m2 = 1 s = 1 2 3 a = 4 8 m1 = 1 1 m2 = 1 2 s = 1 2 3 4 a = 10 20 m1 = 1 1 m2 = 1 2 s = 1 2 3 4 10 a = 20 60 m1 = 1 1 m2 = 1 2 s = 1 2 3 4 10 20 a = 40 160 m1 = 1 1 m2 = 1 2 s = 1 2 3 4 10 20 40 a = 80 400 m1 = 1 1 m2 = 1 2 s = 1 2 3 4 10 20 40 80 a = 160 960 m1 = 1 1 m2 = 1 2 s = 1 2 3 4 10 20 40 80 160 a = 320 2240 m1 = 1 1 m2 = 1 2 s = 1 2 3 4 10 20 40 80 160 320 a = 640 5120 m1 = 1 1 m2 = 1 2 s = 1 2 3 4 10 20 40 80 160 320 640 a = 1280 11520 m1 = 1 1 m2 = 1 2 s = 1 2 3 4 10 20 40 80 160 320 640 1280 a = 2560 25600 m1 = 1 1 m2 = 1 2 s = 1 2 3 4 10 20 40 80 160 320 640 1280 2560 a = 5120 56320 m1 = 1 1 m2 = 1 2 s = 1 2 3 4 10 20 40 80 160 320 640 1280 2560 5120 a = 10240 122880 m1 = 1 1 m2 = 1 2 s = 1 2 3 4 10 20 40 80 160 320 640 1280 2560 5120 10240 a = 20480 266240 m1 = 1 1 m2 = 1 2 s = Columns 1 through 15 1 2 3 4 10 20 40 80 160 320 640 1280 2560 5120 10240 Column 16 20480 a = 40960 573440 m1 = 1 1 m2 = 1 2 s = Columns 1 through 15 1 2 3 4 10 20 40 80 160 320 640 1280 2560 5120 10240 Columns 16 through 17 20480 40960 a = 81920 1228800 m1 = 1 1 m2 = 1 2 s = Columns 1 through 15 1 2 3 4 10 20 40 80 160 320 640 1280 2560 5120 10240 Columns 16 through 18 20480 40960 81920 a = 163840 2621440 m1 = 1 1 m2 = 1 2 s = Columns 1 through 15 1 2 3 4 10 20 40 80 160 320 640 1280 2560 5120 10240 Columns 16 through 19 20480 40960 81920 163840 a = 327680 5570560 m1 = 1 1 m2 = 1 2 s = Columns 1 through 15 1 2 3 4 10 20 40 80 160 320 640 1280 2560 5120 10240 Columns 16 through 20 20480 40960 81920 163840 327680 a = 655360 11796480 m1 = 1 1 m2 = 1 2 s = Columns 1 through 15 1 2 3 4 10 20 40 80 160 320 640 1280 2560 5120 10240 Columns 16 through 21 20480 40960 81920 163840 327680 655360 a = 1310720 24903680 m1 = 1 1 m2 = 1 2 s = Columns 1 through 15 1 2 3 4 10 20 40 80 160 320 640 1280 2560 5120 10240 Columns 16 through 22 20480 40960 81920 163840 327680 655360 1310720 a = 2621440 52428800 m1 = 1 1 m2 = 1 2 s = Columns 1 through 15 1 2 3 4 10 20 40 80 160 320 640 1280 2560 5120 10240 Columns 16 through 23 20480 40960 81920 163840 327680 655360 1310720 2621440 a = 5242880 110100480 m1 = 1 1 m2 = 1 2 s = Columns 1 through 15 1 2 3 4 10 20 40 80 160 320 640 1280 2560 5120 10240 Columns 16 through 24 20480 40960 81920 163840 327680 655360 1310720 2621440 5242880

Output argument "y" (and maybe others) not assigned during call to "ulam". Error in Test2 (line 5) assert(isequal(ulam(x1,x2,n),y_correct))

3   Fail
x1 = 1; x2 = 3; n = 49; y_correct = 212; assert(isequal(ulam(x1,x2,n),y_correct))

a = 4 m1 = 1 m2 = 1 s = 1 3 4 a = 5 11 m1 = 1 1 m2 = 1 2 s = 1 3 4 5 a = 13 26 m1 = 1 1 m2 = 1 2 s = 1 3 4 5 13 a = 26 78 m1 = 1 1 m2 = 1 2 s = 1 3 4 5 13 26 a = 52 208 m1 = 1 1 m2 = 1 2 s = 1 3 4 5 13 26 52 a = 104 520 m1 = 1 1 m2 = 1 2 s = 1 3 4 5 13 26 52 104 a = 208 1248 m1 = 1 1 m2 = 1 2 s = 1 3 4 5 13 26 52 104 208 a = 416 2912 m1 = 1 1 m2 = 1 2 s = 1 3 4 5 13 26 52 104 208 416 a = 832 6656 m1 = 1 1 m2 = 1 2 s = 1 3 4 5 13 26 52 104 208 416 832 a = 1664 14976 m1 = 1 1 m2 = 1 2 s = 1 3 4 5 13 26 52 104 208 416 832 1664 a = 3328 33280 m1 = 1 1 m2 = 1 2 s = 1 3 4 5 13 26 52 104 208 416 832 1664 3328 a = 6656 73216 m1 = 1 1 m2 = 1 2 s = 1 3 4 5 13 26 52 104 208 416 832 1664 3328 6656 a = 13312 159744 m1 = 1 1 m2 = 1 2 s = 1 3 4 5 13 26 52 104 208 416 832 1664 3328 6656 13312 a = 26624 346112 m1 = 1 1 m2 = 1 2 s = Columns 1 through 15 1 3 4 5 13 26 52 104 208 416 832 1664 3328 6656 13312 Column 16 26624 a = 53248 745472 m1 = 1 1 m2 = 1 2 s = Columns 1 through 15 1 3 4 5 13 26 52 104 208 416 832 1664 3328 6656 13312 Columns 16 through 17 26624 53248 a = 106496 1597440 m1 = 1 1 m2 = 1 2 s = Columns 1 through 15 1 3 4 5 13 26 52 104 208 416 832 1664 3328 6656 13312 Columns 16 through 18 26624 53248 106496 a = 212992 3407872 m1 = 1 1 m2 = 1 2 s = Columns 1 through 15 1 3 4 5 13 26 52 104 208 416 832 1664 3328 6656 13312 Columns 16 through 19 26624 53248 106496 212992 a = 425984 7241728 m1 = 1 1 m2 = 1 2 s = Columns 1 through 15 1 3 4 5 13 26 52 104 208 416 832 1664 3328 6656 13312 Columns 16 through 20 26624 53248 106496 212992 425984 a = 851968 15335424 m1 = 1 1 m2 = 1 2 s = Columns 1 through 15 1 3 4 5 13 26 52 104 208 416 832 1664 3328 6656 13312 Columns 16 through 21 26624 53248 106496 212992 425984 851968 a = 1703936 32374784 m1 = 1 1 m2 = 1 2 s = Columns 1 through 15 1 3 4 5 13 26 52 104 208 416 832 1664 3328 6656 13312 Columns 16 through 22 26624 53248 106496 212992 425984 851968 1703936 a = 3407872 68157440 m1 = 1 1 m2 = 1 2 s = Columns 1 through 15 1 3 4 5 13 26 52 104 208 416 832 1664 3328 6656 13312 Columns 16 through 23 26624 53248 106496 212992 425984 851968 1703936 3407872 a = 6815744 143130624 m1 = 1 1 m2 = 1 2 s = Columns 1 through 15 1 3 4 5 13 26 52 104 208 416 832 1664 3328 6656 13312 Columns 16 through 24 26624 53248 106496 212992 425984 851968 1703936 3407872 6815744 a = 13631488 299892736 m1 = 1 1 m2 = 1 2 s = Columns 1 through 15 1 3 4 5 13 26 52 104 208 416 832 1664 3328 6656 13312 Columns 16 through 25 26624 53248 106496 212992 425984 851968 1703936 3407872 6815744 13631488 a = 27262976 627048448 m1 = 1 1 m2 = 1 2 s = Columns 1 through 15 1 3 4 5 13 26 52 104 208 416 832 1664 3328 6656 13312 Columns 16 through 26 26624 53248 106496 212992 425984 851968 1703936 3407872 6815744 13631488 27262976 a = 1.0e+09 * 0.0545 1.3086 m1 = 1 1 m2 = 1 2 s = Columns 1 through 15 1 3 4 5 13 26 52 104 208 416 832 1664 3328 6656 13312 Columns 16 through 27 26624 53248 106496 212992 425984 851968 1703936 3407872 6815744 13631488 27262976 54525952 a = 1.0e+09 * 0.1091 2.7263 m1 = 1 1 m2 = 1 2 s = Columns 1 through 15 1 3 4 5 13 26 52 104 208 416 832 1664 3328 6656 13312 Columns 16 through 28 26624 53248 106496 212992 425984 851968 1703936 3407872 6815744 13631488 27262976 54525952 109051904 a = 1.0e+09 * 0.2181 5.6707 m1 = 1 1 m2 = 1 2 s = Columns 1 through 15 1 3 4 5 13 26 52 104 208 416 832 1664 3328 6656 13312 Columns 16 through 29 26624 53248 106496 212992 425984 851968 1703936 3407872 6815744 13631488 27262976 54525952 109051904 218103808 a = 1.0e+10 * 0.0436 1.1778 m1 = 1 1 m2 = 1 2 s = Columns 1 through 15 1 3 4 5 13 26 52 104 208 416 832 1664 3328 6656 13312 Columns 16 through 30 26624 53248 106496 212992 425984 851968 1703936 3407872 6815744 13631488 27262976 54525952 109051904 218103808 436207616 a = 1.0e+10 * 0.0872 2.4428 m1 = 1 1 m2 = 1 2 s = Columns 1 through 15 1 3 4 5 13 26 52 104 208 416 832 1664 3328 6656 13312 Columns 16 through 30 26624 53248 106496 212992 425984 851968 1703936 3407872 6815744 13631488 27262976 54525952 109051904 218103808 436207616 Column 31 872415232 a = 1.0e+10 * 0.1745 5.0600 m1 = 1 1 m2 = 1 2 s = 1.0e+09 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0001 Columns 19 through 32 0.0002 0.0004 0.0009 0.0017 0.0034 0.0068 0.0136 0.0273 0.0545 0.1091 0.2181 0.4362 0.8724 1.7448 a = 1.0e+11 * 0.0349 1.0469 m1 = 1 1 m2 = 1 2 s = 1.0e+09 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0001 Columns 19 through 33 0.0002 0.0004 0.0009 0.0017 0.0034 0.0068 0.0136 0.0273 0.0545 0.1091 0.2181 0.4362 0.8724 1.7448 3.4897 a = 1.0e+11 * 0.0698 2.1636 m1 = 1 1 m2 = 1 2 s = 1.0e+09 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0001 Columns 19 through 34 0.0...

Output argument "y" (and maybe others) not assigned during call to "ulam". Error in Test3 (line 5) assert(isequal(ulam(x1,x2,n),y_correct))

4   Fail
x1 = 1; x2 = 5; n = 10; y_correct = 22; assert(isequal(ulam(x1,x2,n),y_correct))

a = 6 m1 = 1 m2 = 1 s = 1 5 6 a = 7 17 m1 = 1 1 m2 = 1 2 s = 1 5 6 7 a = 19 38 m1 = 1 1 m2 = 1 2 s = 1 5 6 7 19 a = 38 114 m1 = 1 1 m2 = 1 2 s = 1 5 6 7 19 38 a = 76 304 m1 = 1 1 m2 = 1 2 s = 1 5 6 7 19 38 76 a = 152 760 m1 = 1 1 m2 = 1 2 s = 1 5 6 7 19 38 76 152 a = 304 1824 m1 = 1 1 m2 = 1 2 s = 1 5 6 7 19 38 76 152 304 a = 608 4256 m1 = 1 1 m2 = 1 2 s = 1 5 6 7 19 38 76 152 304 608 a = 1216 9728 m1 = 1 1 m2 = 1 2 s = 1 5 6 7 19 38 76 152 304 608 1216 a = 2432 21888 m1 = 1 1 m2 = 1 2 s = 1 5 6 7 19 38 76 152 304 608 1216 2432

Output argument "y" (and maybe others) not assigned during call to "ulam". Error in Test4 (line 5) assert(isequal(ulam(x1,x2,n),y_correct))

5   Fail
x1 = 2; x2 = 9; n = 8; y_correct = 20; assert(isequal(ulam(x1,x2,n),y_correct))

a = 11 m1 = 1 m2 = 1 s = 2 9 11 a = 13 31 m1 = 1 1 m2 = 1 2 s = 2 9 11 13 a = 35 70 m1 = 1 1 m2 = 1 2 s = 2 9 11 13 35 a = 70 210 m1 = 1 1 m2 = 1 2 s = 2 9 11 13 35 70 a = 140 560 m1 = 1 1 m2 = 1 2 s = 2 9 11 13 35 70 140 a = 280 1400 m1 = 1 1 m2 = 1 2 s = 2 9 11 13 35 70 140 280 a = 560 3360 m1 = 1 1 m2 = 1 2 s = 2 9 11 13 35 70 140 280 560 a = 1120 7840 m1 = 1 1 m2 = 1 2 s = 2 9 11 13 35 70 140 280 560 1120

Output argument "y" (and maybe others) not assigned during call to "ulam". Error in Test5 (line 5) assert(isequal(ulam(x1,x2,n),y_correct))

6   Fail
x1 = 2; x2 = 9; n = 26; y_correct = 77; assert(isequal(ulam(x1,x2,n),y_correct))

a = 11 m1 = 1 m2 = 1 s = 2 9 11 a = 13 31 m1 = 1 1 m2 = 1 2 s = 2 9 11 13 a = 35 70 m1 = 1 1 m2 = 1 2 s = 2 9 11 13 35 a = 70 210 m1 = 1 1 m2 = 1 2 s = 2 9 11 13 35 70 a = 140 560 m1 = 1 1 m2 = 1 2 s = 2 9 11 13 35 70 140 a = 280 1400 m1 = 1 1 m2 = 1 2 s = 2 9 11 13 35 70 140 280 a = 560 3360 m1 = 1 1 m2 = 1 2 s = 2 9 11 13 35 70 140 280 560 a = 1120 7840 m1 = 1 1 m2 = 1 2 s = 2 9 11 13 35 70 140 280 560 1120 a = 2240 17920 m1 = 1 1 m2 = 1 2 s = 2 9 11 13 35 70 140 280 560 1120 2240 a = 4480 40320 m1 = 1 1 m2 = 1 2 s = 2 9 11 13 35 70 140 280 560 1120 2240 4480 a = 8960 89600 m1 = 1 1 m2 = 1 2 s = 2 9 11 13 35 70 140 280 560 1120 2240 4480 8960 a = 17920 197120 m1 = 1 1 m2 = 1 2 s = 2 9 11 13 35 70 140 280 560 1120 2240 4480 8960 17920 a = 35840 430080 m1 = 1 1 m2 = 1 2 s = 2 9 11 13 35 70 140 280 560 1120 2240 4480 8960 17920 35840 a = 71680 931840 m1 = 1 1 m2 = 1 2 s = Columns 1 through 15 2 9 11 13 35 70 140 280 560 1120 2240 4480 8960 17920 35840 Column 16 71680 a = 143360 2007040 m1 = 1 1 m2 = 1 2 s = Columns 1 through 15 2 9 11 13 35 70 140 280 560 1120 2240 4480 8960 17920 35840 Columns 16 through 17 71680 143360 a = 286720 4300800 m1 = 1 1 m2 = 1 2 s = Columns 1 through 15 2 9 11 13 35 70 140 280 560 1120 2240 4480 8960 17920 35840 Columns 16 through 18 71680 143360 286720 a = 573440 9175040 m1 = 1 1 m2 = 1 2 s = Columns 1 through 15 2 9 11 13 35 70 140 280 560 1120 2240 4480 8960 17920 35840 Columns 16 through 19 71680 143360 286720 573440 a = 1146880 19496960 m1 = 1 1 m2 = 1 2 s = Columns 1 through 15 2 9 11 13 35 70 140 280 560 1120 2240 4480 8960 17920 35840 Columns 16 through 20 71680 143360 286720 573440 1146880 a = 2293760 41287680 m1 = 1 1 m2 = 1 2 s = Columns 1 through 15 2 9 11 13 35 70 140 280 560 1120 2240 4480 8960 17920 35840 Columns 16 through 21 71680 143360 286720 573440 1146880 2293760 a = 4587520 87162880 m1 = 1 1 m2 = 1 2 s = Columns 1 through 15 2 9 11 13 35 70 140 280 560 1120 2240 4480 8960 17920 35840 Columns 16 through 22 71680 143360 286720 573440 1146880 2293760 4587520 a = 9175040 183500800 m1 = 1 1 m2 = 1 2 s = Columns 1 through 15 2 9 11 13 35 70 140 280 560 1120 2240 4480 8960 17920 35840 Columns 16 through 23 71680 143360 286720 573440 1146880 2293760 4587520 9175040 a = 18350080 385351680 m1 = 1 1 m2 = 1 2 s = Columns 1 through 15 2 9 11 13 35 70 140 280 560 1120 2240 4480 8960 17920 35840 Columns 16 through 24 71680 143360 286720 573440 1146880 2293760 4587520 9175040 18350080 a = 36700160 807403520 m1 = 1 1 m2 = 1 2 s = Columns 1 through 15 2 9 11 13 35 70 140 280 560 1120 2240 4480 8960 17920 35840 Columns 16 through 25 71680 143360 286720 573440 1146880 2293760 4587520 9175040 18350080 36700160 a = 1.0e+09 * 0.0734 1.6882 m1 = 1 1 m2 = 1 2 s = Columns 1 through 15 2 9 11 13 35 70 140 280 560 1120 2240 4480 8960 17920 35840 Columns 16 through 26 71680 143360 286720 573440 1146880 2293760 4587520 9175040 18350080 36700160 73400320 a = 1.0e+09 * 0.1468 3.5232 m1 = 1 1 m2 = 1 2 s = Columns 1 through 15 2 9 11 13 35 70 140 280 560 1120 2240 4480 8960 17920 35840 Columns 16 through 27 71680 143360 286720 573440 1146880 2293760 4587520 9175040 18350080 36700160 73400320 146800640 a = 1.0e+09 * 0.2936 7.3400 m1 = 1 1 m2 = 1 2 s = Columns 1 through 15 2 9 11 13 35 70 140 280 560 1120 2240 4480 8960 17920 35840 Columns 16 through 28 71680 143360 286720 573440 1146880 2293760 4587520 9175040 18350080 36700160 73400320 146800640 293601280

Output argument "y" (and maybe others) not assigned during call to "ulam". Error in Test6 (line 5) assert(isequal(ulam(x1,x2,n),y_correct))

7   Fail
x1 = 4; x2 = 5; n = 29; y_correct = 123; assert(isequal(ulam(x1,x2,n),y_correct))

a = 9 m1 = 1 m2 = 1 s = 4 5 9 a = 13 23 m1 = 1 1 m2 = 1 2 s = 4 5 9 13 a = 31 62 m1 = 1 1 m2 = 1 2 s = 4 5 9 13 31 a = 62 186 m1 = 1 1 m2 = 1 2 s = 4 5 9 13 31 62 a = 124 496 m1 = 1 1 m2 = 1 2 s = 4 5 9 13 31 62 124 a = 248 1240 m1 = 1 1 m2 = 1 2 s = 4 5 9 13 31 62 124 248 a = 496 2976 m1 = 1 1 m2 = 1 2 s = 4 5 9 13 31 62 124 248 496 a = 992 6944 m1 = 1 1 m2 = 1 2 s = 4 5 9 13 31 62 124 248 496 992 a = 1984 15872 m1 = 1 1 m2 = 1 2 s = 4 5 9 13 31 62 124 248 496 992 1984 a = 3968 35712 m1 = 1 1 m2 = 1 2 s = 4 5 9 13 31 62 124 248 496 992 1984 3968 a = 7936 79360 m1 = 1 1 m2 = 1 2 s = 4 5 9 13 31 62 124 248 496 992 1984 3968 7936 a = 15872 174592 m1 = 1 1 m2 = 1 2 s = 4 5 9 13 31 62 124 248 496 992 1984 3968 7936 15872 a = 31744 380928 m1 = 1 1 m2 = 1 2 s = 4 5 9 13 31 62 124 248 496 992 1984 3968 7936 15872 31744 a = 63488 825344 m1 = 1 1 m2 = 1 2 s = Columns 1 through 15 4 5 9 13 31 62 124 248 496 992 1984 3968 7936 15872 31744 Column 16 63488 a = 126976 1777664 m1 = 1 1 m2 = 1 2 s = Columns 1 through 15 4 5 9 13 31 62 124 248 496 992 1984 3968 7936 15872 31744 Columns 16 through 17 63488 126976 a = 253952 3809280 m1 = 1 1 m2 = 1 2 s = Columns 1 through 15 4 5 9 13 31 62 124 248 496 992 1984 3968 7936 15872 31744 Columns 16 through 18 63488 126976 253952 a = 507904 8126464 m1 = 1 1 m2 = 1 2 s = Columns 1 through 15 4 5 9 13 31 62 124 248 496 992 1984 3968 7936 15872 31744 Columns 16 through 19 63488 126976 253952 507904 a = 1015808 17268736 m1 = 1 1 m2 = 1 2 s = Columns 1 through 15 4 5 9 13 31 62 124 248 496 992 1984 3968 7936 15872 31744 Columns 16 through 20 63488 126976 253952 507904 1015808 a = 2031616 36569088 m1 = 1 1 m2 = 1 2 s = Columns 1 through 15 4 5 9 13 31 62 124 248 496 992 1984 3968 7936 15872 31744 Columns 16 through 21 63488 126976 253952 507904 1015808 2031616 a = 4063232 77201408 m1 = 1 1 m2 = 1 2 s = Columns 1 through 15 4 5 9 13 31 62 124 248 496 992 1984 3968 7936 15872 31744 Columns 16 through 22 63488 126976 253952 507904 1015808 2031616 4063232 a = 8126464 162529280 m1 = 1 1 m2 = 1 2 s = Columns 1 through 15 4 5 9 13 31 62 124 248 496 992 1984 3968 7936 15872 31744 Columns 16 through 23 63488 126976 253952 507904 1015808 2031616 4063232 8126464 a = 16252928 341311488 m1 = 1 1 m2 = 1 2 s = Columns 1 through 15 4 5 9 13 31 62 124 248 496 992 1984 3968 7936 15872 31744 Columns 16 through 24 63488 126976 253952 507904 1015808 2031616 4063232 8126464 16252928 a = 32505856 715128832 m1 = 1 1 m2 = 1 2 s = Columns 1 through 15 4 5 9 13 31 62 124 248 496 992 1984 3968 7936 15872 31744 Columns 16 through 25 63488 126976 253952 507904 1015808 2031616 4063232 8126464 16252928 32505856 a = 1.0e+09 * 0.0650 1.4953 m1 = 1 1 m2 = 1 2 s = Columns 1 through 15 4 5 9 13 31 62 124 248 496 992 1984 3968 7936 15872 31744 Columns 16 through 26 63488 126976 253952 507904 1015808 2031616 4063232 8126464 16252928 32505856 65011712 a = 1.0e+09 * 0.1300 3.1206 m1 = 1 1 m2 = 1 2 s = Columns 1 through 15 4 5 9 13 31 62 124 248 496 992 1984 3968 7936 15872 31744 Columns 16 through 27 63488 126976 253952 507904 1015808 2031616 4063232 8126464 16252928 32505856 65011712 130023424 a = 1.0e+09 * 0.2600 6.5012 m1 = 1 1 m2 = 1 2 s = Columns 1 through 15 4 5 9 13 31 62 124 248 496 992 1984 3968 7936 15872 31744 Columns 16 through 28 63488 126976 253952 507904 1015808 2031616 4063232 8126464 16252928 32505856 65011712 130023424 260046848 a = 1.0e+10 * 0.0520 1.3522 m1 = 1 1 m2 = 1 2 s = Columns 1 through 15 4 5 9 13 31 62 124 248 496 992 1984 3968 7936 15872 31744 Columns 16 through 29 63488 126976 253952 507904 1015808 2031616 4063232 8126464 16252928 32505856 65011712 130023424 260046848 520093696 a = 1.0e+10 * 0.1040 2.8085 m1 = 1 1 m2 = 1 2 s = 1.0e+09 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0001 0.0003 Columns 19 through 30 0.0005 0.0010 0.0020 0.0041 0.0081 0.0163 0.0325 0.0650 0.1300 0.2600 0.5201 1.0402 a = 1.0e+10 * 0.2080 5.8250 m1 = 1 1 m2 = 1 2 s = 1.0e+09 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0001 0.0003 Columns 19 through 31 0.0005 0.0010 0.0020 0.0041 0.0081 0.0163 0.0325 0.0650 0.1300 0.2600 0.5201 1.0402 2.0804

Output argument "y" (and maybe others) not assigned during call to "ulam". Error in Test7 (line 5) assert(isequal(ulam(x1,x2,n),y_correct))

8   Fail
x1 = 6; x2 = 7; n = 29; y_correct = 123; assert(isequal(ulam(x1,x2,n),y_correct))

a = 13 m1 = 1 m2 = 1 s = 6 7 13 a = 19 33 m1 = 1 1 m2 = 1 2 s = 6 7 13 19 a = 45 90 m1 = 1 1 m2 = 1 2 s = 6 7 13 19 45 a = 90 270 m1 = 1 1 m2 = 1 2 s = 6 7 13 19 45 90 a = 180 720 m1 = 1 1 m2 = 1 2 s = 6 7 13 19 45 90 180 a = 360 1800 m1 = 1 1 m2 = 1 2 s = 6 7 13 19 45 90 180 360 a = 720 4320 m1 = 1 1 m2 = 1 2 s = 6 7 13 19 45 90 180 360 720 a = 1440 10080 m1 = 1 1 m2 = 1 2 s = 6 7 13 19 45 90 180 360 720 1440 a = 2880 23040 m1 = 1 1 m2 = 1 2 s = 6 7 13 19 45 90 180 360 720 1440 2880 a = 5760 51840 m1 = 1 1 m2 = 1 2 s = 6 7 13 19 45 90 180 360 720 1440 2880 5760 a = 11520 115200 m1 = 1 1 m2 = 1 2 s = 6 7 13 19 45 90 180 360 720 1440 2880 5760 11520 a = 23040 253440 m1 = 1 1 m2 = 1 2 s = 6 7 13 19 45 90 180 360 720 1440 2880 5760 11520 23040 a = 46080 552960 m1 = 1 1 m2 = 1 2 s = 6 7 13 19 45 90 180 360 720 1440 2880 5760 11520 23040 46080 a = 92160 1198080 m1 = 1 1 m2 = 1 2 s = Columns 1 through 15 6 7 13 19 45 90 180 360 720 1440 2880 5760 11520 23040 46080 Column 16 92160 a = 184320 2580480 m1 = 1 1 m2 = 1 2 s = Columns 1 through 15 6 7 13 19 45 90 180 360 720 1440 2880 5760 11520 23040 46080 Columns 16 through 17 92160 184320 a = 368640 5529600 m1 = 1 1 m2 = 1 2 s = Columns 1 through 15 6 7 13 19 45 90 180 360 720 1440 2880 5760 11520 23040 46080 Columns 16 through 18 92160 184320 368640 a = 737280 11796480 m1 = 1 1 m2 = 1 2 s = Columns 1 through 15 6 7 13 19 45 90 180 360 720 1440 2880 5760 11520 23040 46080 Columns 16 through 19 92160 184320 368640 737280 a = 1474560 25067520 m1 = 1 1 m2 = 1 2 s = Columns 1 through 15 6 7 13 19 45 90 180 360 720 1440 2880 5760 11520 23040 46080 Columns 16 through 20 92160 184320 368640 737280 1474560 a = 2949120 53084160 m1 = 1 1 m2 = 1 2 s = Columns 1 through 15 6 7 13 19 45 90 180 360 720 1440 2880 5760 11520 23040 46080 Columns 16 through 21 92160 184320 368640 737280 1474560 2949120 a = 5898240 112066560 m1 = 1 1 m2 = 1 2 s = Columns 1 through 15 6 7 13 19 45 90 180 360 720 1440 2880 5760 11520 23040 46080 Columns 16 through 22 92160 184320 368640 737280 1474560 2949120 5898240 a = 11796480 235929600 m1 = 1 1 m2 = 1 2 s = Columns 1 through 15 6 7 13 19 45 90 180 360 720 1440 2880 5760 11520 23040 46080 Columns 16 through 23 92160 184320 368640 737280 1474560 2949120 5898240 11796480 a = 23592960 495452160 m1 = 1 1 m2 = 1 2 s = Columns 1 through 15 6 7 13 19 45 90 180 360 720 1440 2880 5760 11520 23040 46080 Columns 16 through 24 92160 184320 368640 737280 1474560 2949120 5898240 11796480 23592960 a = 1.0e+09 * 0.0472 1.0381 m1 = 1 1 m2 = 1 2 s = Columns 1 through 15 6 7 13 19 45 90 180 360 720 1440 2880 5760 11520 23040 46080 Columns 16 through 25 92160 184320 368640 737280 1474560 2949120 5898240 11796480 23592960 47185920 a = 1.0e+09 * 0.0944 2.1706 m1 = 1 1 m2 = 1 2 s = Columns 1 through 15 6 7 13 19 45 90 180 360 720 1440 2880 5760 11520 23040 46080 Columns 16 through 26 92160 184320 368640 737280 1474560 2949120 5898240 11796480 23592960 47185920 94371840 a = 1.0e+09 * 0.1887 4.5298 m1 = 1 1 m2 = 1 2 s = Columns 1 through 15 6 7 13 19 45 90 180 360 720 1440 2880 5760 11520 23040 46080 Columns 16 through 27 92160 184320 368640 737280 1474560 2949120 5898240 11796480 23592960 47185920 94371840 188743680 a = 1.0e+09 * 0.3775 9.4372 m1 = 1 1 m2 = 1 2 s = Columns 1 through 15 6 7 13 19 45 90 180 360 720 1440 2880 5760 11520 23040 46080 Columns 16 through 28 92160 184320 368640 737280 1474560 2949120 5898240 11796480 23592960 47185920 94371840 188743680 377487360 a = 1.0e+10 * 0.0755 1.9629 m1 = 1 1 m2 = 1 2 s = Columns 1 through 15 6 7 13 19 45 90 180 360 720 1440 2880 5760 11520 23040 46080 Columns 16 through 29 92160 184320 368640 737280 1474560 2949120 5898240 11796480 23592960 47185920 94371840 188743680 377487360 754974720 a = 1.0e+10 * 0.1510 4.0769 m1 = 1 1 m2 = 1 2 s = 1.0e+09 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0002 0.0004 Columns 19 through 30 0.0007 0.0015 0.0029 0.0059 0.0118 0.0236 0.0472 0.0944 0.1887 0.3775 0.7550 1.5099 a = 1.0e+10 * 0.3020 8.4557 m1 = 1 1 m2 = 1 2 s = 1.0e+09 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0002 0.0004 Columns 19 through 31 0.0007 0.0015 0.0029 0.0059 0.0118 0.0236 0.0472 0.0944 0.1887 0.3775 0.7550 1.5099 3.0199

Output argument "y" (and maybe others) not assigned during call to "ulam". Error in Test8 (line 5) assert(isequal(ulam(x1,x2,n),y_correct))