I’ve been wondering if there is a good way to find patterns in Mathematica. I’m aware of the existence of the possibility to use string patterns and related functions to work with patterns, but those don’t seem to be the best choice for finding patterns in number strings.
I would love to find the ‘underlying’ pattern in a number string without knowing a priori what the pattern is myself.
Let me make an example:
Given the following string of numbers: 01100110011020110, I would like to use a implemented function to get, that the ‘underlying’ pattern is 0110, because it always repeats itself and the recurrence is only affected by the occuring 2.
Does anyone of you of a function, would allow something like this or could be used for this?