Let n = 7, then condition satisfied.
Hence, 7n = 7 × 7 = 49
Now, 49 ÷ 5, then remainder is 4.
Alternate Method:
Let the number be 5x.
Then, The integer n = 5x + 2
Take x = 1
Then, n = 7
The value of 7n = 49
49 divided by 5 leaves the remainder 4
∴ 4 is the remainder if 7n is divided by 5.