(1) In this sentence the personal “a” is repeated: “ A Pedro y a Pablo les cantaron una canción por su despedida”.
However in this sentence the second “a” is omitted: “ (Les) cantaron una canción a Pedro y Pablo por su despedida.”
Is the second “a” arbitrary or is there a rule for when to omit it?
(2) I notice two uses of IO pronouns in the examples and questions.
The first is the common usage such as giving something to someone, saying something to someone, or taking something from someone. This usage always has a direct object.
The second usage is from a lesson from a higher level, called the “dativo de interés”, which has an entirely different meaning altogether. Instead of always having a DO and giving the DO to someone, there may not be a directobject at all (intransitive verbs), and the IO simply emphasizes that someone is affected by the action.
Sometimes there is a DO: Mi hija pequeña no me come nada.
and sometimes there is not: Ayer nos cayó un buen chaparrón.
Inma’s answer to Thea reflects this type of usage.
Spanish dativo de interés - specific use of Spanish indirect object pronouns
So there are different layers to the usage of the IO.
Could you make a lesson contrasting the different types of IO usage? It could be useful for many of us.