simplify equation finding `R_all` for case p=2