What I wanna do is write down every possibility of something, like how much combination there can be on a lock. What I usually do is (let’s say there is 3 ‘‘case’’ and 3 possible number)
111
112
113
121
122
123
You change the last number and when all 3 have been wrote you change the number before
etc… it equals 3^3 possibity I think but that’s not very important for what I want to do.
To make it short what I wanna do is this but the number are related between themselves and a line can last anywhere from 4 case to much more, there can also be loops. So I have to start from the first number. How do I proceed?
Sorry if it seems obvious to you I have been doing dumb labor work all summer
Maybe Jdinatale can chime in