Question: Ahmad ibn Ibrahim ibn Ali ibn Munim al-Abdari, was a mathematician, originally from Dénia in Andalusia, he lived and taught in Marrakesh, a major city of which location, where he was known as one of the best scholars in geometry and number theory 
Context: Ahmad ibn Ibrahim ibn Ali ibn Munim al-Abdari (died 1228) was a mathematician, originally from Dénia in Andalusia.  He lived and taught in Marrakesh where he was known as one of the best scholars in geometry and number theory.  He is often confused with Muhammad ibn 'Abd al Mun'im, a different mathematician who worked in the court of Roger II of Sicily. Abu Abdallah Mohammed ibn Mohammed ibn Ali ibn Ahmed ibn Masoud ibn Hajj al-Abdari al-Hihi (fl.  ca. 1289) was a Moroccan travel writer.  He was born among the Haha, a Berber tribe in the south of Morocco.  He is the author of "The Moroccan Journey" ("Al-Rihlah al-magribiyyah"), an account of his journey to Mecca in 1289, originally entitled "Rihlat al-Abdari" (al-Abdari's Journey).  It was published by the Ministry of Education (ed.  Muhammad al-Fasi, Rabat, 1968).) Ahmad ibn ‘Ali al-Buni (Arabic: أحمد البوني‎ ‎ ), his complete name is Sharaf al-Din or Shihab al-Din Ahmad ibn Ali ibn Yusuf al-Buni al-Maliki al-ifriqi (born in Annaba, Algeria died 1225) was a well known Sufi and writer on the esoteric value of letters and topics relating to mathematics, "sihr" (sorcery) and spirituality, but very little is known about him.  Al-Buni lived in Egypt and learned from many eminent Sufi masters of his time. Abu Ja'far Ahmad ibn Yusuf ibn Ibrahim ibn Tammam al-Siddiq Al-Baghdadi (835–912), known in the West by his Latinized name Hametus, was an Arab mathematician, like his father Yusuf ibn Ibrahim (Arabic: يوسف بن ابراهيم الصدَيق البغدادي‎ ‎ ). Abu al-Qasim az-Zayyani or, in full, Abu al-Qasim ibn Ahmad ibn Ali ibn Ibrahim az-Zayyani was a Moroccan historian, geographer, poet and statesman from the Berber zayane tribe in Morocco (1734/35–1833).  He undertook diplomatic missions to the Ottoman court and engineered government attempts to bring tribes under central authority.  His writings include several historical accounts of the Ottoman and Alaouite dynasties.  Az-Zayyani wrote fifteen works in the field of history and geography.  Some authors even consider him the greatest historian of Morocco. The Centiloquium (= "one hundred sayings"), also called Ptolemy's Centiloquium, is a collection of one hundred aphorisms about astrology and astrological rules.  It is first recorded at the start of the tenth century CE, when a commentary was written on it by the Egyptian mathematician Ahmad ibn Yusuf al-Misri (later sometimes confounded with his namesake Ali ibn Ridwan ibn Ali ibn Ja'far al-Misri, or in Latin "Haly ibn Rodoan", who lived a century later and wrote a commentary on Ptolemy's "Tetrabiblios"). Abul-Abbas Ahmad ibn Ali al-Mandjur al-Miknasi al-Fasi (1520–1587, born and died in Fes) was a Moroccan scholar of theology and law and a prominent teacher at the Qarawiyyin University.  He is known to have educated qadis for several Moroccan towns.  Between 1579 and 1585 he spent much time in Marrakesh, where he taught the Moroccan sultan Ahmad al-Mansur.  He is the author of theological commentaries and especially his "fahrasa" (account of his scholarly career) is of great renown.  He was the father of the well-known writer Ahmad Ibn al-Qadi. Ahmad ibn al-Qadi or Ibn al-Qadi,(December 18, 1552December 6, 1616), fully Shihab al-Din abu l-‘Abbas Ahmad ibn Mohammed ibn Mohammed ibn Ahmed ibn Ali ibn 'Abd er-Rahman ibn Abi'l-' Afiyya el-Miknasi ez-Zanati, was the leading writer from Ahmad al-Mansur's court in Morocco next to Abd al-Aziz al-Fishtali.  He was also a renowned judge and mathematician. Marrakesh ( or ; Arabic: مراكش‎ ‎ "Murrākuš"; Berber: "Meṛṛakec"), also known by the French spelling Marrakech, is a major city of the Kingdom of Morocco.  It is the fourth largest city in the country, after Casablanca, Fez and Tangier.  It is the capital city of the mid-southwestern region of Marrakesh-Safi.  Located to the north of the foothills of the snow-capped Atlas Mountains, Marrakesh is situated 580 km southwest of Tangier, 327 km southwest of the Moroccan capital of Rabat, 239 km south of Casablanca, and 246 km northeast of Agadir. Nur ibn Mujahid ibn ‘Ali ibn ‘Abdullah al Dhuhi Suha (Harari አሚር ኑር, Somali: Nuur ibn Muujahiid, Arabic: نور بن مجاهد السمروني) (literally, "Light"; died 1567), of the Ahl Suhawyan clan of the Somali tribe of Marehan Darod.  He was known for marrying the widow of Imam Ahmad ibn Ibrahim al-Ghazi (also known as Ahmed Gurey and Ahmad Gragn), he also succeeded Imam Ahmad as leader of the Muslim forces fighting Christian Ethiopia.
Answer: Kingdom of Morocco