How to orchestrate individual elements of dynamic array based on the size?

In reply to desperadorocks:

I didn’t look very hard, but I don’t see any pattern in the values you want that might make your constraints more efficient.