Ricoh lens should fit the Ricoh camera. I've heard of problems with Ricoh P lenses and Pentax cameras that take A lenses.

So to get this straight. You've got a Ricoh XR-P camera and a Ricoh 1.7 lens? I don't have the XR-P to check.