plduhoux
2/20/2018 - 6:20 PM

quasifactorial

int quasifactorial(int n) {
    int res = 1; 
    for (int i = 2; i <= n; i++) {
        res = res * i - 1;
    }
    return res;
}