# [Jellyfish](https://github.com/iatorm/jellyfish), <s>56</s> <s>43</s> <s>41</s> 37 bytes **2 bytes thanks to Zgarb** p n + + `1 `1/+&* / * r&;>i [Try it online!](http://jellyfish.tryitonline.net/#code=cApuICAgICAgICArCisgYDEKYDEvKyYqCi8KKiAgICByJjs-aQ&input=MTM) A fork of [my Jelly answer](http://codegolf.stackexchange.com/a/88733/48934).