Interface CollatzFunctionParameters

Parameterised inputs

Allow (P,a,b) to be optional, keyword inputs.

interface CollatzFunctionParameters {
    a?: bigint;
    b?: bigint;
    n: bigint;
    P?: bigint;
}

Properties

Properties

a?: bigint

Factor by which to multiply n.

3n
b?: bigint

Value to add to the scaled value of n.

1n
n: bigint

The value on which to perform the Collatz-esque function

P?: bigint

Modulus used to devide n, iff n is equivalent to (0 mod P).

2n