A179051 Number of partitions of n into powers of 10 (cf. A011557).
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10
Offset: 0
Keywords
Examples
a(19) = #{10 + 9x1, 19x1} = 2; a(20) = #{10 + 10, 10 + 10x1, 20x1} = 3; a(21) = #{10 + 10 + 1, 10 + 11x1, 21x1} = 3.
Links
Crossrefs
Programs
-
Haskell
a179051 = p 1 where p _ 0 = 1 p k m = if m < k then 0 else p k (m - k) + p (k * 10) m -- Reinhard Zumkeller, Feb 05 2012
-
Mathematica
terms = 10001; CoefficientList[Product[1/(1 - x^(10^k)) + O[x]^terms, {k, 0, Log[10, terms] // Ceiling}], x] (* Jean-François Alcover, Dec 12 2021, after Ilya Gutkovskiy *)
Comments