Interface CollatzFunctionParameters

Parameterised inputs

Remarks

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

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

Properties

Properties

P?: bigint

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

Default Value

2n
a?: bigint

Factor by which to multiply n.

Default Value

3n
b?: bigint

Value to add to the scaled value of n.

Default Value

1n
n: bigint

The value on which to perform the Collatz-esque function

Generated using TypeDoc