library(tidyverse)
library(ggthemes)
library(reactable)
library(pracma)

Chapter 3 Page 8

Page 88 Exercise 1

  1. Four people are to be arranged in a row to have their picture taken. In how many ways can this be done?

There are 24 different ways It can be done.

\[ {4 \choose 3}{3 \choose 2} {2 \choose 1}\]

(choose(4,3)*choose(3,2)*choose(2,1))
## [1] 24
  1. An automobile manufacturer has four colors available for automobile exteriors and three for interiors. How many different color combinations can he produce?

Ans. There are 12 different color combinations he can produce.

P = 3
n = 4
P*n
## [1] 12