Formula driven point repetition

I am using the point repetition utility to create points along curves for part definition. I can use a formula to drive the pitch of the points (the distance between them), however it doesn't seem feasible to use a formula to drive the number of points along the curve. Does anyone know if this can be done another way? I realize there are other ways to determine the number of points, however my question is specifically about using a formula to drive the number of points. I can change the step and I can change the range, but there is no option for driving the number of points with a formula. Thanks in advance.