View Single Post
Old 2010-11-12, 20:41   #49
axn
 
axn's Avatar
 
Jun 2003

469910 Posts
Default

Quote:
Originally Posted by science_man_88 View Post
Code:
 (11:39) gp > sumdigits(47)*sumdigits(178481)
%69 = 4
(16:19) gp > sumdigits(47*178481)
%70 = 4
in this case it works without the outer sumdigits in the first expression because both sumdigits are below 5 so it can't add up above 9.
See the highlighted part. That is the correct relation. This follows from the fact that sumdigits(x) is equivalent to x%9.
axn is offline