Skip to main content
1 of 2
Erik the Outgolfer
  • 40.6k
  • 5
  • 45
  • 122

Brachylog, 13 bytes

ḅ⟨{ȧᵐ~ḃ}×h⟩ᵐ+

Try it online!

Erik the Outgolfer
  • 40.6k
  • 5
  • 45
  • 122