Interface CollatzTreeGraphParameters

Parameterised inputs

Allows non-default (P,a,b); and other options.

interface CollatzTreeGraphParameters {
    a?: bigint;
    b?: bigint;
    initialValue: bigint;
    maxOrbitDistance: number;
    P?: bigint;
}

Properties

a?: bigint

Factor by which to multiply n.

3n
b?: bigint

Value to add to the scaled value of n.

1n
initialValue: bigint

The value on which to perform the Collatz-esque function

maxOrbitDistance: number

Maximum amount of times to iterate the reverse function. There is no natural termination to populating the tree graph, equivalent to the termination of hailstone sequences or stopping time attempts, so this is not an optional argument like maxStoppingTime / maxTotalStoppingTime, as it is the intended target of orbits to obtain, rather than a limit to avoid uncapped computation.

P?: bigint

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

2n
MMNEPVFCICPMFPCPTTAAATR