helpers.totatives

helpers.totatives(N)

Generate all positive integers less than and coprime to N from [1,N)

Parameters

Name Type Description Default
N int The number to find coprimes for required

Returns

Type Description
typing.List[int] List[int]: A list of integers from [1,N) that are coprime to N

Examples:

import pyLHD
pyLHD.totatives(11)
[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]