Let a language $L=\{+,<\}$. Let $M$ be the structure $(\mathbb{Z},+,<)$. Find a formula $\phi[x]$ with $x$ is the only free variable (thus you can use other symbols like $\forall y$, etc.) such that for any $a \in \mathbb{Z}$, $\phi[a]$ is satisfied in $M$ if and only if $a-1$ is divisible by $3$.
Attempt: What I think was that $a-1$ is divisible by $3$ if and only if $a \equiv 1$. So I want to put something like divides then get the remainder $0<y<2$ but this doesn't work since we are not given division. That's all I can think of. Any hint would be appreciated. Thanks!
For this kind of thing you have to spell out what multiplication by a constant like $3$ means in terms of addition:
$$\phi(a) \equiv \exists i(i + i + i + 1 = a)$$
You will often see something like this abbreviated as:
$$\phi(a) \equiv \exists i(3i + 1 = a)$$
where it is understood that multiplication by a constant is just an abbreviation for repeated addition: $3i = i + i + i$.
According to your comment, you are working over the signature that only has function symbols for $+$ and $<$ and no other non-logical symbols (I count = as a logical symbol). In this case, you need to introduce a local definition of the number 1 into $\phi$, which you can do as follows:
$$ \phi(a) \equiv \exists z \cdot\exists e \cdot \exists i\cdot (z + z = z \land z < e \land (\forall j\cdot\lnot(z < j \land j < e)) \land 3i + e = a) $$
Here the formula $z + z = z$ acts as a definition of $z$ as $0$. Then $z < e$ and $\forall j\cdot\lnot(z < j \land j < e)$ act as a definition of $e$ as the smallest positive integer, i.e., $1$.
(Note that in this example, you don't even need to take = as a logical symbol.)