Can we define in advance that $k$ is even?
For example, when defining the sequence $\{a_n\}$ inductively as follows,
input:
a[n_]:=If[Mod[Abs[a[n-1]-a[n-2]],2]==0,a[n-1]-a[n-2],a[n-1]-2];
a[1] = 3; a[2] = k;
We would like to define $k$ in advance as an even number.