document.write( "Question 978632: Given 3 numbers A, B and C. What is the sum of all numbers whose digits are made only of 4, 5 and 6, that have at most A 4's, B 5's, and C 6's in decimal representation, respectively. \r
\n" ); document.write( "\n" ); document.write( "Constraints: 0 <= A, B, C <= 10. ( \"<=\" indicates less than or equal to).
\n" ); document.write( "
\n" ); document.write( "

Algebra.Com's Answer #600015 by Edwin McCravy(20055)\"\" \"About 
You can put this solution on YOUR website!
Given 3 numbers A, B and C. What is the sum of all numbers whose digits are made
\n" ); document.write( "only of 4, 5 and 6, that have at most A 4's, B 5's, and C 6's in decimal
\n" ); document.write( "representation, respectively.\r
\n" ); document.write( "\n" ); document.write( "Constraints: 0 <= A, B, C <= 10. ( \"<=\" indicates less than or equal to).
\n" ); document.write( "
\r\n" );
document.write( "The smallest one is 4 \r\n" );
document.write( "\r\n" );
document.write( "and \r\n" );
document.write( "\r\n" );
document.write( "the largest one has 30 digits: 666666666655555555554444444444\r\n" );
document.write( "\r\n" );
document.write( "where A=B=C=10\r\n" );
document.write( "\r\n" );
document.write( "So this is asking for an answer with 30 or more digits!!!!\r\n" );
document.write( "\r\n" );
document.write( "Please write the problem exactly as stated in the book or source in the \r\n" );
document.write( "thank-you note form below.  I don't think anybody would be asking you \r\n" );
document.write( "for an answer that large.\r\n" );
document.write( "\r\n" );
document.write( "Edwin
\n" ); document.write( "
\n" );