each node should have its own range of n

CI agrees.
If you think you can write it shorter then feel free to do so :-P.