hisoka Posted February 19, 2015 Share Posted February 19, 2015 I post my message here as it does not belong to any programming language section if I have : a % 7 = 3 how can I get the value of a ? Link to comment Share on other sites More sharing options...
justsomeguy Posted February 19, 2015 Share Posted February 19, 2015 You can't, a could have many different values for that equation to still work. It could have any value that is a multiple of 7 plus 3. 1 Link to comment Share on other sites More sharing options...
hisoka Posted February 19, 2015 Author Share Posted February 19, 2015 ok is there a way to know what are the different numbers mod 7 that give 3 ? like for example knowing the first 10000 prime numbers or the divisors of number or the factors of a number Link to comment Share on other sites More sharing options...
justsomeguy Posted February 19, 2015 Share Posted February 19, 2015 (x * 7) + 3For any positive integer x (including 0). 1 Link to comment Share on other sites More sharing options...
hisoka Posted February 20, 2015 Author Share Posted February 20, 2015 thank you very much Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now