Three Basic Algorithm Mathematics