I have an array
anumbers:= {1,1,1,7,1}
I want to know if: (starting from the left)
1) at least the first three numbers are the same sample -> {1,1,1,7,1}
2) at least the first four numbers are the same sample -> {1,1,1,1,9}
3) at least 5 numbers are the same sample -> {1,1,1,1,1}
and it must return me a value logic wich is true
but it is possible I can have all logic values when the numbers are {1,1,1,1,1}