Advertisement
a3f

Elementary Number Theory Exercise

a3f
Dec 30th, 2014
531
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. x +y +z = 100 |(1) this * 10
  2. 10x +10y +10z = 1000 | this - (2)
  3. 10x +3y +0.5z = 100 |(2)
  4. _____________________________
  5. 0x +7y +9.5z = 900
  6. 14y +18z = 1800
  7.  
  8. z = (1800 - 14y)/19 |(3)
  9.  
  10. 1800 - 14y = 0 (mod 19)
  11. 14y = 1800 (mod 19)
  12. y = 1800*15 (mod 19)
  13. y = 27000 (mod 19)
  14. y = 1 (mod 19)
  15.  
  16. y(k) = 1 + 19k | substituting in (3) and then in (1)
  17. z(k) = 94 - 14k
  18. x(k) = 5 - 5k
  19.  
  20. x must be > 0 so k = 0
  21. y(0) = 1, z(0) = 94, x(0) = 5
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement