Atom - Æc - Carmichael Function

Characters: Æ , c

Tags: arithmetic , math , number , vectorize , optimization

Arity: monadic

This atom is monadic, which means it takes one argument.

Functionality

For some integer z, return the smallest integer p such that ap ≡ 1 (mod z) for each a from 1 to z that is coprime to z.