How do you write a in German?

The indefinite article "a/an" in German is a form of the word "ein" (variously ein, eins, eines, einen, einer, einem, eine, depending on context).