The king can’t have lots of horses or gold and silver but he can have them for his needs as king, particularly as head of the army. There is a debate regarding how many Torahs a king needs to have written for him and for what purpose? One who holds two learns is from “mishne torah” – other learn that “mishne” means that will be changed and refers to the fact that the Torah was orignally written in ktav ivri and later in ashurit. A debate regarding details of that is brought. There are certain things one cannot do out of respect for the king – so that one will remain in awe of the king always. These details are discussed. From here the gemara discusses Avishag Hashunamit and digresses to discuss divorce, first wives, how hard it is to lose a spouse, etc.