Learn R Programming

LatticeDesign (version 4.0-1)

CoprimeNumbers: Coprime mumbers

Description

Find all potive numbers that is coprime with n and lower than n/2.

Usage

CoprimeNumbers(n);

Value

The value returned from the function gives the vector containing all potive numbers that are coprime with n and lower than n/2.

Arguments

n

A positive integer.

Details

This function finds all potive numbers that is coprime with n and lower than n/2.

References

Xu He, Junpeng Gong, and Zhaohui Li (2025) "optimized and regularly repeated lattice-based Latin hypercube designs for large-scale computer experiment", <arXiv:2506.04582v1>

Examples

Run this code
CoprimeNumbers(20);

Run the code above in your browser using DataLab