how many digits are required to number a book containing 300 pages ?
"9 pages from 1 to 9 will require 9 digits . 90 pages from 10 to 99 will require 90 * 2 = 180 digits . 300 - ( 90 + 9 ) = 201 pages will require 201 * 3 = 603 digits . the total number of digits is 9 + 180 + 603 = 792 . the answer is a ."
add(add(subtract(const_10, const_1), multiply(multiply(subtract(const_10, const_1), const_10), const_2)), multiply(add(subtract(300, const_100), const_1), const_3))