Question: Let $R$ be a unital ring such that $a^2=a$ for every $a\in R$. Prove that $\mathrm{char}(R)=2$ and $R$ is commutative. Give infinitely many examples of such rings.
It's very easy to show that $\mathrm{char}(R)=2$ and $R$ is commutative, but I'm a little stuck as to how to give infinitely many examples.
Such rings are called Boolean rings.
$$a+a=(a+a)^2= a^2+a^2+a^2+a^2= a+a+a+a$$ $$\implies a+a=0$$
In particular $1+1=0$ and $\operatorname{char}(R)=2$.
Commutativity I leave as an exercise. You can do something analogously. Let me know if you need more hints on this.
For the examples, here is a general construction: Let $X$ be a set with $|X|\geq2$ (to avoid the trivial ring) and consider the power set $2^X$. Make this into a ring by defining
$$A+B= A\triangle B:= (A\setminus B)\cup(B\setminus A)$$ $$A\cdot B= A \cap B$$
Check that this is a ring with identity $X$. Clearly we have $A^2=A$ for every subset of $X$, so this ring satisfies your property.
Now, you can make an infinite collection of non-isomorphic rings by considering this ring and making the power set of this ring into a ring in the same way. By Cantor's theorem, these two rings have different cardinalities hence are not isomorphic. Continue this construction to get an infinite countable family of such rings.
Addendum: We have to exclude the trivial ring $R=\{0\}$ since this ring has characteristic $0$ (or $1$, depending on your definition) and satisfies your condition.