A084113 Number of multiplications when calculating A084110(n).
0, 1, 1, 2, 1, 2, 1, 2, 2, 2, 1, 4, 1, 2, 2, 3, 1, 4, 1, 4, 2, 2, 1, 5, 2, 2, 2, 4, 1, 5, 1, 4, 2, 2, 2, 6, 1, 2, 2, 5, 1, 5, 1, 4, 4, 2, 1, 6, 2, 4, 2, 4, 1, 5, 2, 5, 2, 2, 1, 7, 1, 2, 4, 4, 2, 5, 1, 4, 2, 5, 1, 7, 1, 2, 4, 4, 2, 5, 1, 6, 3, 2, 1, 7, 2, 2, 2, 5, 1, 7, 2, 4, 2, 2, 2, 7, 1, 4, 4, 6, 1, 5, 1, 5, 5
Offset: 1
Keywords
Links
- Reinhard Zumkeller, Table of n, a(n) for n = 1..10000
- Eric Weisstein's World of Mathematics, Divisor Product.
Programs
-
Haskell
a084113 = f 0 1 . a027750_row where f c _ [] = c f c x (d:ds) = if r == 0 then f c x' ds else f (c + 1) (x * d) ds where (x', r) = divMod x d -- Reinhard Zumkeller, Jul 31 2014
Comments