Problem

Source: Problem 1, Centroamerian Olympiad 2009

Tags: algebra proposed, algebra



Let $ P$ be the product of all non-zero digits of the positive integer $ n$. For example, $ P(4) = 4$, $ P(50) = 5$, $ P(123) = 6$, $ P(2009) = 18$. Find the value of the sum: P(1) + P(2) + ... + P(2008) + P(2009).