# Two steps forward and one step back

## Python 2, 18 bytes

```
lambda n:3*n-1%n*4
```

Try it online.

I picked this trick up from xnor just a few days ago…!

## Python 2, 20 bytes

```
lambda n:n*3-4*(n>1)
```

Try it online!

## Python 2, 17 bytes

```
lambda n:n-3%~n*2
```

Try it online!

I found the expression by brute-force search. It effectively computes `n+2*abs(n-2)`

.