Can You Solve The Infinite Gold Riddle?

A few years ago, the king decided your life would be forfeit unless you tripled the gold coins in his treasury. Fortunately, a strange little man appeared and magically performed the feat. Unfortunately, you promised him your first-born child in exchange for his help — and today he’s come to collect. Can you figure out how to outsmart the man and keep your baby?

[TED Ed]