HP 17bii+ solver problem, another solution Message #1 Posted by Don Shepherd on 17 Mar 2007, 8:52 p.m.
A few weeks ago I posted this solver equation that would not work on the 17bii+ (although it apparently worked on the older 17bii):
sumofdigits=sigma(i:0:log(n):1:mod(n:10)+0xL(n:ip(n/10)))
A fellow forum member (as well as an HP rep) offered a solution that worked, but it involved defining and using another variable and using it in place of n. Today I determined that the offending part of the original equation was the *ip*(n/10), and I found that the following solution also works (and does not require a second variable):
sumofdigits=sigma(i:0:log(n):1:mod(ip(n):10)+0xL(n:n/10))
Interesting.
