Cody

# Problem 45394. Count the number of folds needed to pack a large sheet

Solution 2268404

Submitted on 10 May 2020 by Ramesh Kumar V
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(isequal(number_of_folds(3247,2132),24))

fold = 0 fold = 1 X = 1.6235e+03 fold = 2 Y = 1066 fold = 3 X = 811.7500 fold = 4 Y = 533 fold = 5 X = 405.8750 fold = 6 Y = 266.5000 fold = 7 X = 202.9375 fold = 8 Y = 133.2500 fold = 9 X = 101.4688 fold = 10 Y = 66.6250 fold = 11 X = 50.7344 fold = 12 Y = 33.3125 fold = 13 X = 25.3672 fold = 14 Y = 16.6562 fold = 15 X = 12.6836 fold = 16 Y = 8.3281 fold = 17 X = 6.3418 fold = 18 Y = 4.1641 fold = 19 X = 3.1709 fold = 20 Y = 2.0820 fold = 21 X = 1.5854 fold = 22 Y = 1.0410 fold = 23 X = 0.7927 fold = 24 Y = 0.5205 y = 24

2   Pass
assert(isequal(number_of_folds(1403,3757),23))

fold = 0 fold = 1 Y = 1.8785e+03 fold = 2 Y = 939.2500 fold = 3 X = 701.5000 fold = 4 Y = 469.6250 fold = 5 X = 350.7500 fold = 6 Y = 234.8125 fold = 7 X = 175.3750 fold = 8 Y = 117.4062 fold = 9 X = 87.6875 fold = 10 Y = 58.7031 fold = 11 X = 43.8438 fold = 12 Y = 29.3516 fold = 13 X = 21.9219 fold = 14 Y = 14.6758 fold = 15 X = 10.9609 fold = 16 Y = 7.3379 fold = 17 X = 5.4805 fold = 18 Y = 3.6689 fold = 19 X = 2.7402 fold = 20 Y = 1.8345 fold = 21 X = 1.3701 fold = 22 Y = 0.9172 fold = 23 X = 0.6851 y = 23

3   Pass
assert(isequal(number_of_folds(3504,2201),24))

fold = 0 fold = 1 X = 1752 fold = 2 Y = 1.1005e+03 fold = 3 X = 876 fold = 4 Y = 550.2500 fold = 5 X = 438 fold = 6 Y = 275.1250 fold = 7 X = 219 fold = 8 Y = 137.5625 fold = 9 X = 109.5000 fold = 10 Y = 68.7812 fold = 11 X = 54.7500 fold = 12 Y = 34.3906 fold = 13 X = 27.3750 fold = 14 Y = 17.1953 fold = 15 X = 13.6875 fold = 16 Y = 8.5977 fold = 17 X = 6.8438 fold = 18 Y = 4.2988 fold = 19 X = 3.4219 fold = 20 Y = 2.1494 fold = 21 X = 1.7109 fold = 22 Y = 1.0747 fold = 23 X = 0.8555 fold = 24 Y = 0.5374 y = 24

4   Pass
assert(isequal(number_of_folds(2490,2349),24))

fold = 0 fold = 1 X = 1245 fold = 2 Y = 1.1745e+03 fold = 3 X = 622.5000 fold = 4 Y = 587.2500 fold = 5 X = 311.2500 fold = 6 Y = 293.6250 fold = 7 X = 155.6250 fold = 8 Y = 146.8125 fold = 9 X = 77.8125 fold = 10 Y = 73.4062 fold = 11 X = 38.9062 fold = 12 Y = 36.7031 fold = 13 X = 19.4531 fold = 14 Y = 18.3516 fold = 15 X = 9.7266 fold = 16 Y = 9.1758 fold = 17 X = 4.8633 fold = 18 Y = 4.5879 fold = 19 X = 2.4316 fold = 20 Y = 2.2939 fold = 21 X = 1.2158 fold = 22 Y = 1.1470 fold = 23 X = 0.6079 fold = 24 Y = 0.5735 y = 24

5   Pass
assert(isequal(number_of_folds(831,1205),21))

fold = 0 fold = 1 Y = 602.5000 fold = 2 X = 415.5000 fold = 3 Y = 301.2500 fold = 4 X = 207.7500 fold = 5 Y = 150.6250 fold = 6 X = 103.8750 fold = 7 Y = 75.3125 fold = 8 X = 51.9375 fold = 9 Y = 37.6562 fold = 10 X = 25.9688 fold = 11 Y = 18.8281 fold = 12 X = 12.9844 fold = 13 Y = 9.4141 fold = 14 X = 6.4922 fold = 15 Y = 4.7070 fold = 16 X = 3.2461 fold = 17 Y = 2.3535 fold = 18 X = 1.6230 fold = 19 Y = 1.1768 fold = 20 X = 0.8115 fold = 21 Y = 0.5884 y = 21

6   Pass
assert(isequal(number_of_folds(1884,922),21))

fold = 0 fold = 1 X = 942 fold = 2 X = 471 fold = 3 Y = 461 fold = 4 X = 235.5000 fold = 5 Y = 230.5000 fold = 6 X = 117.7500 fold = 7 Y = 115.2500 fold = 8 X = 58.8750 fold = 9 Y = 57.6250 fold = 10 X = 29.4375 fold = 11 Y = 28.8125 fold = 12 X = 14.7188 fold = 13 Y = 14.4062 fold = 14 X = 7.3594 fold = 15 Y = 7.2031 fold = 16 X = 3.6797 fold = 17 Y = 3.6016 fold = 18 X = 1.8398 fold = 19 Y = 1.8008 fold = 20 X = 0.9199 fold = 21 Y = 0.9004 y = 21

7   Pass
assert(isequal(number_of_folds(2,4),5))

fold = 0 fold = 1 Y = 2 fold = 2 X = 1 fold = 3 Y = 1 fold = 4 X = 0.5000 fold = 5 Y = 0.5000 y = 5

8   Pass
assert(isequal(number_of_folds(3378,780),22))

fold = 0 fold = 1 X = 1689 fold = 2 X = 844.5000 fold = 3 X = 422.2500 fold = 4 Y = 390 fold = 5 X = 211.1250 fold = 6 Y = 195 fold = 7 X = 105.5625 fold = 8 Y = 97.5000 fold = 9 X = 52.7812 fold = 10 Y = 48.7500 fold = 11 X = 26.3906 fold = 12 Y = 24.3750 fold = 13 X = 13.1953 fold = 14 Y = 12.1875 fold = 15 X = 6.5977 fold = 16 Y = 6.0938 fold = 17 X = 3.2988 fold = 18 Y = 3.0469 fold = 19 X = 1.6494 fold = 20 Y = 1.5234 fold = 21 X = 0.8247 fold = 22 Y = 0.7617 y = 22

9   Pass
assert(isequal(number_of_folds(904,683),20))

fold = 0 fold = 1 X = 452 fold = 2 Y = 341.5000 fold = 3 X = 226 fold = 4 Y = 170.7500 fold = 5 X = 113 fold = 6 Y = 85.3750 fold = 7 X = 56.5000 fold = 8 Y = 42.6875 fold = 9 X = 28.2500 fold = 10 Y = 21.3438 fold = 11 X = 14.1250 fold = 12 Y = 10.6719 fold = 13 X = 7.0625 fold = 14 Y = 5.3359 fold = 15 X = 3.5312 fold = 16 Y = 2.6680 fold = 17 X = 1.7656 fold = 18 Y = 1.3340 fold = 19 X = 0.8828 fold = 20 Y = 0.6670 y = 20

10   Pass
assert(isequal(number_of_folds(911,1743),21))

fold = 0 fold = 1 Y = 871.5000 fold = 2 X = 455.5000 fold = 3 Y = 435.7500 fold = 4 X = 227.7500 fold = 5 Y = 217.8750 fold = 6 X = 113.8750 fold = 7 Y = 108.9375 fold = 8 X = 56.9375 fold = 9 Y = 54.4688 fold = 10 X = 28.4688 fold = 11 Y = 27.2344 fold = 12 X = 14.2344 fold = 13 Y = 13.6172 fold = 14 X = 7.1172 fold = 15 Y = 6.8086 fold = 16 X = 3.5586 fold = 17 Y = 3.4043 fold = 18 X = 1.7793 fold = 19 Y = 1.7021 fold = 20 X = 0.8896 fold = 21 Y = 0.8511 y = 21

11   Pass
assert(isequal(number_of_folds(1245,3694),23))

fold = 0 fold = 1 Y = 1847 fold = 2 Y = 923.5000 fold = 3 X = 622.5000 fold = 4 Y = 461.7500 fold = 5 X = 311.2500 fold = 6 Y = 230.8750 fold = 7 X = 155.6250 fold = 8 Y = 115.4375 fold = 9 X = 77.8125 fold = 10 Y = 57.7188 fold = 11 X = 38.9062 fold = 12 Y = 28.8594 fold = 13 X = 19.4531 fold = 14 Y = 14.4297 fold = 15 X = 9.7266 fold = 16 Y = 7.2148 fold = 17 X = 4.8633 fold = 18 Y = 3.6074 fold = 19 X = 2.4316 fold = 20 Y = 1.8037 fold = 21 X = 1.2158 fold = 22 Y = 0.9019 fold = 23 X = 0.6079 y = 23

12   Pass
assert(isequal(number_of_folds(1721,740),21))

fold = 0 fold = 1 X = 860.5000 fold = 2 X = 430.2500 fold = 3 Y = 370 fold = 4 X = 215.1250 fold = 5 Y = 185 fold = 6 X = 107.5625 fold = 7 Y = 92.5000 fold = 8 X = 53.7812 fold = 9 Y = 46.2500 fold = 10 X = 26.8906 fold = 11 Y = 23.1250 fold = 12 X = 13.4453 fold = 13 Y = 11.5625 fold = 14 X = 6.7227 fold = 15 Y = 5.7812 fold = 16 X = 3.3613 fold = 17 Y = 2.8906 fold = 18 X = 1.6807 fold = 19 Y = 1.4453 fold = 20 X = 0.8403 fold = 21 Y = 0.7227 y = 21

13   Pass
assert(isequal(number_of_folds(3620,3919),24))

fold = 0 fold = 1 Y = 1.9595e+03 fold = 2 X = 1810 fold = 3 Y = 979.7500 fold = 4 X = 905 fold = 5 Y = 489.8750 fold = 6 X = 452.5000 fold = 7 Y = 244.9375 fold = 8 X = 226.2500 fold = 9 Y = 122.4688 fold = 10 X = 113.1250 fold = 11 Y = 61.2344 fold = 12 X = 56.5625 fold = 13 Y = 30.6172 fold = 14 X = 28.2812 fold = 15 Y = 15.3086 fold = 16 X = 14.1406 fold = 17 Y = 7.6543 fold = 18 X = 7.0703 fold = 19 Y = 3.8271 fold = 20 X = 3.5352 fold = 21 Y = 1.9136 fold = 22 X = 1.7676 fold = 23 Y = 0.9568 fold = 24 X = 0.8838 y = 24

14   Pass
assert(isequal(number_of_folds(1756,445),20))

fold = 0 fold = 1 X = 878 fold = 2 X = 439 fold = 3 Y = 222.5000 fold = 4 X = 219.5000 fold = 5 Y = 111.2500 fold = 6 X = 109.7500 fold = 7 Y = 55.6250 fold = 8 X = 54.8750 fold = 9 Y = 27.8125 fold = 10 X = 27.4375 fold = 11 Y = 13.9062 fold = 12 X = 13.7188 fold = 13 Y = 6.9531 fold = 14 X = 6.8594 fold = 15 Y = 3.4766 fold = 16 X = 3.4297 fold = 17 Y = 1.7383 fold = 18 X = 1.7148 fold = 19 Y = 0.8691 fold = 20 X = 0.8574 y = 20

15   Pass
assert(isequal(number_of_folds(1033,1635),22))

fold = 0 fold = 1 Y = 817.5000 fold = 2 X = 516.5000 fold = 3 Y = 408.7500 fold = 4 X = 258.2500 fold = 5 Y = 204.3750 fold = 6 X = 129.1250 fold = 7 Y = 102.1875 fold = 8 X = 64.5625 fold = 9 Y = 51.0938 fold = 10 X = 32.2812 fold = 11 Y = 25.5469 fold = 12 X = 16.1406 fold = 13 Y = 12.7734 fold = 14 X = 8.0703 fold = 15 Y = 6.3867 fold = 16 X = 4.0352 fold = 17 Y = 3.1934 fold = 18 X = 2.0176 fold = 19 Y = 1.5967 fold = 20 X = 1.0088 fold = 21 Y = 0.7983 fold = 22 X = 0.5044 y = 22

16   Pass
assert(isequal(number_of_folds(2380,1049),23))

fold = 0 fold = 1 X = 1190 fold = 2 X = 595 fold = 3 Y = 524.5000 fold = 4 X = 297.5000 fold = 5 Y = 262.2500 fold = 6 X = 148.7500 fold = 7 Y = 131.1250 fold = 8 X = 74.3750 fold = 9 Y = 65.5625 fold = 10 X = 37.1875 fold = 11 Y = 32.7812 fold = 12 X = 18.5938 fold = 13 Y = 16.3906 fold = 14 X = 9.2969 fold = 15 Y = 8.1953 fold = 16 X = 4.6484 fold = 17 Y = 4.0977 fold = 18 X = 2.3242 fold = 19 Y = 2.0488 fold = 20 X = 1.1621 fold = 21 Y = 1.0244 fold = 22 X = 0.5811 fold = 23 Y = 0.5122 y = 23

17   Pass
assert(isequal(number_of_folds(2412,2845),24))

fold = 0 fold = 1 Y = 1.4225e+03 fold = 2 X = 1206 fold = 3 Y = 711.2500 fold = 4 X = 603 fold = 5 Y = 355.6250 fold = 6 X = 301.5000 fold = 7 Y = 177.8125 fold = 8 X = 150.7500 fold = 9 Y = 88.9062 fold = 10 X = 75.3750 fold = 11 Y = 44.4531 fold = 12 X = 37.6875 fold = 13 Y = 22.2266 fold = 14 X = 18.8438 fold = 15 Y = 11.1133 fold = 16 X = 9.4219 fold = 17 Y = 5.5566 fold = 18 X = 4.7109 fold = 19 Y = 2.7783 fold = 20 X = 2.3555 fold = 21 Y = 1.3892 fold = 22 X = 1.1777 fold = 23 Y = 0.6946 fold = 24 X = 0.5889 y = 24

18   Pass
assert(isequal(number_of_folds(887,470),19))

fold = 0 fold = 1 X = 443.5000 fold = 2 Y = 235 fold = 3 X = 221.7500 fold = 4 Y = 117.5000 fold = 5 X = 110.8750 fold = 6 Y = 58.7500 fold = 7 X = 55.4375 fold = 8 Y = 29.3750 fold = 9 X = 27.7188 fold = 10 Y = 14.6875 fold = 11 X = 13.8594 fold = 12 Y = 7.3438 fold = 13 X = 6.9297 fold = 14 Y = 3.6719 fold = 15 X = 3.4648 fold = 16 Y = 1.8359 fold = 17 X = 1.7324 fold = 18 Y = 0.9180 fold = 19 X = 0.8662 y = 19

19   Pass
assert(isequal(number_of_folds(1187,1276),22))

fold = 0 fold = 1 Y = 638 fold = 2 X = 593.5000 fold = 3 Y = 319 fold = 4 X = 296.7500 fold = 5 Y = 159.5000 fold = 6 X = 148.3750 fold = 7 Y = 79.7500 fold = 8 X = 74.1875 fold = 9 Y = 39.8750 fold = 10 X = 37.0938 fold = 11 Y = 19.9375 fold = 12 X = 18.5469 fold = 13 Y = 9.9688 fold = 14 X = 9.2734 fold = 15 Y = 4.9844 fold = 16 X = 4.6367 fold = 17 Y = 2.4922 fold = 18 X = 2.3184 fold = 19 Y = 1.2461 fold = 20 X = 1.1592 fold = 21 Y = 0.6230 fold = 22 X = 0.5796 y = 22

20   Pass
assert(isequal(number_of_folds(1697,2032),22))

fold = 0 fold = 1 Y = 1016 fold = 2 X = 848.5000 fold = 3 Y = 508 fold = 4 X = 424.2500 fold = 5 Y = 254 fold = 6 X = 212.1250 fold = 7 Y = 127 fold = 8 X = 106.0625 fold = 9 Y = 63.5000 fold = 10 X = 53.0312 fold = 11 Y = 31.7500 fold = 12 X = 26.5156 fold = 13 Y = 15.8750 fold = 14 X = 13.2578 fold = 15 Y = 7.9375 fold = 16 X = 6.6289 fold = 17 Y = 3.9688 fold = 18 X = 3.3145 fold = 19 Y = 1.9844 fold = 20 X = 1.6572 fold = 21 Y = 0.9922 fold = 22 X = 0.8286 y = 22

21   Pass
assert(isequal(number_of_folds(343,1050),20))

fold = 0 fold = 1 Y = 525 fold = 2 Y = 262.5000 fold = 3 X = 171.5000 fold = 4 Y = 131.2500 fold = 5 X = 85.7500 fold = 6 Y = 65.6250 fold = 7 X = 42.8750 fold = 8 Y = 32.8125 fold = 9 X = 21.4375 fold = 10 Y = 16.4062 fold = 11 X = 10.7188 fold = 12 Y = 8.2031 fold = 13 X = 5.3594 fold = 14 Y = 4.1016 fold = 15 X = 2.6797 fold = 16 Y = 2.0508 fold = 17 X = 1.3398 fold = 18 Y = 1.0254 fold = 19 X = 0.6699 fold = 20 Y = 0.5127 y = 20

22   Pass
assert(isequal(number_of_folds(3205,117),19))

fold = 0 fold = 1 X = 1.6025e+03 fold = 2 X = 801.2500 fold = 3 X = 400.6250 fold = 4 X = 200.3125 fold = 5 X = 100.1562 fold = 6 Y = 58.5000 fold = 7 X = 50.0781 fold = 8 Y = 29.2500 fold = 9 X = 25.0391 fold = 10 Y = 14.6250 fold = 11 X = 12.5195 fold = 12 Y = 7.3125 fold = 13 X = 6.2598 fold = 14 Y = 3.6562 fold = 15 X = 3.1299 fold = 16 Y = 1.8281 fold = 17 X = 1.5649 fold = 18 Y = 0.9141 fold = 19 X = 0.7825 y = 19

23   Pass
assert(isequal(number_of_folds(3716,2922),24))

fold = 0 fold = 1 X = 1858 fold = 2 Y = 1461 fold = 3 X = 929 fold = 4 Y = 730.5000 fold = 5 X = 464.5000 fold = 6 Y = 365.2500 fold = 7 X = 232.2500 fold = 8 Y = 182.6250 fold = 9 X = 116.1250 fold = 10 Y = 91.3125 fold = 11 X = 58.0625 fold = 12 Y = 45.6562 fold = 13 X = 29.0312 fold = 14 Y = 22.8281 fold = 15 X = 14.5156 fold = 16 Y = 11.4141 fold = 17 X = 7.2578 fold = 18 Y = 5.7070 fold = 19 X = 3.6289 fold = 20 Y = 2.8535 fold = 21 X = 1.8145 fold = 22 Y = 1.4268 fold = 23 X = 0.9072 fold = 24 Y = 0.7134 y = 24

24   Pass
assert(isequal(number_of_folds(1955,2315),23))

fold = 0 fold = 1 Y = 1.1575e+03 fold = 2 X = 977.5000 fold = 3 Y = 578.7500 fold = 4 X = 488.7500 fold = 5 Y = 289.3750 fold = 6 X = 244.3750 fold = 7 Y = 144.6875 fold = 8 X = 122.1875 fold = 9 Y = 72.3438 fold = 10 X = 61.0938 fold = 11 Y = 36.1719 fold = 12 X = 30.5469 fold = 13 Y = 18.0859 fold = 14 X = 15.2734 fold = 15 Y = 9.0430 fold = 16 X = 7.6367 fold = 17 Y = 4.5215 fold = 18 X = 3.8184 fold = 19 Y = 2.2607 fold = 20 X = 1.9092 fold = 21 Y = 1.1304 fold = 22 X = 0.9546 fold = 23 Y = 0.5652 y = 23

25   Pass
assert(isequal(number_of_folds(950,1836),21))

fold = 0 fold = 1 Y = 918 fold = 2 X = 475 fold = 3 Y = 459 fold = 4 X = 237.5000 fold = 5 Y = 229.5000 fold = 6 X = 118.7500 fold = 7 Y = 114.7500 fold = 8 X = 59.3750 fold = 9 Y = 57.3750 fold = 10 X = 29.6875 fold = 11 Y = 28.6875 fold = 12 X = 14.8438 fold = 13 Y = 14.3438 fold = 14 X = 7.4219 fold = 15 Y = 7.1719 fold = 16 X = 3.7109 fold = 17 Y = 3.5859 fold = 18 X = 1.8555 fold = 19 Y = 1.7930 fold = 20 X = 0.9277 fold = 21 Y = 0.8965 y = 21

26   Pass
assert(isequal(number_of_folds(3853,2188),24))

fold = 0 fold = 1 X = 1.9265e+03 fold = 2 Y = 1094 fold = 3 X = 963.2500 fold = 4 Y = 547 fold = 5 X = 481.6250 fold = 6 Y = 273.5000 fold = 7 X = 240.8125 fold = 8 Y = 136.7500 fold = 9 X = 120.4062 fold = 10 Y = 68.3750 fold = 11 X = 60.2031 fold = 12 Y = 34.1875 fold = 13 X = 30.1016 fold = 14 Y = 17.0938 fold = 15 X = 15.0508 fold = 16 Y = 8.5469 fold = 17 X = 7.5254 fold = 18 Y = 4.2734 fold = 19 X = 3.7627 fold = 20 Y = 2.1367 fold = 21 X = 1.8813 fold = 22 Y = 1.0684 fold = 23 X = 0.9407 fold = 24 Y = 0.5342 y = 24

27   Pass
assert(isequal(number_of_folds(2085,927),22))

fold = 0 fold = 1 X = 1.0425e+03 fold = 2 X = 521.2500 fold = 3 Y = 463.5000 fold = 4 X = 260.6250 fold = 5 Y = 231.7500 fold = 6 X = 130.3125 fold = 7 Y = 115.8750 fold = 8 X = 65.1562 fold = 9 Y = 57.9375 fold = 10 X = 32.5781 fold = 11 Y = 28.9688 fold = 12 X = 16.2891 fold = 13 Y = 14.4844 fold = 14 X = 8.1445 fold = 15 Y = 7.2422 fold = 16 X = 4.0723 fold = 17 Y = 3.6211 fold = 18 X = 2.0361 fold = 19 Y = 1.8105 fold = 20 X = 1.0181 fold = 21 Y = 0.9053 fold = 22 X = 0.5090 y = 22

28   Pass
assert(isequal(number_of_folds(1956,2497),23))

fold = 0 fold = 1 Y = 1.2485e+03 fold = 2 X = 978 fold = 3 Y = 624.2500 fold = 4 X = 489 fold = 5 Y = 312.1250 fold = 6 X = 244.5000 fold = 7 Y = 156.0625 fold = 8 X = 122.2500 fold = 9 Y = 78.0312 fold = 10 X = 61.1250 fold = 11 Y = 39.0156 fold = 12 X = 30.5625 fold = 13 Y = 19.5078 fold = 14 X = 15.2812 fold = 15 Y = 9.7539 fold = 16 X = 7.6406 fold = 17 Y = 4.8770 fold = 18 X = 3.8203 fold = 19 Y = 2.4385 fold = 20 X = 1.9102 fold = 21 Y = 1.2192 fold = 22 X = 0.9551 fold = 23 Y = 0.6096 y = 23

29   Pass
assert(isequal(number_of_folds(2717,1583),23))

fold = 0 fold = 1 X = 1.3585e+03 fold = 2 Y = 791.5000 fold = 3 X = 679.2500 fold = 4 Y = 395.7500 fold = 5 X = 339.6250 fold = 6 Y = 197.8750 fold = 7 X = 169.8125 fold = 8 Y = 98.9375 fold = 9 X = 84.9062 fold = 10 Y = 49.4688 fold = 11 X = 42.4531 fold = 12 Y = 24.7344 fold = 13 X = 21.2266 fold = 14 Y = 12.3672 fold = 15 X = 10.6133 fold = 16 Y = 6.1836 fold = 17 X = 5.3066 fold = 18 Y = 3.0918 fold = 19 X = 2.6533 fold = 20 Y = 1.5459 fold = 21 X = 1.3267 fold = 22 Y = 0.7729 fold = 23 X = 0.6633 y = 23

30   Pass
assert(isequal(number_of_folds(1470,3952),23))

fold = 0 fold = 1 Y = 1976 fold = 2 Y = 988 fold = 3 X = 735 fold = 4 Y = 494 fold = 5 X = 367.5000 fold = 6 Y = 247 fold = 7 X = 183.7500 fold = 8 Y = 123.5000 fold = 9 X = 91.8750 fold = 10 Y = 61.7500 fold = 11 X = 45.9375 fold = 12 Y = 30.8750 fold = 13 X = 22.9688 fold = 14 Y = 15.4375 fold = 15 X = 11.4844 fold = 16 Y = 7.7188 fold = 17 X = 5.7422 fold = 18 Y = 3.8594 fold = 19 X = 2.8711 fold = 20 Y = 1.9297 fold = 21 X = 1.4355 fold = 22 Y = 0.9648 fold = 23 X = 0.7178 y = 23

31   Pass
assert(isequal(number_of_folds(151,3541),20))

fold = 0 fold = 1 Y = 1.7705e+03 fold = 2 Y = 885.2500 fold = 3 Y = 442.6250 fold = 4 Y = 221.3125 fold = 5 Y = 110.6562 fold = 6 X = 75.5000 fold = 7 Y = 55.3281 fold = 8 X = 37.7500 fold = 9 Y = 27.6641 fold = 10 X = 18.8750 fold = 11 Y = 13.8320 fold = 12 X = 9.4375 fold = 13 Y = 6.9160 fold = 14 X = 4.7188 fold = 15 Y = 3.4580 fold = 16 X = 2.3594 fold = 17 Y = 1.7290 fold = 18 X = 1.1797 fold = 19 Y = 0.8645 fold = 20 X = 0.5898 y = 20

32   Pass
assert(isequal(number_of_folds(3654,3185),24))

fold = 0 fold = 1 X = 1827 fold = 2 Y = 1.5925e+03 fold = 3 X = 913.5000 fold = 4 Y = 796.2500 fold = 5 X = 456.7500 fold = 6 Y = 398.1250 fold = 7 X = 228.3750 fold = 8 Y = 199.0625 fold = 9 X = 114.1875 fold = 10 Y = 99.5312 fold = 11 X = 57.0938 fold = 12 Y = 49.7656 fold = 13 X = 28.5469 fold = 14 Y = 24.8828 fold = 15 X = 14.2734 fold = 16 Y = 12.4414 fold = 17 X = 7.1367 fold = 18 Y = 6.2207 fold = 19 X = 3.5684 fold = 20 Y = 3.1104 fold = 21 X = 1.7842 fold = 22 Y = 1.5552 fold = 23 X = 0.8921 fold = 24 Y = 0.7776 y = 24

33   Pass
assert(isequal(number_of_folds(395,1048),20))

fold = 0 fold = 1 Y = 524 fold = 2 Y = 262 fold = 3 X = 197.5000 fold = 4 Y = 131 fold = 5 X = 98.7500 fold = 6 Y = 65.5000 fold = 7 X = 49.3750 fold = 8 Y = 32.7500 fold = 9 X = 24.6875 fold = 10 Y = 16.3750 fold = 11 X = 12.3438 fold = 12 Y = 8.1875 fold = 13 X = 6.1719 fold = 14 Y = 4.0938 fold = 15 X = 3.0859 fold = 16 Y = 2.0469 fold = 17 X = 1.5430 fold = 18 Y = 1.0234 fold = 19 X = 0.7715 fold = 20 Y = 0.5117 y = 20

34   Pass
assert(isequal(number_of_folds(1342,2719),23))

fold = 0 fold = 1 Y = 1.3595e+03 fold = 2 Y = 679.7500 fold = 3 X = 671 fold = 4 Y = 339.8750 fold = 5 X = 335.5000 fold = 6 Y = 169.9375 fold = 7 X = 167.7500 fold = 8 Y = 84.9688 fold = 9 X = 83.8750 fold = 10 Y = 42.4844 fold = 11 X = 41.9375 fold = 12 Y = 21.2422 fold = 13 X = 20.9688 fold = 14 Y = 10.6211 fold = 15 X = 10.4844 fold = 16 Y = 5.3105 fold = 17 X = 5.2422 fold = 18 Y = 2.6553 fold = 19 X = 2.6211 fold = 20 Y = 1.3276 fold = 21 X = 1.3105 fold = 22 Y = 0.6638 fold = 23 X = 0.6553 y = 23

35   Pass
assert(isequal(number_of_folds(547,2885),22))

fold = 0 fold = 1 Y = 1.4425e+03 fold = 2 Y = 721.2500 fold = 3 Y = 360.6250 fold = 4 X = 273.5000 fold = 5 Y = 180.3125 fold = 6 X = 136.7500 fold = 7 Y = 90.1562 fold = 8 X = 68.3750 fold = 9 Y = 45.0781 fold = 10 X = 34.1875 fold = 11 Y = 22.5391 fold = 12 X = 17.0938 fold = 13 Y = 11.2695 fold = 14 X = 8.5469 fold = 15 Y = 5.6348 fold = 16 X = 4.2734 fold = 17 Y = 2.8174 fold = 18 X = 2.1367 fold = 19 Y = 1.4087 fold = 20 X = 1.0684 fold = 21 Y = 0.7043 fold = 22 X = 0.5342 y = 22

36   Pass
assert(isequal(number_of_folds(428,2616),21))

fold = 0 fold = 1 Y = 1308 fold = 2 Y = 654 fold = 3 Y = 327 fold = 4 X = 214 fold = 5 Y = 163.5000 fold = 6 X = 107 fold = 7 Y = 81.7500 fold = 8 X = 53.5000 fold = 9 Y = 40.8750 fold = 10 X = 26.7500 fold = 11 Y = 20.4375 fold = 12 X = 13.3750 fold = 13 Y = 10.2188 fold = 14 X = 6.6875 fold = 15 Y = 5.1094 fold = 16 X = 3.3438 fold = 17 Y = 2.5547 fold = 18 X = 1.6719 fold = 19 Y = 1.2773 fold = 20 X = 0.8359 fold = 21 Y = 0.6387 y = 21

37   Pass
assert(isequal(number_of_folds(1977,3117),23))

fold = 0 fold = 1 Y = 1.5585e+03 fold = 2 X = 988.5000 fold = 3 Y = 779.2500 fold = 4 X = 494.2500 fold = 5 Y = 389.6250 fold = 6 X = 247.1250 fold = 7 Y = 194.8125 fold = 8 X = 123.5625 fold = 9 Y = 97.4062 fold = 10 X = 61.7812 fold = 11 Y = 48.7031 fold = 12 X = 30.8906 fold = 13 Y = 24.3516 fold = 14 X = 15.4453 fold = 15 Y = 12.1758 fold = 16 X = 7.7227 fold = 17 Y = 6.0879 fold = 18 X = 3.8613 fold = 19 Y = 3.0439 fold = 20 X = 1.9307 fold = 21 Y = 1.5220 fold = 22 X = 0.9653 fold = 23 Y = 0.7610 y = 23

38   Pass
assert(isequal(number_of_folds(2861,3615),24))

fold = 0 fold = 1 Y = 1.8075e+03 fold = 2 X = 1.4305e+03 fold = 3 Y = 903.7500 fold = 4 X = 715.2500 fold = 5 Y = 451.8750 fold = 6 X = 357.6250 fold = 7 Y = 225.9375 fold = 8 X = 178.8125 fold = 9 Y = 112.9688 fold = 10 X = 89.4062 fold = 11 Y = 56.4844 fold = 12 X = 44.7031 fold = 13 Y = 28.2422 fold = 14 X = 22.3516 fold = 15 Y = 14.1211 fold = 16 X = 11.1758 fold = 17 Y = 7.0605 fold = 18 X = 5.5879 fold = 19 Y = 3.5303 fold = 20 X = 2.7939 fold = 21 Y = 1.7651 fold = 22 X = 1.3970 fold = 23 Y = 0.8826 fold = 24 X = 0.6985 y = 24

39   Pass
assert(isequal(number_of_folds(3564,1337),23))

fold = 0 fold = 1 X = 1782 fold = 2 X = 891 fold = 3 Y = 668.5000 fold = 4 X = 445.5000 fold = 5 Y = 334.2500 fold = 6 X = 222.7500 fold = 7 Y = 167.1250 fold = 8 X = 111.3750 fold = 9 Y = 83.5625 fold = 10 X = 55.6875 fold = 11 Y = 41.7812 fold = 12 X = 27.8438 fold = 13 Y = 20.8906 fold = 14 X = 13.9219 fold = 15 Y = 10.4453 fold = 16 X = 6.9609 fold = 17 Y = 5.2227 fold = 18 X = 3.4805 fold = 19 Y = 2.6113 fold = 20 X = 1.7402 fold = 21 Y = 1.3057 fold = 22 X = 0.8701 fold = 23 Y = 0.6528 y = 23

40   Pass
assert(isequal(number_of_folds(1,4000),13))

fold = 0 fold = 1 Y = 2000 fold = 2 Y = 1000 fold = 3 Y = 500 fold = 4 Y = 250 fold = 5 Y = 125 fold = 6 Y = 62.5000 fold = 7 Y = 31.2500 fold = 8 Y = 15.6250 fold = 9 Y = 7.8125 fold = 10 Y = 3.9062 fold = 11 Y = 1.9531 fold = 12 Y = 0.9766 fold = 13 X = 0.5000 y = 13

41   Pass
assert(isequal(number_of_folds(2795,792),22))

fold = 0 fold = 1 X = 1.3975e+03 fold = 2 X = 698.7500 fold = 3 Y = 396 fold = 4 X = 349.3750 fold = 5 Y = 198 fold = 6 X = 174.6875 fold = 7 Y = 99 fold = 8 X = 87.3438 fold = 9 Y = 49.5000 fold = 10 X = 43.6719 fold = 11 Y = 24.7500 fold = 12 X = 21.8359 fold = 13 Y = 12.3750 fold = 14 X = 10.9180 fold = 15 Y = 6.1875 fold = 16 X = 5.4590 fold = 17 Y = 3.0938 fold = 18 X = 2.7295 fold = 19 Y = 1.5469 fold = 20 X = 1.3647 fold = 21 Y = 0.7734 fold = 22 X = 0.6824 y = 22

42   Pass
assert(isequal(number_of_folds(123,2977),19))

fold = 0 fold = 1 Y = 1.4885e+03 fold = 2 Y = 744.2500 fold = 3 Y = 372.1250 fold = 4 Y = 186.0625 fold = 5 Y = 93.0312 fold = 6 X = 61.5000 fold = 7 Y = 46.5156 fold = 8 X = 30.7500 fold = 9 Y = 23.2578 fold = 10 X = 15.3750 fold = 11 Y = 11.6289 fold = 12 X = 7.6875 fold = 13 Y = 5.8145 fold = 14 X = 3.8438 fold = 15 Y = 2.9072 fold = 16 X = 1.9219 fold = 17 Y = 1.4536 fold = 18 X = 0.9609 fold = 19 Y = 0.7268 y = 19

43   Pass
assert(isequal(number_of_folds(2001,1920),22))

fold = 0 fold = 1 X = 1.0005e+03 fold = 2 Y = 960 fold = 3 X = 500.2500 fold = 4 Y = 480 fold = 5 X = 250.1250 fold = 6 Y = 240 fold = 7 X = 125.0625 fold = 8 Y = 120 fold = 9 X = 62.5312 fold = 10 Y = 60 fold = 11 X = 31.2656 fold = 12 Y = 30 fold = 13 X = 15.6328 fold = 14 Y = 15 fold = 15 X = 7.8164 fold = 16 Y = 7.5000 fold = 17 X = 3.9082 fold = 18 Y = 3.7500 fold = 19 X = 1.9541 fold = 20 Y = 1.8750 fold = 21 X = 0.9771 fold = 22 Y = 0.9375 y = 22

44   Pass
assert(isequal(number_of_folds(3619,2440),24))

fold = 0 fold = 1 X = 1.8095e+03 fold = 2 Y = 1220 fold = 3 X = 904.7500 fold = 4 Y = 610 fold = 5 X = 452.3750 fold = 6 Y = 305 fold = 7 X = 226.1875 fold = 8 Y = 152.5000 fold = 9 X = 113.0938 fold = 10 Y = 76.2500 fold = 11 X = 56.5469 fold = 12 Y = 38.1250 fold = 13 X = 28.2734 fold = 14 Y = 19.0625 fold = 15 X = 14.1367 fold = 16 Y = 9.5312 fold = 17 X = 7.0684 fold = 18 Y = 4.7656 fold = 19 X = 3.5342 fold = 20 Y = 2.3828 fold = 21 X = 1.7671 fold = 22 Y = 1.1914 fold = 23 X = 0.8835 fold = 24 Y = 0.5957 y = 24

45   Pass
assert(isequal(number_of_folds(2471,3438),24))

fold = 0 fold = 1 Y = 1719 fold = 2 X = 1.2355e+03 fold = 3 Y = 859.5000 fold = 4 X = 617.7500 fold = 5 Y = 429.7500 fold = 6 X = 308.8750 fold = 7 Y = 214.8750 fold = 8 X = 154.4375 fold = 9 Y = 107.4375 fold = 10 X = 77.2188 fold = 11 Y = 53.7188 fold = 12 X = 38.6094 fold = 13 Y = 26.8594 fold = 14 X = 19.3047 fold = 15 Y = 13.4297 fold = 16 X = 9.6523 fold = 17 Y = 6.7148 fold = 18 X = 4.8262 fold = 19 Y = 3.3574 fold = 20 X = 2.4131 fold = 21 Y = 1.6787 fold = 22 X = 1.2065 fold = 23 Y = 0.8394 fold = 24 X = 0.6033 y = 24

46   Pass
assert(isequal(number_of_folds(3222,2307),24))

fold = 0 fold = 1 X = 1611 fold = 2 Y = 1.1535e+03 fold = 3 X = 805.5000 fold = 4 Y = 576.7500 fold = 5 X = 402.7500 fold = 6 Y = 288.3750 fold = 7 X = 201.3750 fold = 8 Y = 144.1875 fold = 9 X = 100.6875 fold = 10 Y = 72.0938 fold = 11 X = 50.3438 fold = 12 Y = 36.0469 fold = 13 X = 25.1719 fold = 14 Y = 18.0234 fold = 15 X = 12.5859 fold = 16 Y = 9.0117 fold = 17 X = 6.2930 fold = 18 Y = 4.5059 fold = 19 X = 3.1465 fold = 20 Y = 2.2529 fold = 21 X = 1.5732 fold = 22 Y = 1.1265 fold = 23 X = 0.7866 fold = 24 Y = 0.5632 y = 24

47   Pass
assert(isequal(number_of_folds(732,960),20))

fold = 0 fold = 1 Y = 480 fold = 2 X = 366 fold = 3 Y = 240 fold = 4 X = 183 fold = 5 Y = 120 fold = 6 X = 91.5000 fold = 7 Y = 60 fold = 8 X = 45.7500 fold = 9 Y = 30 fold = 10 X = 22.8750 fold = 11 Y = 15 fold = 12 X = 11.4375 fold = 13 Y = 7.5000 fold = 14 X = 5.7188 fold = 15 Y = 3.7500 fold = 16 X = 2.8594 fold = 17 Y = 1.8750 fold = 18 X = 1.4297 fold = 19 Y = 0.9375 fold = 20 X = 0.7148 y = 20

48   Pass
assert(isequal(number_of_folds(3547,115),19))

fold = 0 fold = 1 X = 1.7735e+03 fold = 2 X = 886.7500 fold = 3 X = 443.3750 fold = 4 X = 221.6875 fold = 5 X = 110.8438 fold = 6 Y = 57.5000 fold = 7 X = 55.4219 fold = 8 Y = 28.7500 fold = 9 X = 27.7109 fold = 10 Y = 14.3750 fold = 11 X = 13.8555 fold = 12 Y = 7.1875 fold = 13 X = 6.9277 fold = 14 Y = 3.5938 fold = 15 X = 3.4639 fold = 16 Y = 1.7969 fold = 17 X = 1.7319 fold = 18 Y = 0.8984 fold = 19 X = 0.8660 y = 19

49   Pass
assert(isequal(number_of_folds(1960,672),21))

fold = 0 fold = 1 X = 980 fold = 2 X = 490 fold = 3 Y = 336 fold = 4 X = 245 fold = 5 Y = 168 fold = 6 X = 122.5000 fold = 7 Y = 84 fold = 8 X = 61.2500 fold = 9 Y = 42 fold = 10 X = 30.6250 fold = 11 Y = 21 fold = 12 X = 15.3125 fold = 13 Y = 10.5000 fold = 14 X = 7.6562 fold = 15 Y = 5.2500 fold = 16 X = 3.8281 fold = 17 Y = 2.6250 fold = 18 X = 1.9141 fold = 19 Y = 1.3125 fold = 20 X = 0.9570 fold = 21 Y = 0.6562 y = 21

50   Pass
assert(isequal(number_of_folds(3915,2851),24))

fold = 0 fold = 1 X = 1.9575e+03 fold = 2 Y = 1.4255e+03 fold = 3 X = 978.7500 fold = 4 Y = 712.7500 fold = 5 X = 489.3750 fold = 6 Y = 356.3750 fold = 7 X = 244.6875 fold = 8 Y = 178.1875 fold = 9 X = 122.3438 fold = 10 Y = 89.0938 fold = 11 X = 61.1719 fold = 12 Y = 44.5469 fold = 13 X = 30.5859 fold = 14 Y = 22.2734 fold = 15 X = 15.2930 fold = 16 Y = 11.1367 fold = 17 X = 7.6465 fold = 18 Y = 5.5684 fold = 19 X = 3.8232 fold = 20 Y = 2.7842 fold = 21 X = 1.9116 fold = 22 Y = 1.3921 fold = 23 X = 0.9558 fold = 24 Y = 0.6960 y = 24

51   Pass
assert(isequal(number_of_folds(2002,1885),22))

fold = 0 fold = 1 X = 1001 fold = 2 Y = 942.5000 fold = 3 X = 500.5000 fold = 4 Y = 471.2500 fold = 5 X = 250.2500 fold = 6 Y = 235.6250 fold = 7 X = 125.1250 fold = 8 Y = 117.8125 fold = 9 X = 62.5625 fold = 10 Y = 58.9062 fold = 11 X = 31.2812 fold = 12 Y = 29.4531 fold = 13 X = 15.6406 fold = 14 Y = 14.7266 fold = 15 X = 7.8203 fold = 16 Y = 7.3633 fold = 17 X = 3.9102 fold = 18 Y = 3.6816 fold = 19 X = 1.9551 fold = 20 Y = 1.8408 fold = 21 X = 0.9775 fold = 22 Y = 0.9204 y = 22

52   Pass
assert(isequal(number_of_folds(239,2728),20))

fold = 0 fold = 1 Y = 1364 fold = 2 Y = 682 fold = 3 Y = 341 fold = 4 Y = 170.5000 fold = 5 X = 119.5000 fold = 6 Y = 85.2500 fold = 7 X = 59.7500 fold = 8 Y = 42.6250 fold = 9 X = 29.8750 fold = 10 Y = 21.3125 fold = 11 X = 14.9375 fold = 12 Y = 10.6562 fold = 13 X = 7.4688 fold = 14 Y = 5.3281 fold = 15 X = 3.7344 fold = 16 Y = 2.6641 fold = 17 X = 1.8672 fold = 18 Y = 1.3320 fold = 19 X = 0.9336 fold = 20 Y = 0.6660 y = 20

53   Pass
assert(isequal(number_of_folds(170,286),17))

fold = 0 fold = 1 Y = 143 fold = 2 X = 85 fold = 3 Y = 71.5000 fold = 4 X = 42.5000 fold = 5 Y = 35.7500 fold = 6 X = 21.2500 fold = 7 Y = 17.8750 fold = 8 X = 10.6250 fold = 9 Y = 8.9375 fold = 10 X = 5.3125 fold = 11 Y = 4.4688 fold = 12 X = 2.6562 fold = 13 Y = 2.2344 fold = 14 X = 1.3281 fold = 15 Y = 1.1172 fold = 16 X = 0.6641 fold = 17 Y = 0.5586 y = 17

54   Pass
assert(isequal(number_of_folds(2087,387),21))

fold = 0 fold = 1 X = 1.0435e+03 fold = 2 X = 521.7500 fold = 3 X = 260.8750 fold = 4 Y = 193.5000 fold = 5 X = 130.4375 fold = 6 Y = 96.7500 fold = 7 X = 65.2188 fold = 8 Y = 48.3750 fold = 9 X = 32.6094 fold = 10 Y = 24.1875 fold = 11 X = 16.3047 fold = 12 Y = 12.0938 fold = 13 X = 8.1523 fold = 14 Y = 6.0469 fold = 15 X = 4.0762 fold = 16 Y = 3.0234 fold = 17 X = 2.0381 fold = 18 Y = 1.5117 fold = 19 X = 1.0190 fold = 20 Y = 0.7559 fold = 21 X = 0.5095 y = 21

55   Pass
assert(isequal(number_of_folds(3273,3271),24))

fold = 0 fold = 1 X = 1.6365e+03 fold = 2 Y = 1.6355e+03 fold = 3 X = 818.2500 fold = 4 Y = 817.7500 fold = 5 X = 409.1250 fold = 6 Y = 408.8750 fold = 7 X = 204.5625 fold = 8 Y = 204.4375 fold = 9 X = 102.2812 fold = 10 Y = 102.2188 fold = 11 X = 51.1406 fold = 12 Y = 51.1094 fold = 13 X = 25.5703 fold = 14 Y = 25.5547 fold = 15 X = 12.7852 fold = 16 Y = 12.7773 fold = 17 X = 6.3926 fold = 18 Y = 6.3887 fold = 19 X = 3.1963 fold = 20 Y = 3.1943 fold = 21 X = 1.5981 fold = 22 Y = 1.5972 fold = 23 X = 0.7991 fold = 24 Y = 0.7986 y = 24

56   Pass
assert(isequal(number_of_folds(2890,600),22))

fold = 0 fold = 1 X = 1445 fold = 2 X = 722.5000 fold = 3 X = 361.2500 fold = 4 Y = 300 fold = 5 X = 180.6250 fold = 6 Y = 150 fold = 7 X = 90.3125 fold = 8 Y = 75 fold = 9 X = 45.1562 fold = 10 Y = 37.5000 fold = 11 X = 22.5781 fold = 12 Y = 18.7500 fold = 13 X = 11.2891 fold = 14 Y = 9.3750 fold = 15 X = 5.6445 fold = 16 Y = 4.6875 fold = 17 X = 2.8223 fold = 18 Y = 2.3438 fold = 19 X = 1.4111 fold = 20 Y = 1.1719 fold = 21 X = 0.7056 fold = 22 Y = 0.5859 y = 22

57   Pass
assert(isequal(number_of_folds(2639,2075),24))

fold = 0 fold = 1 X = 1.3195e+03 fold = 2 Y = 1.0375e+03 fold = 3 X = 659.7500 fold = 4 Y = 518.7500 fold = 5 X = 329.8750 fold = 6 Y = 259.3750 fold = 7 X = 164.9375 fold = 8 Y = 129.6875 fold = 9 X = 82.4688 fold = 10 Y = 64.8438 fold = 11 X = 41.2344 fold = 12 Y = 32.4219 fold = 13 X = 20.6172 fold = 14 Y = 16.2109 fold = 15 X = 10.3086 fold = 16 Y = 8.1055 fold = 17 X = 5.1543 fold = 18 Y = 4.0527 fold = 19 X = 2.5771 fold = 20 Y = 2.0264 fold = 21 X = 1.2886 fold = 22 Y = 1.0132 fold = 23 X = 0.6443 fold = 24 Y = 0.5066 y = 24

58   Pass
assert(isequal(number_of_folds(3892,2596),24))

fold = 0 fold = 1 X = 1946 fold = 2 Y = 1298 fold = 3 X = 973 fold = 4 Y = 649 fold = 5 X = 486.5000 fold = 6 Y = 324.5000 fold = 7 X = 243.2500 fold = 8 Y = 162.2500 fold = 9 X = 121.6250 fold = 10 Y = 81.1250 fold = 11 X = 60.8125 fold = 12 Y = 40.5625 fold = 13 X = 30.4062 fold = 14 Y = 20.2812 fold = 15 X = 15.2031 fold = 16 Y = 10.1406 fold = 17 X = 7.6016 fold = 18 Y = 5.0703 fold = 19 X = 3.8008 fold = 20 Y = 2.5352 fold = 21 X = 1.9004 fold = 22 Y = 1.2676 fold = 23 X = 0.9502 fold = 24 Y = 0.6338 y = 24

59   Pass
assert(isequal(number_of_folds(3202,1816),23))

fold = 0 fold = 1 X = 1601 fold = 2 Y = 908 fold = 3 X = 800.5000 fold = 4 Y = 454 fold = 5 X = 400.2500 fold = 6 Y = 227 fold = 7 X = 200.1250 fold = 8 Y = 113.5000 fold = 9 X = 100.0625 fold = 10 Y = 56.7500 fold = 11 X = 50.0312 fold = 12 Y = 28.3750 fold = 13 X = 25.0156 fold = 14 Y = 14.1875 fold = 15 X = 12.5078 fold = 16 Y = 7.0938 fold = 17 X = 6.2539 fold = 18 Y = 3.5469 fold = 19 X = 3.1270 fold = 20 Y = 1.7734 fold = 21 X = 1.5635 fold = 22 Y = 0.8867 fold = 23 X = 0.7817 y = 23

60   Pass
assert(isequal(number_of_folds(1730,3302),23))

fold = 0 fold = 1 Y = 1651 fold = 2 X = 865 fold = 3 Y = 825.5000 fold = 4 X = 432.5000 fold = 5 Y = 412.7500 fold = 6 X = 216.2500 fold = 7 Y = 206.3750 fold = 8 X = 108.1250 fold = 9 Y = 103.1875 fold = 10 X = 54.0625 fold = 11 Y = 51.5938 fold = 12 X = 27.0312 fold = 13 Y = 25.7969 fold = 14 X = 13.5156 fold = 15 Y = 12.8984 fold = 16 X = 6.7578 fold = 17 Y = 6.4492 fold = 18 X = 3.3789 fold = 19 Y = 3.2246 fold = 20 X = 1.6895 fold = 21 Y = 1.6123 fold = 22 X = 0.8447 fold = 23 Y = 0.8062 y = 23

61   Pass
assert(isequal(number_of_folds(334,533),19))

fold = 0 fold = 1 Y = 266.5000 fold = 2 X = 167 fold = 3 Y = 133.2500 fold = 4 X = 83.5000 fold = 5 Y = 66.6250 fold = 6 X = 41.7500 fold = 7 Y = 33.3125 fold = 8 X = 20.8750 fold = 9 Y = 16.6562 fold = 10 X = 10.4375 fold = 11 Y = 8.3281 fold = 12 X = 5.2188 fold = 13 Y = 4.1641 fold = 14 X = 2.6094 fold = 15 Y = 2.0820 fold = 16 X = 1.3047 fold = 17 Y = 1.0410 fold = 18 X = 0.6523 fold = 19 Y = 0.5205 y = 19

62   Pass
assert(isequal(number_of_folds(694,1564),21))

fold = 0 fold = 1 Y = 782 fold = 2 Y = 391 fold = 3 X = 347 fold = 4 Y = 195.5000 fold = 5 X = 173.5000 fold = 6 Y = 97.7500 fold = 7 X = 86.7500 fold = 8 Y = 48.8750 fold = 9 X = 43.3750 fold = 10 Y = 24.4375 fold = 11 X = 21.6875 fold = 12 Y = 12.2188 fold = 13 X = 10.8438 fold = 14 Y = 6.1094 fold = 15 X = 5.4219 fold = 16 Y = 3.0547 fold = 17 X = 2.7109 fold = 18 Y = 1.5273 fold = 19 X = 1.3555 fold = 20 Y = 0.7637 fold = 21 X = 0.6777 y = 21

63   Pass
assert(isequal(number_of_folds(3326,3214),24))

fold = 0 fold = 1 X = 1663 fold = 2 Y = 1607 fold = 3 X = 831.5000 fold = 4 Y = 803.5000 fold = 5 X = 415.7500 fold = 6 Y = 401.7500 fold = 7 X = 207.8750 fold = 8 Y = 200.8750 fold = 9 X = 103.9375 fold = 10 Y = 100.4375 fold = 11 X = 51.9688 fold = 12 Y = 50.2188 fold = 13 X = 25.9844 fold = 14 Y = 25.1094 fold = 15 X = 12.9922 fold = 16 Y = 12.5547 fold = 17 X = 6.4961 fold = 18 Y = 6.2773 fold = 19 X = 3.2480 fold = 20 Y = 3.1387 fold = 21 X = 1.6240 fold = 22 Y = 1.5693 fold = 23 X = 0.8120 fold = 24 Y = 0.7847 y = 24

64   Pass
assert(isequal(number_of_folds(242,1598),19))

fold = 0 fold = 1 Y = 799 fold = 2 Y = 399.5000 fold = 3 Y = 199.7500 fold = 4 X = 121 fold = 5 Y = 99.8750 fold = 6 X = 60.5000 fold = 7 Y = 49.9375 fold = 8 X = 30.2500 fold = 9 Y = 24.9688 fold = 10 X = 15.1250 fold = 11 Y = 12.4844 fold = 12 X = 7.5625 fold = 13 Y = 6.2422 fold = 14 X = 3.7812 fold = 15 Y = 3.1211 fold = 16 X = 1.8906 fold = 17 Y = 1.5605 fold = 18 X = 0.9453 fold = 19 Y = 0.7803 y = 19

65   Pass
assert(isequal(number_of_folds(2108,1668),23))

fold = 0 fold = 1 X = 1054 fold = 2 Y = 834 fold = 3 X = 527 fold = 4 Y = 417 fold = 5 X = 263.5000 fold = 6 Y = 208.5000 fold = 7 X = 131.7500 fold = 8 Y = 104.2500 fold = 9 X = 65.8750 fold = 10 Y = 52.1250 fold = 11 X = 32.9375 fold = 12 Y = 26.0625 fold = 13 X = 16.4688 fold = 14 Y = 13.0312 fold = 15 X = 8.2344 fold = 16 Y = 6.5156 fold = 17 X = 4.1172 fold = 18 Y = 3.2578 fold = 19 X = 2.0586 fold = 20 Y = 1.6289 fold = 21 X = 1.0293 fold = 22 Y = 0.8145 fold = 23 X = 0.5146 y = 23

66   Pass
assert(isequal(number_of_folds(2628,2512),24))

fold = 0 fold = 1 X = 1314 fold = 2 Y = 1256 fold = 3 X = 657 fold = 4 Y = 628 fold = 5 X = 328.5000 fold = 6 Y = 314 fold = 7 X = 164.2500 fold = 8 Y = 157 fold = 9 X = 82.1250 fold = 10 Y = 78.5000 fold = 11 X = 41.0625 fold = 12 Y = 39.2500 fold = 13 X = 20.5312 fold = 14 Y = 19.6250 fold = 15 X = 10.2656 fold = 16 Y = 9.8125 fold = 17 X = 5.1328 fold = 18 Y = 4.9062 fold = 19 X = 2.5664 fold = 20 Y = 2.4531 fold = 21 X = 1.2832 fold = 22 Y = 1.2266 fold = 23 X = 0.6416 fold = 24 Y = 0.6133 y = 24

67   Pass
assert(isequal(number_of_folds(1168,1727),22))

fold = 0 fold = 1 Y = 863.5000 fold = 2 X = 584 fold = 3 Y = 431.7500 fold = 4 X = 292 fold = 5 Y = 215.8750 fold = 6 X = 146 fold = 7 Y = 107.9375 fold = 8 X = 73 fold = 9 Y = 53.9688 fold = 10 X = 36.5000 fold = 11 Y = 26.9844 fold = 12 X = 18.2500 fold = 13 Y = 13.4922 fold = 14 X = 9.1250 fold = 15 Y = 6.7461 fold = 16 X = 4.5625 fold = 17 Y = 3.3730 fold = 18 X = 2.2812 fold = 19 Y = 1.6865 fold = 20 X = 1.1406 fold = 21 Y = 0.8433 fold = 22 X = 0.5703 y = 22

68   Pass
assert(isequal(number_of_folds(62,3937),18))

fold = 0 fold = 1 Y = 1.9685e+03 fold = 2 Y = 984.2500 fold = 3 Y = 492.1250 fold = 4 Y = 246.0625 fold = 5 Y = 123.0312 fold = 6 Y = 61.5156 fold = 7 X = 31 fold = 8 Y = 30.7578 fold = 9 X = 15.5000 fold = 10 Y = 15.3789 fold = 11 X = 7.7500 fold = 12 Y = 7.6895 fold = 13 X = 3.8750 fold = 14 Y = 3.8447 fold = 15 X = 1.9375 fold = 16 Y = 1.9224 fold = 17 X = 0.9688 fold = 18 Y = 0.9612 y = 18

69   Pass
assert(isequal(number_of_folds(669,425),19))

fold = 0 fold = 1 X = 334.5000 fold = 2 Y = 212.5000 fold = 3 X = 167.2500 fold = 4 Y = 106.2500 fold = 5 X = 83.6250 fold = 6 Y = 53.1250 fold = 7 X = 41.8125 fold = 8 Y = 26.5625 fold = 9 X = 20.9062 fold = 10 Y = 13.2812 fold = 11 X = 10.4531 fold = 12 Y = 6.6406 fold = 13 X = 5.2266 fold = 14 Y = 3.3203 fold = 15 X = 2.6133 fold = 16 Y = 1.6602 fold = 17 X = 1.3066 fold = 18 Y = 0.8301 fold = 19 X = 0.6533 y = 19

70   Pass
assert(isequal(number_of_folds(1490,793),21))

fold = 0 fold = 1 X = 745 fold = 2 Y = 396.5000 fold = 3 X = 372.5000 fold = 4 Y = 198.2500 fold = 5 X = 186.2500 fold = 6 Y = 99.1250 fold = 7 X = 93.1250 fold = 8 Y = 49.5625 fold = 9 X = 46.5625 fold = 10 Y = 24.7812 fold = 11 X = 23.2812 fold = 12 Y = 12.3906 fold = 13 X = 11.6406 fold = 14 Y = 6.1953 fold = 15 X = 5.8203 fold = 16 Y = 3.0977 fold = 17 X = 2.9102 fold = 18 Y = 1.5488 fold = 19 X = 1.4551 fold = 20 Y = 0.7744 fold = 21 X = 0.7275 y = 21

71   Pass
assert(isequal(number_of_folds(1959,1358),22))

fold = 0 fold = 1 X = 979.5000 fold = 2 Y = 679 fold = 3 X = 489.7500 fold = 4 Y = 339.5000 fold = 5 X = 244.8750 fold = 6 Y = 169.7500 fold = 7 X = 122.4375 fold = 8 Y = 84.8750 fold = 9 X = 61.2188 fold = 10 Y = 42.4375 fold = 11 X = 30.6094 fold = 12 Y = 21.2188 fold = 13 X = 15.3047 fold = 14 Y = 10.6094 fold = 15 X = 7.6523 fold = 16 Y = 5.3047 fold = 17 X = 3.8262 fold = 18 Y = 2.6523 fold = 19 X = 1.9131 fold = 20 Y = 1.3262 fold = 21 X = 0.9565 fold = 22 Y = 0.6631 y = 22

72   Pass
assert(isequal(number_of_folds(3807,3682),24))

fold = 0 fold = 1 X = 1.9035e+03 fold = 2 Y = 1841 fold = 3 X = 951.7500 fold = 4 Y = 920.5000 fold = 5 X = 475.8750 fold = 6 Y = 460.2500 fold = 7 X = 237.9375 fold = 8 Y = 230.1250 fold = 9 X = 118.9688 fold = 10 Y = 115.0625 fold = 11 X = 59.4844 fold = 12 Y = 57.5312 fold = 13 X = 29.7422 fold = 14 Y = 28.7656 fold = 15 X = 14.8711 fold = 16 Y = 14.3828 fold = 17 X = 7.4355 fold = 18 Y = 7.1914 fold = 19 X = 3.7178 fold = 20 Y = 3.5957 fold = 21 X = 1.8589 fold = 22 Y = 1.7979 fold = 23 X = 0.9294 fold = 24 Y = 0.8989 y = 24

73   Pass
assert(isequal(number_of_folds(211,2952),20))

fold = 0 fold = 1 Y = 1476 fold = 2 Y = 738 fold = 3 Y = 369 fold = 4 Y = 184.5000 fold = 5 X = 105.5000 fold = 6 Y = 92.2500 fold = 7 X = 52.7500 fold = 8 Y = 46.1250 fold = 9 X = 26.3750 fold = 10 Y = 23.0625 fold = 11 X = 13.1875 fold = 12 Y = 11.5312 fold = 13 X = 6.5938 fold = 14 Y = 5.7656 fold = 15 X = 3.2969 fold = 16 Y = 2.8828 fold = 17 X = 1.6484 fold = 18 Y = 1.4414 fold = 19 X = 0.8242 fold = 20 Y = 0.7207 y = 20

74   Pass
assert(isequal(number_of_folds(1077,1692),22))

fold = 0 fold = 1 Y = 846 fold = 2 X = 538.5000 fold = 3 Y = 423 fold = 4 X = 269.2500 fold = 5 Y = 211.5000 fold = 6 X = 134.6250 fold = 7 Y = 105.7500 fold = 8 X = 67.3125 fold = 9 Y = 52.8750 fold = 10 X = 33.6562 fold = 11 Y = 26.4375 fold = 12 X = 16.8281 fold = 13 Y = 13.2188 fold = 14 X = 8.4141 fold = 15 Y = 6.6094 fold = 16 X = 4.2070 fold = 17 Y = 3.3047 fold = 18 X = 2.1035 fold = 19 Y = 1.6523 fold = 20 X = 1.0518 fold = 21 Y = 0.8262 fold = 22 X = 0.5259 y = 22

75   Pass
assert(isequal(number_of_folds(2192,3771),24))

fold = 0 fold = 1 Y = 1.8855e+03 fold = 2 X = 1096 fold = 3 Y = 942.7500 fold = 4 X = 548 fold = 5 Y = 471.3750 fold = 6 X = 274 fold = 7 Y = 235.6875 fold = 8 X = 137 fold = 9 Y = 117.8438 fold = 10 X = 68.5000 fold = 11 Y = 58.9219 fold = 12 X = 34.2500 fold = 13 Y = 29.4609 fold = 14 X = 17.1250 fold = 15 Y = 14.7305 fold = 16 X = 8.5625 fold = 17 Y = 7.3652 fold = 18 X = 4.2812 fold = 19 Y = 3.6826 fold = 20 X = 2.1406 fold = 21 Y = 1.8413 fold = 22 X = 1.0703 fold = 23 Y = 0.9207 fold = 24 X = 0.5352 y = 24

76   Pass
assert(isequal(number_of_folds(1,1),2))

fold = 0 fold = 1 X = 0.5000 fold = 2 Y = 0.5000 y = 2

77   Pass
assert(isequal(number_of_folds(1671,3933),23))

fold = 0 fold = 1 Y = 1.9665e+03 fold = 2 Y = 983.2500 fold = 3 X = 835.5000 fold = 4 Y = 491.6250 fold = 5 X = 417.7500 fold = 6 Y = 245.8125 fold = 7 X = 208.8750 fold = 8 Y = 122.9062 fold = 9 X = 104.4375 fold = 10 Y = 61.4531 fold = 11 X = 52.2188 fold = 12 Y = 30.7266 fold = 13 X = 26.1094 fold = 14 Y = 15.3633 fold = 15 X = 13.0547 fold = 16 Y = 7.6816 fold = 17 X = 6.5273 fold = 18 Y = 3.8408 fold = 19 X = 3.2637 fold = 20 Y = 1.9204 fold = 21 X = 1.6318 fold = 22 Y = 0.9602 fold = 23 X = 0.8159 y = 23

78   Pass
assert(isequal(number_of_folds(1206,2805),23))

fold = 0 fold = 1 Y = 1.4025e+03 fold = 2 Y = 701.2500 fold = 3 X = 603 fold = 4 Y = 350.6250 fold = 5 X = 301.5000 fold = 6 Y = 175.3125 fold = 7 X = 150.7500 fold = 8 Y = 87.6562 fold = 9 X = 75.3750 fold = 10 Y = 43.8281 fold = 11 X = 37.6875 fold = 12 Y = 21.9141 fold = 13 X = 18.8438 fold = 14 Y = 10.9570 fold = 15 X = 9.4219 fold = 16 Y = 5.4785 fold = 17 X = 4.7109 fold = 18 Y = 2.7393 fold = 19 X = 2.3555 fold = 20 Y = 1.3696 fold = 21 X = 1.1777 fold = 22 Y = 0.6848 fold = 23 X = 0.5889 y = 23

79   Pass
assert(isequal(number_of_folds(2666,2157),24))

fold = 0 fold = 1 X = 1333 fold = 2 Y = 1.0785e+03 fold = 3 X = 666.5000 fold = 4 Y = 539.2500 fold = 5 X = 333.2500 fold = 6 Y = 269.6250 fold = 7 X = 166.6250 fold = 8 Y = 134.8125 fold = 9 X = 83.3125 fold = 10 Y = 67.4062 fold = 11 X = 41.6562 fold = 12 Y = 33.7031 fold = 13 X = 20.8281 fold = 14 Y = 16.8516 fold = 15 X = 10.4141 fold = 16 Y = 8.4258 fold = 17 X = 5.2070 fold = 18 Y = 4.2129 fold = 19 X = 2.6035 fold = 20 Y = 2.1064 fold = 21 X = 1.3018 fold = 22 Y = 1.0532 fold = 23 X = 0.6509 fold = 24 Y = 0.5266 y = 24

80   Pass
assert(isequal(number_of_folds(2793,2667),24))

fold = 0 fold = 1 X = 1.3965e+03 fold = 2 Y = 1.3335e+03 fold = 3 X = 698.2500 fold = 4 Y = 666.7500 fold = 5 X = 349.1250 fold = 6 Y = 333.3750 fold = 7 X = 174.5625 fold = 8 Y = 166.6875 fold = 9 X = 87.2812 fold = 10 Y = 83.3438 fold = 11 X = 43.6406 fold = 12 Y = 41.6719 fold = 13 X = 21.8203 fold = 14 Y = 20.8359 fold = 15 X = 10.9102 fold = 16 Y = 10.4180 fold = 17 X = 5.4551 fold = 18 Y = 5.2090 fold = 19 X = 2.7275 fold = 20 Y = 2.6045 fold = 21 X = 1.3638 fold = 22 Y = 1.3022 fold = 23 X = 0.6819 fold = 24 Y = 0.6511 y = 24

81   Pass
assert(isequal(number_of_folds(713,513),20))

fold = 0 fold = 1 X = 356.5000 fold = 2 Y = 256.5000 fold = 3 X = 178.2500 fold = 4 Y = 128.2500 fold = 5 X = 89.1250 fold = 6 Y = 64.1250 fold = 7 X = 44.5625 fold = 8 Y = 32.0625 fold = 9 X = 22.2812 fold = 10 Y = 16.0312 fold = 11 X = 11.1406 fold = 12 Y = 8.0156 fold = 13 X = 5.5703 fold = 14 Y = 4.0078 fold = 15 X = 2.7852 fold = 16 Y = 2.0039 fold = 17 X = 1.3926 fold = 18 Y = 1.0020 fold = 19 X = 0.6963 fold = 20 Y = 0.5010 y = 20

82   Pass
assert(isequal(number_of_folds(3997,685),22))

fold = 0 fold = 1 X = 1.9985e+03 fold = 2 X = 999.2500 fold = 3 X = 499.6250 fold = 4 Y = 342.5000 fold = 5 X = 249.8125 fold = 6 Y = 171.2500 fold = 7 X = 124.9062 fold = 8 Y = 85.6250 fold = 9 X = 62.4531 fold = 10 Y = 42.8125 fold = 11 X = 31.2266 fold = 12 Y = 21.4062 fold = 13 X = 15.6133 fold = 14 Y = 10.7031 fold = 15 X = 7.8066 fold = 16 Y = 5.3516 fold = 17 X = 3.9033 fold = 18 Y = 2.6758 fold = 19 X = 1.9517 fold = 20 Y = 1.3379 fold = 21 X = 0.9758 fold = 22 Y = 0.6689 y = 22

83   Pass
assert(isequal(number_of_folds(131,2245),20))

fold = 0 fold = 1 Y = 1.1225e+03 fold = 2 Y = 561.2500 fold = 3 Y = 280.6250 fold = 4 Y = 140.3125 fold = 5 Y = 70.1562 fold = 6 X = 65.5000 fold = 7 Y = 35.0781 fold = 8 X = 32.7500 fold = 9 Y = 17.5391 fold = 10 X = 16.3750 fold = 11 Y = 8.7695 fold = 12 X = 8.1875 fold = 13 Y = 4.3848 fold = 14 X = 4.0938 fold = 15 Y = 2.1924 fold = 16 X = 2.0469 fold = 17 Y = 1.0962 fold = 18 X = 1.0234 fold = 19 Y = 0.5481 fold = 20 X = 0.5117 y = 20

84   Pass
assert(isequal(number_of_folds(3528,2677),24))

fold = 0 fold = 1 X = 1764 fold = 2 Y = 1.3385e+03 fold = 3 X = 882 fold = 4 Y = 669.2500 fold = 5 X = 441 fold = 6 Y = 334.6250 fold = 7 X = 220.5000 fold = 8 Y = 167.3125 fold = 9 X = 110.2500 fold = 10 Y = 83.6562 fold = 11 X = 55.1250 fold = 12 Y = 41.8281 fold = 13 X = 27.5625 fold = 14 Y = 20.9141 fold = 15 X = 13.7812 fold = 16 Y = 10.4570 fold = 17 X = 6.8906 fold = 18 Y = 5.2285 fold = 19 X = 3.4453 fold = 20 Y = 2.6143 fold = 21 X = 1.7227 fold = 22 Y = 1.3071 fold = 23 X = 0.8613 fold = 24 Y = 0.6536 y = 24

85   Pass
assert(isequal(number_of_folds(762,1476),21))

fold = 0 fold = 1 Y = 738 fold = 2 X = 381 fold = 3 Y = 369 fold = 4 X = 190.5000 fold = 5 Y = 184.5000 fold = 6 X = 95.2500 fold = 7 Y = 92.2500 fold = 8 X = 47.6250 fold = 9 Y = 46.1250 fold = 10 X = 23.8125 fold = 11 Y = 23.0625 fold = 12 X = 11.9062 fold = 13 Y = 11.5312 fold = 14 X = 5.9531 fold = 15 Y = 5.7656 fold = 16 X = 2.9766 fold = 17 Y = 2.8828 fold = 18 X = 1.4883 fold = 19 Y = 1.4414 fold = 20 X = 0.7441 fold = 21 Y = 0.7207 y = 21

86   Pass
assert(isequal(number_of_folds(1843,3927),23))

fold = 0 fold = 1 Y = 1.9635e+03 fold = 2 Y = 981.7500 fold = 3 X = 921.5000 fold = 4 Y = 490.8750 fold = 5 X = 460.7500 fold = 6 Y = 245.4375 fold = 7 X = 230.3750 fold = 8 Y = 122.7188 fold = 9 X = 115.1875 fold = 10 Y = 61.3594 fold = 11 X = 57.5938 fold = 12 Y = 30.6797 fold = 13 X = 28.7969 fold = 14 Y = 15.3398 fold = 15 X = 14.3984 fold = 16 Y = 7.6699 fold = 17 X = 7.1992 fold = 18 Y = 3.8350 fold = 19 X = 3.5996 fold = 20 Y = 1.9175 fold = 21 X = 1.7998 fold = 22 Y = 0.9587 fold = 23 X = 0.8999 y = 23

87   Pass
assert(isequal(number_of_folds(626,3423),22))

fold = 0 fold = 1 Y = 1.7115e+03 fold = 2 Y = 855.7500 fold = 3 Y = 427.8750 fold = 4 X = 313 fold = 5 Y = 213.9375 fold = 6 X = 156.5000 fold = 7 Y = 106.9688 fold = 8 X = 78.2500 fold = 9 Y = 53.4844 fold = 10 X = 39.1250 fold = 11 Y = 26.7422 fold = 12 X = 19.5625 fold = 13 Y = 13.3711 fold = 14 X = 9.7812 fold = 15 Y = 6.6855 fold = 16 X = 4.8906 fold = 17 Y = 3.3428 fold = 18 X = 2.4453 fold = 19 Y = 1.6714 fold = 20 X = 1.2227 fold = 21 Y = 0.8357 fold = 22 X = 0.6113 y = 22

88   Pass
assert(isequal(number_of_folds(2580,1506),23))

fold = 0 fold = 1 X = 1290 fold = 2 Y = 753 fold = 3 X = 645 fold = 4 Y = 376.5000 fold = 5 X = 322.5000 fold = 6 Y = 188.2500 fold = 7 X = 161.2500 fold = 8 Y = 94.1250 fold = 9 X = 80.6250 fold = 10 Y = 47.0625 fold = 11 X = 40.3125 fold = 12 Y = 23.5312 fold = 13 X = 20.1562 fold = 14 Y = 11.7656 fold = 15 X = 10.0781 fold = 16 Y = 5.8828 fold = 17 X = 5.0391 fold = 18 Y = 2.9414 fold = 19 X = 2.5195 fold = 20 Y = 1.4707 fold = 21 X = 1.2598 fold = 22 Y = 0.7354 fold = 23 X = 0.6299 y = 23

89   Pass
assert(isequal(number_of_folds(764,1714),21))

fold = 0 fold = 1 Y = 857 fold = 2 Y = 428.5000 fold = 3 X = 382 fold = 4 Y = 214.2500 fold = 5 X = 191 fold = 6 Y = 107.1250 fold = 7 X = 95.5000 fold = 8 Y = 53.5625 fold = 9 X = 47.7500 fold = 10 Y = 26.7812 fold = 11 X = 23.8750 fold = 12 Y = 13.3906 fold = 13 X = 11.9375 fold = 14 Y = 6.6953 fold = 15 X = 5.9688 fold = 16 Y = 3.3477 fold = 17 X = 2.9844 fold = 18 Y = 1.6738 fold = 19 X = 1.4922 fold = 20 Y = 0.8369 fold = 21 X = 0.7461 y = 21

90   Pass
assert(isequal(number_of_folds(1929,483),20))

fold = 0 fold = 1 X = 964.5000 fold = 2 X = 482.2500 fold = 3 Y = 241.5000 fold = 4 X = 241.1250 fold = 5 Y = 120.7500 fold = 6 X = 120.5625 fold = 7 Y = 60.3750 fold = 8 X = 60.2812 fold = 9 Y = 30.1875 fold = 10 X = 30.1406 fold = 11 Y = 15.0938 fold = 12 X = 15.0703 fold = 13 Y = 7.5469 fold = 14 X = 7.5352 fold = 15 Y = 3.7734 fold = 16 X = 3.7676 fold = 17 Y = 1.8867 fold = 18 X = 1.8838 fold = 19 Y = 0.9434 fold = 20 X = 0.9419 y = 20

91   Pass
assert(isequal(number_of_folds(2359,905),22))

fold = 0 fold = 1 X = 1.1795e+03 fold = 2 X = 589.7500 fold = 3 Y = 452.5000 fold = 4 X = 294.8750 fold = 5 Y = 226.2500 fold = 6 X = 147.4375 fold = 7 Y = 113.1250 fold = 8 X = 73.7188 fold = 9 Y = 56.5625 fold = 10 X = 36.8594 fold = 11 Y = 28.2812 fold = 12 X = 18.4297 fold = 13 Y = 14.1406 fold = 14 X = 9.2148 fold = 15 Y = 7.0703 fold = 16 X = 4.6074 fold = 17 Y = 3.5352 fold = 18 X = 2.3037 fold = 19 Y = 1.7676 fold = 20 X = 1.1519 fold = 21 Y = 0.8838 fold = 22 X = 0.5759 y = 22

92   Pass
assert(isequal(number_of_folds(1539,2332),23))

fold = 0 fold = 1 Y = 1166 fold = 2 X = 769.5000 fold = 3 Y = 583 fold = 4 X = 384.7500 fold = 5 Y = 291.5000 fold = 6 X = 192.3750 fold = 7 Y = 145.7500 fold = 8 X = 96.1875 fold = 9 Y = 72.8750 fold = 10 X = 48.0938 fold = 11 Y = 36.4375 fold = 12 X = 24.0469 fold = 13 Y = 18.2188 fold = 14 X = 12.0234 fold = 15 Y = 9.1094 fold = 16 X = 6.0117 fold = 17 Y = 4.5547 fold = 18 X = 3.0059 fold = 19 Y = 2.2773 fold = 20 X = 1.5029 fold = 21 Y = 1.1387 fold = 22 X = 0.7515 fold = 23 Y = 0.5693 y = 23

93   Pass
assert(isequal(number_of_folds(1008,1162),21))

fold = 0 fold = 1 Y = 581 fold = 2 X = 504 fold = 3 Y = 290.5000 fold = 4 X = 252 fold = 5 Y = 145.2500 fold = 6 X = 126 fold = 7 Y = 72.6250 fold = 8 X = 63 fold = 9 Y = 36.3125 fold = 10 X = 31.5000 fold = 11 Y = 18.1562 fold = 12 X = 15.7500 fold = 13 Y = 9.0781 fold = 14 X = 7.8750 fold = 15 Y = 4.5391 fold = 16 X = 3.9375 fold = 17 Y = 2.2695 fold = 18 X = 1.9688 fold = 19 Y = 1.1348 fold = 20 X = 0.9844 fold = 21 Y = 0.5674 y = 21

94   Pass
assert(isequal(number_of_folds(2469,1062),23))

fold = 0 fold = 1 X = 1.2345e+03 fold = 2 X = 617.2500 fold = 3 Y = 531 fold = 4 X = 308.6250 fold = 5 Y = 265.5000 fold = 6 X = 154.3125 fold = 7 Y = 132.7500 fold = 8 X = 77.1562 fold = 9 Y = 66.3750 fold = 10 X = 38.5781 fold = 11 Y = 33.1875 fold = 12 X = 19.2891 fold = 13 Y = 16.5938 fold = 14 X = 9.6445 fold = 15 Y = 8.2969 fold = 16 X = 4.8223 fold = 17 Y = 4.1484 fold = 18 X = 2.4111 fold = 19 Y = 2.0742 fold = 20 X = 1.2056 fold = 21 Y = 1.0371 fold = 22 X = 0.6028 fold = 23 Y = 0.5186 y = 23

95   Pass
assert(isequal(number_of_folds(15,15),8))

fold = 0 fold = 1 X = 7.5000 fold = 2 Y = 7.5000 fold = 3 X = 3.7500 fold = 4 Y = 3.7500 fold = 5 X = 1.8750 fold = 6 Y = 1.8750 fold = 7 X = 0.9375 fold = 8 Y = 0.9375 y = 8

96   Pass
assert(isequal(number_of_folds(3298,3931),24))

fold = 0 fold = 1 Y = 1.9655e+03 fold = 2 X = 1649 fold = 3 Y = 982.7500 fold = 4 X = 824.5000 fold = 5 Y = 491.3750 fold = 6 X = 412.2500 fold = 7 Y = 245.6875 fold = 8 X = 206.1250 fold = 9 Y = 122.8438 fold = 10 X = 103.0625 fold = 11 Y = 61.4219 fold = 12 X = 51.5312 fold = 13 Y = 30.7109 fold = 14 X = 25.7656 fold = 15 Y = 15.3555 fold = 16 X = 12.8828 fold = 17 Y = 7.6777 fold = 18 X = 6.4414 fold = 19 Y = 3.8389 fold = 20 X = 3.2207 fold = 21 Y = 1.9194 fold = 22 X = 1.6104 fold = 23 Y = 0.9597 fold = 24 X = 0.8052 y = 24

97   Pass
assert(isequal(number_of_folds(2921,1376),23))

fold = 0 fold = 1 X = 1.4605e+03 fold = 2 X = 730.2500 fold = 3 Y = 688 fold = 4 X = 365.1250 fold = 5 Y = 344 fold = 6 X = 182.5625 fold = 7 Y = 172 fold = 8 X = 91.2812 fold = 9 Y = 86 fold = 10 X = 45.6406 fold = 11 Y = 43 fold = 12 X = 22.8203 fold = 13 Y = 21.5000 fold = 14 X = 11.4102 fold = 15 Y = 10.7500 fold = 16 X = 5.7051 fold = 17 Y = 5.3750 fold = 18 X = 2.8525 fold = 19 Y = 2.6875 fold = 20 X = 1.4263 fold = 21 Y = 1.3438 fold = 22 X = 0.7131 fold = 23 Y = 0.6719 y = 23

98   Pass
assert(isequal(number_of_folds(2337,432),21))

fold = 0 fold = 1 X = 1.1685e+03 fold = 2 X = 584.2500 fold = 3 X = 292.1250 fold = 4 Y = 216 fold = 5 X = 146.0625 fold = 6 Y = 108 fold = 7 X = 73.0312 fold = 8 Y = 54 fold = 9 X = 36.5156 fold = 10 Y = 27 fold = 11 X = 18.2578 fold = 12 Y = 13.5000 fold = 13 X = 9.1289 fold = 14 Y = 6.7500 fold = 15 X = 4.5645 fold = 16 Y = 3.3750 fold = 17 X = 2.2822 fold = 18 Y = 1.6875 fold = 19 X = 1.1411 fold = 20 Y = 0.8438 fold = 21 X = 0.5706 y = 21

99   Pass
assert(isequal(number_of_folds(3626,3519),24))

fold = 0 fold = 1 X = 1813 fold = 2 Y = 1.7595e+03 fold = 3 X = 906.5000 fold = 4 Y = 879.7500 fold = 5 X = 453.2500 fold = 6 Y = 439.8750 fold = 7 X = 226.6250 fold = 8 Y = 219.9375 fold = 9 X = 113.3125 fold = 10 Y = 109.9688 fold = 11 X = 56.6562 fold = 12 Y = 54.9844 fold = 13 X = 28.3281 fold = 14 Y = 27.4922 fold = 15 X = 14.1641 fold = 16 Y = 13.7461 fold = 17 X = 7.0820 fold = 18 Y = 6.8730 fold = 19 X = 3.5410 fold = 20 Y = 3.4365 fold = 21 X = 1.7705 fold = 22 Y = 1.7183 fold = 23 X = 0.8853 fold = 24 Y = 0.8591 y = 24

100   Pass
assert(isequal(number_of_folds(3272,1043),23))

fold = 0 fold = 1 X = 1636 fold = 2 X = 818 fold = 3 Y = 521.5000 fold = 4 X = 409 fold = 5 Y = 260.7500 fold = 6 X = 204.5000 fold = 7 Y = 130.3750 fold = 8 X = 102.2500 fold = 9 Y = 65.1875 fold = 10 X = 51.1250 fold = 11 Y = 32.5938 fold = 12 X = 25.5625 fold = 13 Y = 16.2969 fold = 14 X = 12.7812 fold = 15 Y = 8.1484 fold = 16 X = 6.3906 fold = 17 Y = 4.0742 fold = 18 X = 3.1953 fold = 19 Y = 2.0371 fold = 20 X = 1.5977 fold = 21 Y = 1.0186 fold = 22 X = 0.7988 fold = 23 Y = 0.5093 y = 23

101   Pass
assert(isequal(number_of_folds(3,2),4))

fold = 0 fold = 1 X = 1.5000 fold = 2 Y = 1 fold = 3 X = 0.7500 fold = 4 Y = 0.5000 y = 4

102   Pass
assert(isequal(number_of_folds(2378,91),19))

fold = 0 fold = 1 X = 1189 fold = 2 X = 594.5000 fold = 3 X = 297.2500 fold = 4 X = 148.6250 fold = 5 X = 74.3125 fold = 6 Y = 45.5000 fold = 7 X = 37.1562 fold = 8 Y = 22.7500 fold = 9 X = 18.5781 fold = 10 Y = 11.3750 fold = 11 X = 9.2891 fold = 12 Y = 5.6875 fold = 13 X = 4.6445 fold = 14 Y = 2.8438 fold = 15 X = 2.3223 fold = 16 Y = 1.4219 fold = 17 X = 1.1611 fold = 18 Y = 0.7109 fold = 19 X = 0.5806 y = 19

103   Pass
assert(isequal(number_of_folds(1702,1251),22))

fold = 0 fold = 1 X = 851 fold = 2 Y = 625.5000 fold = 3 X = 425.5000 fold = 4 Y = 312.7500 fold = 5 X = 212.7500 fold = 6 Y = 156.3750 fold = 7 X = 106.3750 fold = 8 Y = 78.1875 fold = 9 X = 53.1875 fold = 10 Y = 39.0938 fold = 11 X = 26.5938 fold = 12 Y = 19.5469 fold = 13 X = 13.2969 fold = 14 Y = 9.7734 fold = 15 X = 6.6484 fold = 16 Y = 4.8867 fold = 17 X = 3.3242 fold = 18 Y = 2.4434 fold = 19 X = 1.6621 fold = 20 Y = 1.2217 fold = 21 X = 0.8311 fold = 22 Y = 0.6108 y = 22

104   Pass
assert(isequal(number_of_folds(646,716),20))

fold = 0 fold = 1 Y = 358 fold = 2 X = 323 fold = 3 Y = 179 fold = 4 X = 161.5000 fold = 5 Y = 89.5000 fold = 6 X = 80.7500 fold = 7 Y = 44.7500 fold = 8 X = 40.3750 fold = 9 Y = 22.3750 fold = 10 X = 20.1875 fold = 11 Y = 11.1875 fold = 12 X = 10.0938 fold = 13 Y = 5.5938 fold = 14 X = 5.0469 fold = 15 Y = 2.7969 fold = 16 X = 2.5234 fold = 17 Y = 1.3984 fold = 18 X = 1.2617 fold = 19 Y = 0.6992 fold = 20 X = 0.6309 y = 20

105   Pass
assert(isequal(number_of_folds(1692,377),20))

fold = 0 fold = 1 X = 846 fold = 2 X = 423 fold = 3 X = 211.5000 fold = 4 Y = 188.5000 fold = 5 X = 105.7500 fold = 6 Y = 94.2500 fold = 7 X = 52.8750 fold = 8 Y = 47.1250 fold = 9 X = 26.4375 fold = 10 Y = 23.5625 fold = 11 X = 13.2188 fold = 12 Y = 11.7812 fold = 13 X = 6.6094 fold = 14 Y = 5.8906 fold = 15 X = 3.3047 fold = 16 Y = 2.9453 fold = 17 X = 1.6523 fold = 18 Y = 1.4727 fold = 19 X = 0.8262 fold = 20 Y = 0.7363 y = 20

106   Pass
assert(isequal(number_of_folds(16,15),9))

fold = 0 fold = 1 X = 8 fold = 2 Y = 7.5000 fold = 3 X = 4 fold = 4 Y = 3.7500 fold = 5 X = 2 fold = 6 Y = 1.8750 fold = 7 X = 1 fold = 8 Y = 0.9375 fold = 9 X = 0.5000 y = 9

### Community Treasure Hunt

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

Start Hunting!