document.write( "Question 398690: Ten-digit number. Find a 10-digit number whose first digit
\n" );
document.write( "is the number of 1’s in the 10-digit number, whose second
\n" );
document.write( "digit is the number of 2’s in the 10-digit number, whose
\n" );
document.write( "third digit is the number of 3’s in the 10-digit number, and
\n" );
document.write( "so on. The ninth digit must be the number of nines in the
\n" );
document.write( "10-digit number and the tenth digit must be the number of
\n" );
document.write( "zeros in the 10-digit number \n" );
document.write( "
Algebra.Com's Answer #282726 by richard1234(7193)![]() ![]() You can put this solution on YOUR website! I'll denote the digits \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "Suppose \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "Suppose \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "By the Pigeonhole principle, exactly one of the 9-n numbers is equal to 2 and all other nonzero numbers are equal to 1 (this means, 8-n numbers equal to 1). Therefore the number has n zeros, 8-n 1's and one 2. We can easily guess and check based on the value of n, which can only range between 2 and 8. We see that the number 2100010006 satisfies all the given constraints, which happens when |