```
Array = [0, 4, 10, -20, 10, 20, 50]

```

I want this array after an formula that makes it look like this or similar

```
Array = [0, 2, 4, 7, 10, -5, -20, -5, 10, 15, 20, 35, 50] 

```

What it does is, it checks the distance between the numbers and then divides the distance by 2, then it adds it to the middle of those values.