We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
This article explain how build a integer number using a linear combination.
Example: c = m*a + n*b. Suppose a = 4 e b = 7 and c = 1. Then
1 = 2*4 + 7*-1. If 1 is a linear combination then all number too. Only multiply by the number k and obtain
k = k*(2*4)+k*(7*-1). The link explain others topics about this.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Die Hard 3
You are viewing a single comment's thread. Return to all comments →
To understand the theory I suggest the link: http://www.math.unl.edu/~tmarley1/math189/notes/Sept9notes.pdf
This article explain how build a integer number using a linear combination.
Example: c = m*a + n*b. Suppose a = 4 e b = 7 and c = 1. Then 1 = 2*4 + 7*-1. If 1 is a linear combination then all number too. Only multiply by the number k and obtain k = k*(2*4)+k*(7*-1). The link explain others topics about this.