mohamed el teir
- 88
- 1
suppose a side of an equation : 26q+1 , and i want the least positive integer value for q that makes this side of equation divisible by 7, is there any short method to do this ?
but when working with higher mod like mod 26 would this way be efficient ? for example when 9x-1 is divisible by 26Merlin3189 said:I don't know any short method, but you can work in mod 7.
So for eg. if 11x + 8 is divisible by 5, then in mod 5
11x + 8 = 0
10x + x + 8 = 0
0 + x + 8 = 0
x + 3 + 5 = 0
x + 3 + 0 = 0
So x is 2, 7, 12, etc.
Ed: just noticed this is too simple. So 13x +9 is divisible by 5. In mod 5,
13x + 9 = 0
3x + 4 = 0
3x = -4
3x = 1
so 3x = 6, 11, 16, 21, 26, 31, 36, etc
so x= 2, 7, 12, etc.
But what method did you use in Excel?Svein said:A short trip into Excel gave q=4 (next one is 11, then 18 , 25).