Nearest smaller number to N having multiplicative inverse under modulo N equal to that number | C # program to implement the above approach ; Function to find the nearest smaller number satisfying the condition ; Driver Code
using System ; class GFG { static int clstNum ( int N ) { return ( N - 1 ) ; } public static void Main ( ) { int N = 11 ; Console . Write ( clstNum ( N ) ) ; } }