MathDB
Easy calculation

Source: Problem 1, Centroamerian Olympiad 2009

October 7, 2009
algebra proposedalgebra

Problem Statement

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