This is the 2214th most frequent German word.
einem
The German word "einem" is the dative form of "ein" (a/an) used for masculine and neuter singular nouns.
Here, 'einem' is used as the dative case of the indefinite article for the masculine noun 'Freund', indicating the recipient of the action.
Ich gebe einem Freund ein Buch.
I am giving a book to a friend.
'Einem' here serves as the dative form of the indefinite article for the masculine noun 'Park', functioning to denote location.
Wir haben in einem Park gespielt.
We played in a park.
In this sentence, 'einem' is used in the dative case for the masculine noun 'Lehrer', showing the source or topic.