Skip to main content
1 of 5
user avatar
user avatar

GolfScript, 24 bytes

Not that short, but it at least works...

~[1]*{.p.2/{{+}*}%\,(}do

Try it online!

user85052