document.write( "Question 1210199: Find the number of sequences (a_1, a_2, a_3, \dots, a_8) such that:
\n" ); document.write( "* a_i \in \{1, 2, 3, 4, 5, 6, 7, 8\} for all 1 \le i \le 8.
\n" ); document.write( "* Every number1, 2, 3, 4, 5, 6, 7, 8 appears at least once in the sequence.
\n" ); document.write( "

Algebra.Com's Answer #851550 by greenestamps(13200)\"\" \"About 
You can put this solution on YOUR website!


\n" ); document.write( "The sequence has 8 terms; each term is an integer from 1 to 8 inclusive; and the sequence must contain each of those integers at least once.

\n" ); document.write( "That means the sequence contains each of those integers EXACTLY once. So the number of sequences is simply the number of arrangements of the 8 integers, which is 8! = 40,320.

\n" ); document.write( "ANSWER: 40,320

\n" ); document.write( "
\n" ); document.write( "
\n" );