Loop in Grasshopper

Hello All,

i want to create a loop in grasshopper such that;

i have a segment AB. Divide AB at parameter 0.618 then divide the 2 smaller segments at the same parameter i.e. 0.618 and continue dividing the shattered segments. end in the end i will end up with heaps of points on original segment AB.

I also want control over number of time the loops runs.

can any help me?

Regards,

AB