Discussion about math, puzzles, games and fun. Useful symbols: ÷ × ½ √ ∞ ≠ ≤ ≥ ≈ ⇒ ± ∈ Δ θ ∴ ∑ ∫ π -¹ ² ³ °

You are not logged in.

- Topics: Active | Unanswered

**HopeYouKnowWhoIam****Guest**

Please tell me if Coefficient[Product[(x+i),{i,100}],x,99] is 5050 because no CAS is working here?! help!!!!

**bob bundy****Administrator**- Registered: 2010-06-20
- Posts: 8,065

hi HopeYouKnowWhoIam

Welcome to the forum. I, for one, don't know who you are.

I also don't follow your syntax. What are you multiplying (x + i) by ?

Bob

Children are not defined by school ...........The Fonz

You cannot teach a man anything; you can only help him find it within himself..........Galileo Galilei

Offline

**anonimnystefy****Real Member**- From: Harlan's World
- Registered: 2011-05-23
- Posts: 16,037

Hi Bob

It's M syntax. I'll try to run it, he basically wants the x^99 term of

*Last edited by anonimnystefy (2014-09-23 18:55:04)*

Here lies the reader who will never open this book. He is forever dead.

Taking a new step, uttering a new word, is what people fear most. ― Fyodor Dostoyevsky, Crime and Punishment

The knowledge of some things as a function of age is a delta function.

Offline

**bob bundy****Administrator**- Registered: 2010-06-20
- Posts: 8,065

hi Stefy,

Thanks, I did wonder if that was the sort of thing meant.

Now is that i the 'summation' variable Ie the same as n in your version ?

Bob

Children are not defined by school ...........The Fonz

You cannot teach a man anything; you can only help him find it within himself..........Galileo Galilei

Offline

**bob bundy****Administrator**- Registered: 2010-06-20
- Posts: 8,065

What I mean is

is this (x+1)(x+2).....(x+100) or is it (x+i)^100 where i is a constant ?

Bob

Children are not defined by school ...........The Fonz

You cannot teach a man anything; you can only help him find it within himself..........Galileo Galilei

Offline

**anonimnystefy****Real Member**- From: Harlan's World
- Registered: 2011-05-23
- Posts: 16,037

Yes, it is, I have edited it accordingly.

If I am not mistaken, the x^99 term should be

Here lies the reader who will never open this book. He is forever dead.

Taking a new step, uttering a new word, is what people fear most. ― Fyodor Dostoyevsky, Crime and Punishment

The knowledge of some things as a function of age is a delta function.

Offline

**bob bundy****Administrator**- Registered: 2010-06-20
- Posts: 8,065

The x^99 term will be found by picking 99 brackets with x and one bracket with a number and then adding them up. So the coefficient is

Who needs a CAS ?

Bob

You cannot teach a man anything; you can only help him find it within himself..........Galileo Galilei

Offline

**anonimnystefy****Real Member**- From: Harlan's World
- Registered: 2011-05-23
- Posts: 16,037

Ah, yes, that is correct. I was thinking of the x term.

Have you seen the thread that emerged?

Here lies the reader who will never open this book. He is forever dead.

Taking a new step, uttering a new word, is what people fear most. ― Fyodor Dostoyevsky, Crime and Punishment

The knowledge of some things as a function of age is a delta function.

Offline

**bob bundy****Administrator**- Registered: 2010-06-20
- Posts: 8,065

Have you seen the thread that emerged?

?? Which thread ?

btw re-check your Latex in post 6.

Bob

You cannot teach a man anything; you can only help him find it within himself..........Galileo Galilei

Offline

**anonimnystefy****Real Member**- From: Harlan's World
- Registered: 2011-05-23
- Posts: 16,037

What's wrong with my LaTeX?

What's my line?

Taking a new step, uttering a new word, is what people fear most. ― Fyodor Dostoyevsky, Crime and Punishment

The knowledge of some things as a function of age is a delta function.

Offline

Thank you, guys. It indeed is 5050. I did with combinatorics, I do not get the normal procedure anyway

'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.'

'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'

I'm not crazy, my mother had me tested.

Offline

**anonimnystefy****Real Member**- From: Harlan's World
- Registered: 2011-05-23
- Posts: 16,037

Is this a Brilliant problem?

Taking a new step, uttering a new word, is what people fear most. ― Fyodor Dostoyevsky, Crime and Punishment

The knowledge of some things as a function of age is a delta function.

Offline

**bob bundy****Administrator**- Registered: 2010-06-20
- Posts: 8,065

Stefy wrote:

What's wrong with my LaTeX?

This is what I'm seeing:

So what is 1/i when i = 0 ?

Bob

You cannot teach a man anything; you can only help him find it within himself..........Galileo Galilei

Offline

It is not a Brilliant problem. But it will become one soon.

The next knows how

'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.'

'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'

I'm not crazy, my mother had me tested.

Offline

**anonimnystefy****Real Member**- From: Harlan's World
- Registered: 2011-05-23
- Posts: 16,037

That's no a Latex problem, it's me not checking. It should go from i=1 and is the answer for the incorrect problem.

Yes, I know.

Taking a new step, uttering a new word, is what people fear most. ― Fyodor Dostoyevsky, Crime and Punishment

The knowledge of some things as a function of age is a delta function.

Offline

**bobbym****bumpkin**- From: Bumpkinland
- Registered: 2009-04-12
- Posts: 109,606

Hi HopeYouKnowWhoIam;

I know who you are. Someone who ain't been reading my computer math thread.

`Coefficient[Product[(x + i), {i, 100}] // Expand, x^99]`

is 5050 because no CAS is working here

There ain't nuthin a CAS can not do.

Agnishom wrote:

It is not a Brilliant problem. But it will become one soon.

Hoooha, I can not wait.

**In mathematics, you don't understand things. You just get used to them.****If it ain't broke, fix it until it is.**** Always satisfy the Prime Directive of getting the right answer above all else.**

Offline

The command he posted works too:

`Coefficient[Product[(x+i),{i,100}],x,99]`

'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.'

'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'

I'm not crazy, my mother had me tested.

Offline

**bobbym****bumpkin**- From: Bumpkinland
- Registered: 2009-04-12
- Posts: 109,606

It does not work.

**In mathematics, you don't understand things. You just get used to them.****If it ain't broke, fix it until it is.**** Always satisfy the Prime Directive of getting the right answer above all else.**

Offline

```
In[1]:= Timing[Coefficient[Product[(x + i), {i, 100}], x, 99]]
Out[1]= {21.056764, 5050}
```

The OP is following your Computer Math thread. He could not get the CAS to work because he did not have it on the machine which he was using then.

'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'

I'm not crazy, my mother had me tested.

Offline

**bobbym****bumpkin**- From: Bumpkinland
- Registered: 2009-04-12
- Posts: 109,606

I repeat, that does not work. Efficiency counts.

AbsoluteTiming[Coefficient[Product[(x + i), {i, 100}], x, 99]]

AbsoluteTiming[Coefficient[Product[(x + i), {i, 100}] // Expand, x^99]]

**In mathematics, you don't understand things. You just get used to them.****If it ain't broke, fix it until it is.**** Always satisfy the Prime Directive of getting the right answer above all else.**

Offline

bobbym wrote:

Mathematicians like simplicity. I like speed. Your solution is neither simple nor fast.

'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'

I'm not crazy, my mother had me tested.

Offline

**bobbym****bumpkin**- From: Bumpkinland
- Registered: 2009-04-12
- Posts: 109,606

It is over 40 times faster than the OP's solution on my machine! Please run the code.

**In mathematics, you don't understand things. You just get used to them.****If it ain't broke, fix it until it is.**** Always satisfy the Prime Directive of getting the right answer above all else.**

Offline

```
In[2]:= AbsoluteTiming[Coefficient[Product[(x + i), {i, 100}], x, 99]]
Out[2]= {20.849901, 5050}
In[3]:= AbsoluteTiming[
Coefficient[Product[(x + i), {i, 100}] // Expand, x^99]]
Out[3]= {0.008456, 5050}
In[5]:= %2/%3
Out[5]= {2466., 1}
```

Do you know why he could not get the CAS working?

'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'

I'm not crazy, my mother had me tested.

Offline

**bobbym****bumpkin**- From: Bumpkinland
- Registered: 2009-04-12
- Posts: 109,606

You seem to be agreeing with me... My solution is much faster and we can do better.

Do you know why he could not get the CAS working?

Who, what, when please.

**In mathematics, you don't understand things. You just get used to them.****If it ain't broke, fix it until it is.**** Always satisfy the Prime Directive of getting the right answer above all else.**

Offline

Who

I am talking about the OP.

when

Today 11:20 Indian Standard Time

what

What what?

'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'

I'm not crazy, my mother had me tested.

Offline