Guest User

Untitled

a guest
Jun 25th, 2018
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.70 KB | None | 0 0
  1. Let 4 variables a,b,c,d be non-negative integers in the domain [0,255] when they are multiplied by 255. That is to say, they are fractions in the domain [0,1] of a denominator 255 with non-negative integer numerators in the domain [0,255]. Examples of valid values are 1/255, 2/255, 3/255, etc.
  2.  
  3. The variables are related in one equation. I want to prove that there are no solutions to this equation, by which I mean there are no valid values for the 4 variables that will satisfy the equation.
  4.  
  5. ac+(1-a)bd 1
  6. ---------- = -
  7. a +(1-a)b 2
  8.  
  9. Now I'm going to redefine a,b,c,d to be non-negative integers in the domain [0,255]. The equation will still hold if I add the denominator 255 to the variables.
  10.  
  11. a c a b d
  12. --- --- + ( 1 - --- ) --- ---
  13. 255 255 255 255 255 1
  14. --------------------------------- = -
  15. a a b 2
  16. --- + ( 1 - --- ) ---
  17. 255 255 255
  18.  
  19.  
  20. ac (255-a)bd
  21. ----- + ---------
  22. 255^2 255^3 1
  23. ---------------------- = -
  24. a (255-a)b 2
  25. --- + --------
  26. 255 255^2
  27.  
  28.  
  29. 255ac + (255-a)bd
  30. -----------------
  31. 255^3 1
  32. --------------------- = -
  33. 255a + (255-a)b 2
  34. ----------------
  35. 255^2
  36.  
  37.  
  38. 255ac + (255-a)bd 255^2 1
  39. ----------------- --------------- = -
  40. 255^3 255a + (255-a)b 2
  41.  
  42.  
  43. 255ac + (255-a)bd 1
  44. ---------------------- = -
  45. 255(255a + (255-a)b) 2
  46.  
  47. _____________________________
  48. | |
  49. | 255 ac + (255-a)bd 1 |
  50. | --------------------- = - |
  51. | 255^2a + 255(255-a)b 2 |
  52. |___________________________|
  53.  
  54. a,b,c,d are non-negative integers in the domain [0,255]. Is it possible to prove that there are no solutions to this equation?
  55.  
  56. One way to determine this is to test all (255^4=4228250625) possible combinations, however I'm looking for a more compelling proof.
  57.  
  58. Both the numerator and denominator will each evaluate to a non-negative integer value. That being said, a part of the set of possible evaluated fractions will look like this:
  59.  
  60. 1 2 3 4 5 6 7 8 9 10
  61. - , - , - , - , -- , -- , -- , -- , -- , -- ...
  62. 2 4 6 8 10 12 14 16 18 20
  63.  
  64. The denominator must evaluate to an even number.
  65.  
  66. Here are some of the rules of parity (even or odd) arithmetic:
  67.  
  68. Addition/subtraction:
  69. Even Odd
  70. __________
  71. Even |Even Odd
  72. Odd |Odd Even
  73.  
  74. Multiplication:
  75. Even Odd
  76. __________
  77. Even |Even Even
  78. Odd |Even Odd
  79.  
  80. The denominator has only two variables a and b that I need to worry about. Let's consider the possible cases of parity and see which combinations result in an even number.
  81.  
  82. 255^2a + 255(255-a)b
  83. (Odd)a + (Odd)((Odd)-a)b
  84.  
  85. a: Even; b: Even
  86. (Odd)(Even) + (Odd)((Odd)-(Even))(Even)
  87. (Even) + (Odd)(Odd)(Even)
  88. (Even) + (Odd)(Even)
  89. (Even) + (Even)
  90. (Even)
  91.  
  92. a: Odd; b: Even
  93. (Odd)(Odd) + (Odd)((Odd)-(Odd))(Even)
  94. (Odd) + (Odd)(Even)(Even)
  95. (Odd) + (Even)(Even)
  96. (Odd) + (Even)
  97. (Odd)
  98.  
  99. a: Even; b: Odd
  100. (Odd)(Even) + (Odd)((Odd)-(Even))(Odd)
  101. (Even) + (Odd)(Odd)(Odd)
  102. (Even) + (Odd)(Odd)
  103. (Even) + (Odd)
  104. (Odd)
  105.  
  106. a: Odd; b: Odd
  107. (Odd)(Odd) + (Odd)((Odd)-(Odd))(Odd)
  108. (Odd) + (Odd)(Even)(Odd)
  109. (Odd) + (Even)(Odd)
  110. (Odd) + (Even)
  111. (Odd)
  112.  
  113. Therefore, the denominator is only even with both a and b are even. Let's see the parity of the numerator with a and b both being even.
  114.  
  115. 255ac + (255-a)bd
  116. (Odd)(Even)c + ((Odd)-(Even))(Even)d
  117. (Even)c + (Odd)(Even)d
  118. (Even)c + (Even)d
  119. (Even) + (Even)
  120. (Even)
  121.  
  122. Therefore, the numerator must be an even number as well, reducing the set of possible evaluated fractions to those with even numerators:
  123.  
  124. 2 4 6 8 10
  125. - , - , -- , -- , -- ...
  126. 4 8 12 16 20
Add Comment
Please, Sign In to add comment