From the condition, N is the minimal whole number satisfying the equation= (1) for some integer positive "n". It is equivalent to = 49N. So, we need to find "n" in a way is a multiple of 49. The "trying and error" method, facilitated with Excel, quickly gives such a minimal N = 14285, n = 5. Check. Left side of eq(1) is = 714285. Right side of eq(1) is 5*(10*14285+7) = 714285. ! Correct ! ANSWER. The number is 14285.
5 == 5 mod 7 90 == -1 mod 7 (so 95 = 90+5 == 4 mod 7) 900 == -3 mod 7 (so 995 = 900+90+5 == 1 mod 7) 9000 == -2 mod 7 (so 9995 = 9000+900+90+5 == -1 mod 7) 90000 == 1 mod 7 (so 99995 = 90000+9000+900+90+5 == 0 mod 7)