Approach for problem

Could anyone tell me the approach to solve the following math problem in CSES https://cses.fi/problemset/task/1082

2 Likes

Superb problem :slight_smile:

Here is mine : Solution

Thanks !! Got it

1 Like