1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
iris [78.8K]
3 years ago
12

Suppose there are n chairs in a row. We want to compute the number of ways to put 2 students into seats so that they are not nex

t to each other. Assume that students are interchangeable: e.g., if n = 3, the solution should be 1, because the only way to accomplish this is to use the first and last chairs. For both parts to this problem, you must explain why your answer is correct: it is not sufficient to compute a few values directly and look for a pattern.
a. Write a recurrence relation describing the number of ways to put the 2 students into seats so that they are not next to each other.
b. Repeat part a, but now suppose the chairs are in a circle (hint: it might help if you label the chairs 1, ... n, even though they are in a circle without a 'start' or 'end').

Engineering
1 answer:
icang [17]3 years ago
8 0

Complete Question

The complete question is shown on the first uploaded image

Answer:

a) f_{(n)} = f_{(n-1)} + n-2

b) g_{(n)} = g_(n+1) + (n-2)

Explanation:

The explanation is shown on the second and third uploaded image

You might be interested in
A piston-cylinder assembly has initially a volume of 0.3 m3 of air at 25 °C. Mass of the air is 1 kg. Weights are put on the pis
kogti [31]

Answer:

n=2.32

w= -213.9 KW

Explanation:

V_1=0.3m^3,T_1=298 K

V_2=0.1m^3,T_1=1273 K

Mass of air=1 kg

For polytropic process  pv^n=C ,n is the polytropic constant.

  Tv^{n-1}=C

  T_1v^{n-1}_1=T_2v^{n-1}_2

298\times .3^{n-1}_1=1273\times .1^{n-1}_2

n=2.32

Work in polytropic process given as

       w=\dfrac{P_1V_1-P_2V_2}{n-1}

      w=mR\dfrac{T_1-T_2}{n-1}

Now by putting the values

w=1\times 0.287\dfrac{289-1273}{2.32-1}

w= -213.9 KW

Negative sign indicates that work is given to the system or work is done on the system.

For T_V diagram

  We can easily observe that when piston cylinder reach on new position then volume reduces and temperature increases,so we can say that this is compression process.

5 0
3 years ago
Modify the Rainfall Statistics program you wrote for Programming Challenge 2 of Chapter 7 . The program should display a list of
rjkz [21]

Answer:

#include<iostream>

#include <iomanip>

using namespace std;

const int NUM_MONTHS = 12;

double getTotal(double [], int);

double getAverage(double [], int);

double getLargest(double [], int, int &);

double getSmallest(double [], int, int &);

double getTotal(int rainFall,double NUM_MONTHS[])

{

double total = 0;

for (int count = 0; count < NUM_MONTH; count++)

total += NUM_MONTH[count];

return total;

}

double getAverage(int rainFall,double NUM_MONTH[])

{getTotal(rainFall,NUM_MONTH)

average= total/NUM_MONTHS;

return average;

}

double getHighest(int rainFall, double NUM_MONTHS[]) //I left out the subScript peice as I was not sure how to procede with that;

{

double largest;

largest = NUM_MONTHS[0];

for ( int month = 1; month <= NUM_MONTHS; month++ ){

                     if ( values[month] > largest ){

                 largest = values[month];

return largest;

          }

double getSmallest(int rainFall, double NUM_MONTHS[])

{

double smallest;

smallest = NUM_MONTHS[0];

for ( int month = 1; month <= NUM_MONTHS; month){

                     if ( values[month] < smallest ){

                 smallest = values[month];

return smallest;

          }

 

int main()

{

double rainFall[NUM_MONTHS];

 for (int month = 0; month < NUM_MONTHS; month++)

  {

     cout << "Enter the rainfall (in inches) for month #";

     cout << (month + 1) << ": ";

     cin >> rainFall[month];

 

     while (rainFall[month] < 0)

     {

      cout << "Rainfall must be 0 or more.\n"

             << "Please re-enter: ";

      cin >> rainFall[month];

     }

  }

  cout << fixed << showpoint << setprecision(2) << endl;

  cout << "The total rainfall for the year is ";

  cout << getTotal(rainFall, NUM_MONTHS)

      << " inches." << endl;

   cout << "The average rainfall for the year is ";

  cout << getAverage(rainFall, NUM_MONTHS)

      << " inches." << endl;

   int subScript;

cout << "The largest amount of rainfall was ";

  cout << getLargest(rainFall, NUM_MONTHS, subScript)

      << " inches in month ";

  cout << (subScript + 1) << "." << endl;

  cout << "The smallest amount of rainfall was ";

  cout << getSmallest(rainFall, NUM_MONTHS, subScript)

      << " inches in month ";

  cout << (subScript + 1) << "." << endl << endl;

  return 0;

}

8 0
3 years ago
Steam flows steadily through an adiabatic turbine. The inlet conditions of the steam are 10 MPa, 450°C, and 80 m/s, and the exit
8090 [49]

Answer:

a) The change in Kinetic energy, KE = -1.95 kJ

b) Power output, W = 10221.72 kW

c) Turbine inlet area, A_1 = 0.0044 m^2

Explanation:

a) Change in Kinetic Energy

For an adiabatic steady state flow of steam:

KE = \frac{V_2^2 - V_1^2}{2} \\.........(1)

Where Inlet velocity,  V₁ = 80 m/s

Outlet velocity, V₂ = 50 m/s

Substitute these values into equation (1)

KE = \frac{50^2 - 80^2}{2} \\

KE = -1950 m²/s²

To convert this to kJ/kg, divide by 1000

KE = -1950/1000

KE = -1.95 kJ/kg

b) The power output, w

The equation below is used to represent a  steady state flow.

q - w = h_2 - h_1 + KE + g(z_2 - z_1)

For an adiabatic process, the rate of heat transfer, q = 0

z₂ = z₁

The equation thus reduces to :

w = h₁ - h₂ - KE...........(2)

Where Power output, W = \dot{m}w..........(3)

Mass flow rate, \dot{m} = 12 kg/s

To get the specific enthalpy at the inlet, h₁

At P₁ = 10 MPa, T₁ = 450°C,

h₁ = 3242.4 kJ/kg,

Specific volume, v₁ = 0.029782 m³/kg

At P₂ = 10 kPa, h_f = 191.81 kJ/kg, h_{fg} = 2392.1 kJ/kg, x₂ = 0.92

specific enthalpy at the outlet, h₂ = h_1 + x_2 h_{fg}

h₂ = 3242.4 + 0.92(2392.1)

h₂ = 2392.54 kJ/kg

Substitute these values into equation (2)

w = 3242.4 - 2392.54 - (-1.95)

w = 851.81 kJ/kg

To get the power output, put the value of w into equation (3)

W = 12 * 851.81

W = 10221.72 kW

c) The turbine inlet area

A_1V_1 = \dot{m}v_1\\\\A_1 * 80 = 12 * 0.029782\\\\80A_1 = 0.357\\\\A_1 = 0.357/80\\\\A_1 = 0.0044 m^2

3 0
3 years ago
The term _______________refers to the science of using fluids to perform work.
Alla [95]
The term is hydraulics.
5 0
3 years ago
Read 2 more answers
PLEASE HELP QUICK!!
ivolga24 [154]

R01= 14.1 Ω

R02=  0.03525Ω

<h3>Calculations and Parameters</h3>

Given:

K= E2/E1 = 120/2400

= 0.5

R1= 0.1 Ω, X1= 0.22Ω

R2= 0.035Ω, X2= 0.012Ω

The equivalence resistance as referred to both primary and secondary,

R01= R1 + R2

= R1 + R2/K2

= 0.1 + (0.035/9(0.05)^2)

= 14.1 Ω

R02= R2 + R1

=R2 + K^2.R1

= 0.035 + (0.05)^2 * 0.1

= 0.03525Ω

Read more about resistance here:

brainly.com/question/17563681

#SPJ1

5 0
2 years ago
Other questions:
  • A large prime number isP = 232582657 - 1
    8·1 answer
  • Calculate the resistance using Voltage and current, again using voltage and power, again using current and power, and again usin
    12·1 answer
  • The Review_c object has a lookup relationship up to the Job_Application_c object. The job_Application_c object has a master-deta
    7·1 answer
  • An operating gear box (transmission) has 350 hp at its input shaft while 250. hp are delivered to the output shaft. The gear box
    10·1 answer
  • What engine does chrysler 300c have?​
    15·1 answer
  • Choose the three questions that an engineer should ask himself or herself when identifying the need of a problem.
    6·2 answers
  • Which system provides an easier way for people to communicate with a computer than a graphical user interface (GUI)?
    15·1 answer
  • Tech A says that a mechanical pressure regulator exhausts excess fluid back to the transmission pan. Tech B says that if the tra
    9·1 answer
  • How many different powerball combinations are there
    7·1 answer
  • 5. A 15-nC point charge is at the origin in free space. Calculate V₁ if point P, is located at
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!