Write the number N as a multiple of 4's and 5's.
In equation form:
N = k1*4 + k2*5 k1, k2 integers
<==> k2*5 = N - k1*4
<==> k2 = (N - k1*4) / 5
|
We can use a brute force search method to find k1 and k2
Write the number N as a multiple of 4's and 5's.
k2 = (N - k1*4) / 5 k1, k2 integers
|
We can use a brute force search method to find k1 and k2