Talk:Casting out nines: Difference between revisions

Content added Content deleted
m (added a follow-up comment. -- ~~~~)
No edit summary
Line 47: Line 47:
::: —[[User:Sonia|Sonia]] 19:37, 29 June 2012 (UTC)
::: —[[User:Sonia|Sonia]] 19:37, 29 June 2012 (UTC)


::::Banning things and making up my mind, that would be 2 major lifestyle changes in one task, probably impossible.

::::Not too keen on just stating that k%(base-1) == (k*k)%(base-1) for Kaprekar numbers. I did that on the Kaprekar page the purpose here is to explain why.

::::I do like your implementation of co9 both the origional and base10 and the now extended to bases 2 to 32.

::::I have added another task http://rosettacode.org/wiki/Sum_digits_of_an_integer#C.2B.2B and shown how this can be used in http://rosettacode.org/wiki/Casting_out_nines#C.2B.2B11_For_Each_Generator.

::::I have added task http://rosettacode.org/wiki/Digital_root which I think your implementaions of co9 would fit well. From the ref1 in digital roots see http://en.wikipedia.org/wiki/Digital_root#Congruence_formula which may clarify some of your points

::::--[[User:Nigel Galloway|Nigel Galloway]] 12:32, 20 July 2012 (UTC)
----
----
REXX #=0; dead code? # not used
REXX #=0; dead code? # not used