General – Discount type: Percentage discount
General – Discount amount: 100
Usage Restrictions – Min qty of matching products: 3.
Usage Limits – Limit discount to: Every nth product.

For every group of 3 items the cheapest will receive the discount. The order of the items will be sorted so the customer receives the best deal.