Skip to main content
added 33 characters in body
Source Link

The value of $k$ can be very large indeed (up to $10^{12}$). Is there an efficient way to calculate the output?

Edit : 'm' is a prime number.

The value of $k$ can be very large indeed (up to $10^{12}$). Is there an efficient way to calculate the output?

The value of $k$ can be very large indeed (up to $10^{12}$). Is there an efficient way to calculate the output?

Edit : 'm' is a prime number.

added 7 characters in body
Source Link
Boris Novikov
  • 3.1k
  • 1
  • 16
  • 17

The value of k$k$ can be very large indeed  (Upup to 10^12$10^{12}$). Is there an efficient way to calculate the output?

The value of k can be very large indeed(Up to 10^12). Is there an efficient way to calculate the output?

The value of $k$ can be very large indeed  (up to $10^{12}$). Is there an efficient way to calculate the output?

Source Link

Calculating (n ^ fibonacci(k)) MOD m for a large value of k

The value of k can be very large indeed(Up to 10^12). Is there an efficient way to calculate the output?