Determine the probability that for a base ten positive integer x chosen at random from 1 to 9999 inclusively, this relationship is satisfied:
(sod(x))^{2} = x+2, where sod(n) denotes the sum of the digits in the base ten representation of n.


perplexus dot info 


