added and solved iprb

really more a laborious formula than a computational problem