OFFSET
1,2
COMMENTS
A087472(n) gives the number of iterations required for Murthy's function, f(n), to reach a single digit. A087473(n) gives the smallest number that requires n iterations of Murthy's function to reach a single digit. The n-th row of triangle A087474 gives the n successive iterations of Murthy's function on A087473(n).
Apart from the undefined a(0), the sequence differs from A031347 first at n=121. [From R. J. Mathar, Sep 11 2008]
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
FORMULA
a(n) = a(f(n)), where f(n) is Murthy's function: f(1234)=13*24=312, f(12345)=135*24=3240, f(123456)=135*246=33210.
EXAMPLE
a(1234) = a(13*24) = a(312) = a(32*1) = a(32) = a(3*2) = 6.
MATHEMATICA
Table[NestWhile[With[{idn=IntegerDigits[#]}, FromDigits[Take[idn, {1, -1, 2}]] FromDigits[Take[idn, {2, -1, 2}]]]&, n, #>9&], {n, 110}] (* Harvey P. Dale, Dec 05 2014 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Amarnath Murthy and Paul D. Hanna, Sep 11 2003
STATUS
approved