Numeric pattern model?

I am interested in finding a data model that would recognize numeric patterns. The idea would be that it would be seeded with a series of numbers A from which it would look for a list of patterns B.

Then it would try to recognize learned patterns B from a new dataset C.

Can anyone suggest a model to start with?

Are you trying to label the number patterns or match similar patterns?

Im trying to match similar patterns