Let us prove the statement by induction. If n=1, then A={0,1}, and taking A0={0} and A1={1} we get a partition that satisfies both of the requirements.
Assume now that we have a partition C0,C1,…,Cn for the set C={0,1,…,2n−1}. Construct a partition of the set A={0,1,…,2n+1−1} based on that. First, generate the sets B0,B1,…,Bn as follows: the elements of the subset Bi are derived from the elements of the subset Ci by adding 2n to them. The subsets B0,B1,…,Bn form a partition of the set A∖C={2n,2n+1,…,2n+1−1} and from the construction for all i=0,1,…,n the corresponding subsets Bi and Ci have the same number of elements.
Now, let Ai=Ci∪Bi−1 for all i=1,2,…,n and in addition to that, A0=C0 and An+1=Bn. Then, ∣A0∣=∣An+1∣=1, and if k+l=n+1, then also k,l=0, ∣Ak∣=∣Bk−1∣+∣Ck∣=∣Ck−1∣+∣Ck∣ and ∣Al∣=∣Bl−1∣+∣Cl∣=∣Cl−1∣+∣Cl∣. As (k−1)+l=k+(l−1)=n, we see that ∣Ck−1∣=∣Cl∣ and ∣Ck∣=∣Cl−1∣; thus ∣Ak∣=∣Al∣.
To verify that the second condition is met, let z be an arbitrary element of As+t. If t=0, then As=As+t and At=A0={0}, so we can take x=z and y=0. Now assume t≥1. If z<2n, then z is an element of Cs+t and thus there exist elements x and y in the sets Cs⊂As and Ct⊂At, respectively, such that x+y=z. If z≥2n, then z is an element of Bs+t−1, i.e. z−2n is an element of the set Cs+t−1 and thus the sets Cs and Ct−1 contain elements x and y, respectively, such that x+y=z−2n. But now x+(y+2n)=z, where x and y+2n are elements of the sets Cs⊂As and Bt−1⊂At, respectively. So the statement holds for all positive n.