Ad
  • Custom User Avatar

    Number of elements = 20000

    [[1, [2, 8], 532, 532], [2, [9, 15], 917, 1449], [3, [16, 22], 966, 2415], [4, [23, 29], 960, 3375], [5, [30, 36], 1296, 4671], [6, [37, 43], 1386, 6057], [7, [44, 50], 1592, 7649], [8, [51, 57], 1903, 9552], [9, [58, 64], 1945, 11497], [10, [65, 71], 1887, 13384], [11, [72, 78], 1884, 15268], [12, [79, 85], 1895, 17163], [13, [86, 92], 1603, 18766], [14, [93, 99], 1194, 19960]]

    should equal

    [[1, [2, 8], 532, 532], [2, [9, 15], 917, 1449], [3, [16, 22], 966, 2415], [4, [23, 29], 960, 3375], [5, [30, 36], 1296, 4671], [6, [37, 43], 1386, 6057], [7, [44, 50], 1592, 7649], [8, [51, 57], 1903, 9552], [9, [58, 64], 1945, 11497], [10, [65, 71], 1887, 13384], [11, [72, 78], 1884, 15268], [12, [79, 85], 1895, 17163], [13, [86, 92], 1603, 18766], [14, [93, 100], 1234, 20000]]

    I don't know if anyone else had this problem, but the only errors I get are similar to this result, somehow the code computes the last upper value to be 99 instead of 100. But I swear if I run the same code on spyder with A = 7 and k = 14, for this example, it computes 100 correctly.