https://5dok.net/document/q05p2049-an-alternating-risk-reserve-process-part-i.html