Talk:Casting out nines: Difference between revisions

Task description formulae made invisible by edits at 06:51, 15 August 2016
No edit summary
(Task description formulae made invisible by edits at 06:51, 15 August 2016)
 
(3 intermediate revisions by 3 users not shown)
Line 1:
==Clarification of Task==
 
I am trying to understand this task.
 
Line 47 ⟶ 49:
::: —[[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
--[[User:Walterpachl|Walterpachl]] 20:34, 13 July 2012 (UTC)
 
: dead code removed. -- [[User:Gerard Schildberger|Gerard Schildberger]] 21:02, 13 July 2012 (UTC)
 
I think the task description could be simply:
 
Write a procedure (say co9(x)) which implements Casting Out Nines by returning the checksum for x. Demonstrate that for a given range of values, the procedure can be used to generate a subset of values with the property co9(k) = co9(k2), containing all the Kaprekar in the range.
 
[[User:Markhobley|Markhobley]] 16:33, 30 January 2013 (UTC)
 
 
==Formulae hidden to most browsers by under-tested cosmetic edits at 06:51, 15 August 2016 ==
 
Under-tested cosmetic edits made to the task page at 06:51, 15 August 2016, including the injection of spaces around expressions in <math> tags, have left some or all of the task description formulae completely invisible to all browsers which display the graphic file version of formulae rather than processing the MathML (this is, in fact, the majority of browsers). The MediaWiki processor does not currently expect such spaces, and generates syntactically ill-formed HTML if they are introduced. Other aspects of these cosmetic edits may further compound the problem. [[User:Hout|Hout]] ([[User talk:Hout|talk]]) 09:55, 22 September 2016 (UTC)
9,655

edits