โ† Caterpillar questions

Compute ((S^N mod 10)^M) mod 1,000,000,007

Filed under Caterpillar

The question

Given S, N and M, compute (((S^N % 10)^M) % 1000000007).

No write-up yet. Related questions below have one.

Related Caterpillar questions

Collected from public candidate posts and coding forums. Updated Nov 2026.