Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|cite|improve this question
Whatever your notion of "random integer" may be ... – Hagen von Eitzen Jan 6 '13 at 10:58
up vote 4 down vote accepted

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

share|cite|improve this answer
Oh, thanks. It is so clear and I should had figured it out. – halfelf Jan 6 '13 at 9:20

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.