Per is more precise They are both right, but but a is more common.
perper (preposition)
: with respect to every member of a specified group : for each
aa (preposition)
—used as a function word before singular nouns when the referent is unspecified and before number collectives and some numbers: in, to, or for each