Math algorithms implemented for laugh and giggles.