There is no unique function that will generate that sequence of values. One possible rule can be found by noting that each term is found by adding one more than was added to get the previous term. But other answers are possible (and will all generate a different number that comes after 11 ....)