One of the following is correct answer, which? 1) 3 2) 4 3) 5 4) 6

Find the next term in the series- 0, 1, 2, 1, 1, 2, 3, 4, 5, 6, 24, ?

Some tips: 1. It is related to one of 3 terms- 3,4 or 5 2. It is 3 digit number 3. 0=1, 1=1, 2=2