Find b that (a+b) divisible to K
Find b that (a+b) divisible to K Question: I have integer input: 0 < a, K, N < 10^9 I need to find all b numbers that satisfy: a + b <= N (a + b) % K = 0 For example: 10 6 40 -> [2, 8, 14, 20, 26] I tried a simple …
Total answers: 3