document.write( "Question 1150497: Find the number of ways 5 people can sit in a row where: (a) there are no restrictions; (b) two of the people insist on
\n" ); document.write( "sitting next to each other.
\n" ); document.write( "

Algebra.Com's Answer #771860 by ikleyn(52778)\"\" \"About 
You can put this solution on YOUR website!
.
\n" ); document.write( "
\r\n" );
document.write( "\r\n" );
document.write( "(a)  5! = 5*4*3*2*1,    the number of permutations of 5 objects.\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "(b)  2*4! = 2*4*3*2*1    we consider the particular pair as one object,\r\n" );
document.write( "\r\n" );
document.write( "                         and then we permut 5-1 = 4 objects, which gives 4! into the formula.\r\n" );
document.write( "\r\n" );
document.write( "                         Then we recall that this pair, in each and every its position in the row,  can be in any of \r\n" );
document.write( "                         the two states, (A,B)  or (B,A), which gives us an additional factor of 2.\r\n" );
document.write( "
\r
\n" ); document.write( "\n" ); document.write( "Solved, answered and explained.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "-----------------\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "On Permutations,  see introductory lessons \r
\n" ); document.write( "\n" ); document.write( "    - Introduction to Permutations\r
\n" ); document.write( "\n" ); document.write( "    - PROOF of the formula on the number of Permutations\r
\n" ); document.write( "\n" ); document.write( "    - Problems on Permutations\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "    - OVERVIEW of lessons on Permutations and Combinations\r
\n" ); document.write( "\n" ); document.write( "in this site.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Also,  you have this free of charge online textbook in ALGEBRA-II in this site\r
\n" ); document.write( "\n" ); document.write( "    - ALGEBRA-II - YOUR ONLINE TEXTBOOK.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "The referred lessons are the part of this online textbook under the topic  \"Combinatorics: Combinations and permutations\". \r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Save the link to this textbook together with its description\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Free of charge online textbook in ALGEBRA-II
\n" ); document.write( "https://www.algebra.com/algebra/homework/complex/ALGEBRA-II-YOUR-ONLINE-TEXTBOOK.lesson\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "into your archive and use when it is needed.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "
\n" ); document.write( "
\n" );