Maths problem
Author
Discussion

bulb763

Original Poster:

870 posts

265 months

Monday 11th August 2008
quotequote all
Hoping to draw on some of the maths experts knowledge that I've seen lurk on herewink

I know St.
I know B1, B2, B3, B4... Bn (where B1>B2>B3>B4>Bn)

I want to split St up into S1, S2, S3, S4... Sn (where S1<S2<S3<S4<Sn), so that the Sum of S1 to Sn = St. But also,
S1*B1 = S2*B2
= S3*B3
= S4*B4
= Sn*Bn
= W

So basically, I am trying to work out how to work out the values of S1, S2 etc so that S1*B1, S2*B2 etc always equals W. I can see that there is a relationship in there somewhere and that I have all the information required, so I know it can be expressed as an equation, I just cant see how wobble I'd like to express S1, S2, etc in terms of St and any/all of the B's, IYSWIM smile

Use these values as an example

St = 1000

B1 = 12
B2 = 6.5
B3 = 3.25
B4 = 2.75

S1 = ?
S2 = ?
S3 = ?
S4 = ?

W = whatever (this doesn't matter, but I suspect that there is only one value that will work)

Ultimately I want to use the formula in Excel. Maybe simultaneous equations would work but I'm not sure I'd be able to use those in Excel :shrug:

Over to you... biggrin

Edited by bulb763 on Monday 11th August 17:01

Simpo Two

93,059 posts

296 months

Monday 11th August 2008
quotequote all
Honolulu?

arun1uk

1,068 posts

229 months

Monday 11th August 2008
quotequote all
Control+Alt+Delete

Edited by arun1uk on Monday 11th August 17:02

mercemployee

330 posts

237 months

Monday 11th August 2008
quotequote all
THe answer is almost certainly 42

Technonotice

4,250 posts

222 months

Monday 11th August 2008
quotequote all
mx5?

smutbag

1,705 posts

221 months

Monday 11th August 2008
quotequote all
mercemployee said:
THe answer is almost certainly 42
laugh

batfink79

3,020 posts

241 months

Monday 11th August 2008
quotequote all
w = 3


HTH

gti-ted

1,029 posts

240 months

Monday 11th August 2008
quotequote all
AK47

john_r

8,354 posts

302 months

Monday 11th August 2008
quotequote all
Meh...

N1CK

5,588 posts

252 months

Monday 11th August 2008
quotequote all
ahh i see im not the only one that got two F grades in maths then hehe

SS HSV

9,646 posts

289 months

Monday 11th August 2008
quotequote all
Pie = 3.14215936 is a round thing you eat.

Well this is a motoring website after all wink

ludo

5,308 posts

235 months

Monday 11th August 2008
quotequote all

I think S1 = St*B1/(B1 + B2 + B3 + ... + Bn)

you can then work out the rest by e.g. S2 = S1*B1/B2, S3 = S2*B2/B3 etc

but I haven't been bothered to check. Out of interest, what is the underlying problem?

Neil_H

15,418 posts

282 months

Monday 11th August 2008
quotequote all
Thursday.

Justayellowbadge

37,057 posts

273 months

Monday 11th August 2008
quotequote all
Can't have that, Mr H. Here you go, have one on me. beer

ludo

5,308 posts

235 months

Monday 11th August 2008
quotequote all
ludo said:
I think S1 = St*B1/(B1 + B2 + B3 + ... + Bn)

you can then work out the rest by e.g. S2 = S1*B1/B2, S3 = S2*B2/B3 etc

but I haven't been bothered to check. Out of interest, what is the underlying problem?
Oops, shouldn't have tried to solve it in my head, having checked it, I think it should be

S1 = St*B1/(1/B1 + 1/B2 + ... 1/Bn)

or more generally

Si = St*Bi/(1/B1 + 1/B2 + ... + 1/Bn)

having said which, my maths isn't usually that much more reliable with pen and paperwink


fleetelise

2,430 posts

243 months

Monday 11th August 2008
quotequote all
just whack it in excel with three columns.

column 1 = B
column 2 = S
column 3 = W

enter known Bs
enter formula for S
enter formula for W

have S1 set as 1

set one cell to be the summation of all the esses. Now, use the solver to set the summation of the esses to your desired value by altering S1, the answer should drop out.

ludo

5,308 posts

235 months

Monday 11th August 2008
quotequote all
ludo said:
ludo said:
I think S1 = St*B1/(B1 + B2 + B3 + ... + Bn)

you can then work out the rest by e.g. S2 = S1*B1/B2, S3 = S2*B2/B3 etc

but I haven't been bothered to check. Out of interest, what is the underlying problem?
Oops, shouldn't have tried to solve it in my head, having checked it, I think it should be

S1 = St*B1/(1/B1 + 1/B2 + ... 1/Bn)

or more generally

Si = St*Bi/(1/B1 + 1/B2 + ... + 1/Bn)

having said which, my maths isn't usually that much more reliable with pen and paperwink
yep, wrong again:

S1 = St/(B1*(1/B1 + 1/B2 + ... 1/Bn))

or more generally

Si = St/(Bi*(1/B1 + 1/B2 + ... + 1/Bn))

for the example I get

S1 = 91.7225
S2 = 169.3393
S3 = 338.6786
S4 = 400.2566

W = 1100.7056 (ish)

I think I've got it right nowwink


fleetelise

2,430 posts

243 months

Monday 11th August 2008
quotequote all
using my "solver" method


B S W
1 12 91.72546513 1100.705582
2 6.5 169.3393202 1100.705582
3 3.25 338.6786405 1100.705582
4 2.75 400.2565751 1100.705582

ludo

5,308 posts

235 months

Monday 11th August 2008
quotequote all
fleetelise said:
using my "solver" method


B S W
1 12 91.72546513 1100.705582
2 6.5 169.3393202 1100.705582
3 3.25 338.6786405 1100.705582
4 2.75 400.2565751 1100.705582
reassuring! Elise ownership is obviously a sign of intelligence thumbup

boobles

15,251 posts

246 months

Monday 11th August 2008
quotequote all
Isnt S1 & S2 an Elise? hehe