Al-Kashi's Theorem