For an explanation refer to the respective solutions submitted by Steve Herman and Charlie here and here.
blackjack
flooble's webmaster puzzle