Given
XXXS=n(a+1)2XX...at least that's how interpreted the question.
n(a+1)2=SXXXXbecause we usually like to have the variable we are solving for on the left.
→n(a+1)=2SXXXXafter multiplying both sides by 2
→n=2Sa+1XXXXafter multiplying both sides by (a+1) and with the assumption that a≠−1#