Computer Science, asked by denish9814, 9 months ago

samuel owns a shoe factory where there are n different machines operated for n different purposes.Each machine has its own motor.In norder to avoid resonance,the rotation speed of any 2 machines should at least differ by 2 units.The rotation speed can only be in integer units and the maximum rotation speed of any motor is x units.Given maximum rotation speed of any motor to be 1 unit,you have to help Sam find out the number of different ways he can configure the speed of the motors

Answers

Answered by aadidevjyothish091
0

change the speed

Explanation:

Answered by anjumanyasmin
4

n = int(input('the number of machines: '))

x = int(input('maximum speed of the motor: '))

k = 0

if (2*n-1) <= x:

k = x

for i in range(n-1):

 k *= x//(2*(1+i))

print(f' configuration modulus: {k}')

The output are

T]the number of machine: 5

maximum speed of motor: 20

configuration modules: 6000

>>>

Similar questions