Balanced Distribution Of Items I shall call this the "Curtain Hook" problem.

Please excuse my lack of formal maths notation as it has been over 20 years since I have needed it.

A standard pencil pleat curtain has L number of loops on the back (evenly spaced along the width) with which to hang the curtain.  The curtain pole will come with H number of hoops to hang the curtain upon.
The problem is how to distribute - with as uniform as possible gaps between - the hooks across the loops.

For example, if I have 15 hooks (per curtain) and each curtain has 38 loops where should I hang the 15 hooks?

By hand I came up with:
HoHooHooHooHoHooHooHoHooHooHoHooHooHoH
Which is not evenly spaced. (H being a hook, o being an unused loop)

Is there an evenly balanced solution for this combination?
Is there an algorithm that can be used to describe where to place the hooks evenly?

Ps. Not homework, just someone with a curious analytical mind who had to put up some curtains recently.  I was thinking of creating a web page to help others if a general solution/algorithm could be found.

Thanks

Craig
You haven't quite defined your problem, so let me answer a more concrete one: when can there be an evenly spaced solution. I assume that by "evenly spaced" you mean that all the spaces are the same, and that there must be hooks and the first and last positions. If the space is $s$, then we must have
$$ L = 1 + (s+1)(H-1), $$
since the string is of the form $H(o^sH)^{H-1}$. This is possible if and only if $H-1$ divides $L-1$, in which case the spacing is
$$
 s = \frac{L-1}{H-1} - 1.
$$
In your case, 14 doesn't divide 37, so an even spacing is impossible.