I'm looking for a simple expression with which I can define a repeating series.
$$f(0)=0$$ $$f(1)=1$$ $$f(2)=2$$ $$f(3)=3$$ $$f(4)=f(n-4)$$
So, the series goes $0, 1, 2, 3, 0, 1, 2, 3...$ and on and on. I feel like this should have something to do with exponents because in Discrete Math we figured out how to define a series that goes $1, -1, 1, -1...$ but I'm not sure how to even begin defining this.
I don't want anything recursive if I can possibly avoid it. Not sure if that will be a problem.
Thanks a bunch!
EDIT: Spoke to a professor about how to solve this and he says there is a way to do it involving only +/-/*/^/÷, but it involves complex numbers.
Just to add an alternative to the other answers: you can use generating functions to try to find an explicit solution to the recurrence relation. If $F(x)$ is the generating function for the sequence $f(n)$,
$$F(x)=\sum_{n\ge0}f(n)x^n=f(0)+f(1)x+f(2)x^2+f(3)x^3+\cdots$$
then from the recurrence given by
$$\begin{cases}f(0)=0\\f(1)=1\\f(2)=2\\f(3)=3\\f(n)=f(n-4)&\text{for }n\ge4\end{cases}$$
we have
$$\begin{align*} f(n-4)&=f(n)\\ \sum_{n\ge4}f(n-4)x^n&=\sum_{n\ge4}f(n)x^n\\ x^4\sum_{n\ge4}f(n-4)x^{n-4}&=\sum_{n\ge0}f(n)x^n-f(0)-f(1)x-f(2)x^2-f(3)x^3\\ x^4\sum_{n\ge0}f(n)x^n&=F(x)-x-2x^2-3x^3\\ x^4F(x)&=F(x)-x-2x^2-3x^3\\ (x^4-1)F(x)&=-x-2x^2-3x^3\\ F(x)&=\frac{x+2x^2+3x^3}{1-x^4} \end{align*}$$
Expanding into partial fractions, you have
$$F(x)=\frac32\frac1{1-x}-\frac12\frac1{1+x}-\frac1{1+x^2}-\frac x{1+x^2}$$
and expressing each term as a power series we arrive at
$$\begin{align*} F(x)&=\frac32\sum_{n\ge0}x^n-\frac12\sum_{n\ge0}(-x)^n-\sum_{n\ge0}(-x^2)^n-x\sum_{n\ge0}(-x^2)^n\\ F(x)&=\sum_{n\ge0}\left(\frac32-\frac12(-1)^n\right)x^n-\sum_{n\ge0}(-1)^nx^{2n}-\sum_{n\ge0}(-1)^nx^{2n+1} \end{align*}$$
each of which are valid for $|x|<1$.
Now,
$$\sum_{n\ge0}\left(\frac32-\frac12(-1)^n\right)x^n=1+2x+x^2+2x^3+\cdots$$ $$\sum_{n\ge0}(-1)^nx^{2n}=1-x^2+x^4-x^6+\cdots$$ $$\sum_{n\ge0}(-1)^nx^{2n+1}=x-x^3+x^5-x^7+\cdots$$
so it follows that
$$F(x)=\color{lightgray}{0+}\,x+2x^2+3x^3+\color{lightgray}{0x^4+}\,x^5+2x^6+3x^7+\cdots$$
Replace $n=k$ in the latter two series, then split up the first into the even and odd cases, letting $n=2k$ and $n=2k+1$, respectively, so that the generating function can be expressed as
$$F(x)=\begin{cases} \displaystyle\sum_{k\ge0}(1-(-1)^k)x^{2k}&n=2k\text{ is even}\\[1ex] \displaystyle\sum_{k\ge0}(2-(-1)^k)x^{2k+1}&n=2k+1\text{ is odd} \end{cases}$$
From this it follows that a closed form for $f(n)$ can be obtained by splitting into even/odd cases:
$$f(n)_{n\ge0}=\begin{cases}1-(-1)^{n/2}&n\text{ is even}\\2-(-1)^{(n-1)/2}&n\text{ is odd}\end{cases}$$
If I'm not mistaken, there should be a way to get an "even more explicit" form in terms of complex exponentials, but perhaps this result will suffice for your needs.