Given a number of terms, n in an equation containing only addition as the only possible operator, find the different number of valid ways in which they can be evaluated. Order of evaluation is controlled by grouping the terms in brackets(adsbygoogle = window.adsbygoogle || []).push({});

e.g. if n = 4

it means that there are 4 terms in the equation – i.e. something like

a+b+c+d

Now the valid ways in which it can be evaluated :

(a + (b + (c+d)))

(a + ((b+c) + d))

((a+b) + (c+d))

(((a+b) + c) + d)

((a + (b+c)) + d)

So the answer in this case is 5

what`s the logic to add n numbers in different possible ways?

**Physics Forums - The Fusion of Science and Community**

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Equation Evaluator

Loading...

Similar Threads - Equation Evaluator | Date |
---|---|

I What does the vertical line in this equation mean? | Feb 28, 2018 |

I Empirical equation from two variables (1 input and 1 output) | Feb 19, 2018 |

I Equation with two unknowns (old title: Einstein's Insanity) | Feb 9, 2018 |

I Comparing two absolute value equations | Feb 4, 2018 |

Using reference angles to evaluate trig function | Jan 12, 2018 |

**Physics Forums - The Fusion of Science and Community**