a^k % n = (a%n)^k
(a+b) % n = a%n + b%n
(n+1)^(n-1) % n = [ (n+1) % n ] ^ (n-1) = [ n % n +1 % n ] ^ (n-1) = [ 0 + 1 ] ^ (n-1) = 1
(n-1)^(n+1) % n = [ (n-1) % n ] ^ (n+1) = [ n % n - 1 % n ] ^ (n+1) = [ 0 - 1 ] ^ (n+1) = -1
Title | # Comments | Views | Activity |
---|---|---|---|
Excel - convert k M or G suffix to real number | 6 | 101 | |
Adjust number proportionately | 12 | 64 | |
Graph function | 4 | 54 | |
Maximum possible 10 character string combinations from 36 unique characters | 18 | 48 |
Join the community of 500,000 technology professionals and ask your questions.
Connect with top rated Experts
15 Experts available now in Live!