On a problem of partitions of Zm with the same representation functions
For any positive integer m, let Zm be the set of residue classes modulo m. For A⊆Zm and n∈Zm, let representation function RA(n) denote the number of solutions of the equation n=a+a′ with ordered pairs (a,a′)∈A×A. In this paper, we determine all sets A,B⊆Zm with A∪B=Zm and ∣A∩B∣=2 or m−2 such that RA(n)=RB(n) for all n∈Zm. We also prove that if m is a positive integer with 4∣m, then there exist two distinct sets A,B⊆Zm with A∪B=Zm and ∣A∩B∣=4 or m−4, B=A+2m such that RA(n)=RB(n) for all n∈Zm. If m is a positive integer with 2∥m, A∪B=Zm and ∣A∩B∣=4 or m−4, then RA(n)=RB(n) for all n∈Zm if and only if B=A+2m.