This should be possible with `diff`:
```python
powers = np.diff(powers_, axis=1)
powers -= 1
```