Let \( \mathbb{N} \) be the set of natural numbers and \( f : \mathbb{N} \to \mathbb{N} \) be defined by

Let \( f^n(x) \) denote the \( n \)-fold composition of \( f(x) \). What is the smallest integer \( n \) such that \( f^n(13) = 1 \)?
| $X_i$ | 5 | 6 | 8 | 10 |
| $F_i$ | 8 | 10 | 10 | 12 |
| X | 0 | 1 | 2 | 3 | 4 | 5 |
| P(X) | 0 | K | 2K | 3K | 4K | 5K |