Digital root

From Rosetta Code
Revision as of 12:19, 20 July 2012 by Nigel Galloway (talk | contribs) (Created page with "{{draft task}} ref1: http://en.wikipedia.org/wiki/Digital_root The task is to calculate the additive persistance and the digital root of a number. e.g. :627615 has additive p...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Digital root is a draft programming task. It is not yet considered ready to be promoted as a complete task, for reasons that should be found in its talk page.

ref1: http://en.wikipedia.org/wiki/Digital_root

The task is to calculate the additive persistance and the digital root of a number. e.g.

627615 has additive persistance __ and digital root of __;
39390 has additive persistance __ and digital root of __;
588225 has additive persistance __ and digital root of __;
393900588225 has additive persistance __ and digital root of __;

Ref 1 identifies the relationship of this task to casting out nines. See: http://rosettacode.org/wiki/Casting_out_nines for this wiki's use of this procedure.