I need a list of integers to check if a variable has one of the values of the list.
If[ MemberQ[List,x], Green, Red]
The list contains integers and is characterized by two parameters, lets call them k and j, which should be variable.
j=1 then the list would look like this:
j=3 then the List would look like this:
listmax should be kept variable.
Generally speaking, the List contains the first k integers, then doesnt contain the next j integers, then contains the next k integers, then doesnt contain the next j integers and so on and so on.
In the end I need the List to decide whether
x has one of the values of the List, so if there is a way to skip the part where one has to define the list and can directly check if x has one of those values, that would also do the job.