Code: Select all

```
D(i,j)
40 50 60
1 40 50
2 60
3 40
9 50
17 50
19 60
32 40 50
55 60
```

for example Pattern "40,50" Repeated twice. pattern 50 repeated 2 times. And Pattern "60" repeated three times. Here the maximum number of repetitive patterns is 3. (I mean, the pattern " 60 " has been repeated three times).

How can I find the maximum number of repetitions for patterns, For all tables like this?

Best & thanks