Graft consecutive numbers into a branch

I am very inexperienced with grasshopper but I am sure this is an easy question.  I need to graft a list of consecutive numbers into their own branch so the result will be several branches with all numbers within the branch being the same.  Unfortunately there is not a consistent pattern so I cannot use cullpattern. Can anyone help me out?

Thank you for your time,

Sam