I'm not sure how to word the title properly, but the problem goes something like this:
I have 5 nodes, and node 0 is the "master".
User inputs a number, e.g. 100 to the master.
master "splits" the number into 5 parts, 0 - 20, 21 - 40, 41 - 60, 61 - 80, 81 - 100.
the nodes will then take the number, and do some calculation, and return the result back to the master.
The problem is the segmentation part. What if the number is something weird e.g. 101?