I am curious how what function will map in the following way:
$$ 0 \to 1$$ $$ 1 \to 4$$ $$ 2 \to 7$$ $$ 3 \to 10$$ $$ 4 \to 13$$
etc.
I have been playing around trying to find a function for a bit now. I know that I can use: $$f: \mathbb{N} \to \mathbb{N}$$
$$ x \implies f(x)=3x-2$$
However, this shifts my inputs and omits zero as an input.
Also, I am hoping for more than an answer. I would like to get better at finding these sorts of sequences myself incase I need this skill later. So please give detail on how you determined a solution/approached the problem etc.