Interface CollatzTreeGraphParameters

Parameterised inputs

Remarks

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

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

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
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.

Generated using TypeDoc