User blog comment:Boboris02/MBOT/@comment-1605058-20161220212557/@comment-30118230-20161221214849

No,but I said that after you know what the k is you set it to have the value n.So it returns indeed n+7.There is no searching "maximum finite value" here.