Given two random integers $a$, $b$ calculate probability of $a^2$ + $b^2$ is divisible by $10$.
I've tried to simulate this process and got a result about $0.18$ (maybe incorrect), but have no idea why.
|
Given two random integers $a$, $b$ calculate probability of $a^2$ + $b^2$ is divisible by $10$. I've tried to simulate this process and got a result about $0.18$ (maybe incorrect), but have no idea why. |
|||||
|
|
Final digit of a and b as follows (0,0); (1,3)(1,7); (2,4)(2,6); (3,1)(3,9); (4,2)(4,8); (5,5); (6,2)(6,8); (7,1)(7,9); (8,4)(8,6); (9,3)(9,7) That's 18 possibilities out of 100 |
|||
|
|