Essentially, you need to find the number of natural number pairs $(a,b)$ such that
$$a+3b = 100$$
More importantly, you need to take into account the order in which $1$'s and $3$'s appear. For instance, $a=1, b=33$ is a solution to the above. And we can choose $1$ one step and $33$ three steps in $34$ ways. If the solution is $(100-3b,b)$, the number of ways we can have $100-3b$ one steps and $b$ three steps is $$\dfrac{(100-2b)!}{b! (100-3b)!}$$
Hence, the total number of ways is
$$\sum_{b=0}^{33} \dfrac{(100-2b)!}{b! (100-3b)!}$$
In general,
$$g(n) = \sum_{n=0}^{\lfloor n/3 \rfloor} \dfrac{(n-2b)!}{b! (n-3b)!}$$
From this, we get $g(100) = 24382819596721629$.
EDIT
This also agrees with OEIS A000930, Narayana’s cows sequence.