Under the terms of the agreement, Riverviews shareholders will receive 0.4833 shares of Mid Penn common stock per share.