Sum of Digits.
|
03-25-2016, 11:16 AM
Post: #1
|
|||
|
|||
Sum of Digits.
Hi all friends,
Playing with my WP34s, as each days, I was thinking that, in number theory, often we need know what is the sum of digits presents in register X. So, based on an pretty old routine from John Kennedy, I would like submit you this little routine. Be aware it is not good for "perfects numbers", I am testing another routine for this special case. But it is may be helpfull for someone. Here we go : Code:
For example, if you type : 123 ==> 6 31416==>15 Hoping servicing you STO[times] = STO* GĂ©rard. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)