HP Prime for All

English  Русский 

Syntax

powmod(a, n, p)

Description

Power and modulo. For the integers a, n, and p, returns a^n mod p.

Example

powmod(5,2,13) returns 12

powmod — Discussion