a = [0, 1, 3, 4, 6, 7, 8, 10, 14]
chunk_size = 5
buckets = defaultdict(list)
for n in a:
    buckets[n / chunk_size].append(n)
for bucket, values in sorted(buckets.items()):
    pass
split arrays into uneven groups