Write G=Zq×H, bˉ=(b,0) for b∈B and
γ(x)=(c(x),x) for x∈H. Since q=p2+p+1 and h are odd, G
has odd order, so 2 is invertible in Zq and x=−x for
x=0 in H. The set B is strong Sidon in Zq: if
b1+b2=b3+b4 then b1−b3=b4−b2, and uniqueness of differences
forces {b1,b2}={b3,b4}. Hence ∣B+B∣=(p+1)(p+2)/2.
Conditions on c. We require
(S0) c(0)∈B, so that γ(0)=c(0) and ∣A∣=p+h;
(S1) for every λ∈H, the values c(y)+c(y′) over unordered
pairs {y,y′} with y+y′=λ, y=y′ allowed, are distinct;
(S2) c(x)+c(−x)∈/B+B for x=0;
(S3) c(v)+c(w)−c(v+w)∈/B for v,w=0 with v+w=0, v=w
allowed.
These conditions give the strong Sidon property. A sum of two elements
of A has one of the forms (b+b′,0), (b+c(x),x) or
(c(y)+c(y′),y+y′). Two sums of the first form coincide only for the same
pair, because B is strong Sidon, and the same holds for the second form
by comparing levels and then residues. Two sums of the third form coincide
only for the same pair by (S1). A sum of the first form equals one of the
second only at level x=0, where γ(0)=c(0) makes both
the same pair of points of B×{0}. A sum of the first form equals
one of the third only if y+y′=0; for y=0 this is excluded by (S2),
and y=y′=0 is again a pair inside B×{0}. A sum of the second
form equals one of the third only if x=y+y′ and
b=c(y)+c(y′)−c(y+y′). If y=0 or y′=0 the two pairs coincide, as
γ(0)=c(0); if y+y′=0 we are in the previous case; and
otherwise (S3) excludes it.
Maximality. Let g=(ρ,s)∈/A. If s=0 then
ρ=c(s), and there are b,b′∈B with b−b′=ρ−c(s); then
g=γ(s)+bˉ−bˉ′, where bˉ′=bˉ and
bˉ′=γ(s) because their levels differ. If s=0 then
ρ∈/B, so ρ=c(0), and there are b,b′∈B with
b−b′=ρ−c(0); then g=c(0)+bˉ−bˉ′, where
b′=b, and b′=c(0) would give ρ=b∈B. In both cases
a+b=g+c with {a,b}={g,c}, so A∪{g} is not strong Sidon.
Existence of c. Put c(0)=minB, list the non-zero elements of H
in pairs {x,−x}, and assign the values one at a time, c(x) before
c(−x), each time choosing any residue that violates none of (S1)--(S3)
among the already assigned values. If such a residue always exists, the
final map satisfies (S0)--(S3), since every condition involves finitely
many points and is checked when its last value is assigned.
Let S be the set of points already assigned when c(x) is chosen, so
0∈S, x∈/S and ∣S∣≤h−1. The residues excluded for c(x)
are at most the following.
(S1): for each y∈S∪{x}, the new sum at level x+y must avoid
the sums of the pairs inside S at that level. There are at most
⌈∣S∣/2⌉≤h/2 such pairs, and c(x) is determined by the
sum it would equal (for y=x through 2c(x)). This excludes at most
h⋅h/2 residues.
(S2): if −x∈S, the residues (B+B)−c(−x), at most (p+1)(p+2)/2.
(S3) with x=v: for each w∈S∖{0} with
x+w∈S∖{0}, the p+1 residues B−c(w)+c(x+w), at most
(h−2)(p+1) in all; with v=w=x and 2x∈S∖{0}, the p+1
residues (B+c(2x))/2.
(S3) with x=v+w: for each unordered pair {v,w} in
S∖{0} with v+w=x, at most (h−1)/2 pairs, the p+1
residues c(v)+c(w)−B.
The total is at most
2(p+1)(p+2)+(p+1)23h−3+2h2.
A residue remains whenever this is less than q=p2+p+1, which holds when
h2+3h(p+1)≤(p+1)2. For h≤p/4,
h2+3h(p+1)≤16p2+43p(p+1)=1613p2+12p<(p+1)2.
So the greedy assignment never stops, and the map c exists.
Cyclic case. If H≅Zh and gcd(h,q)=1, then
Zq×Zh≅Zqh by the Chinese remainder
theorem. ■
Admissible cyclic orders. For every large prime power p some prime
h∈[p/8,p/4] does not divide q: by the prime number theorem the
interval contains more than two primes, while three distinct prime factors
of size at least p/8 would have product at least (p/8)3>q. Such an h
is odd, the group Zqh has order between qp/8 and qp/4, and
∣A∣=p+h≤5p/4≤25∣Zqh∣1/3.
Remark. The same count works with any finite abelian group K of odd
order carrying a set B whose differences cover K∖{0}
exactly once, in place of Zq. The threshold from the count is
h≤213−3(p+1)≈0.30(p+1).