Ask your own question, for FREE!
Discrete Math 24 Online
OpenStudy (anonymous):

Write a pseudocode algorithm to compute the product of the first n positive integers. How many multiplications does your algorithm perform?

OpenStudy (anonymous):

Can you explain in your own words, what this is asking you to do? that is how i start all of my psuedocode

OpenStudy (neer2890):

it's like an algorithm for finding the factorial of a number as factorial starts multiplying from 1 to that number itself. so just write an algorithm to find the factorial. Recurrence relation for factorial of a number is f(n)=n*f(n-1)

OpenStudy (anonymous):

Count the number of multiplicative operators: \[1\underbrace{\times}_{\large1}2\underbrace{\times}_{\large2}\cdots\underbrace{\times}_{\large n-2}(n-1)\underbrace{\times}_{\large n-1} n\]

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!