Ask Experts Questions for FREE Help !
Ask
    Ellendra's Avatar
    Ellendra Posts: 2, Reputation: 1
    New Member
     
    #1

    Mar 6, 2007, 12:22 PM
    Need a formula:
    (This isn't homework, its part of a puzzle, and its got me stumped)

    I have 2 known numbers, n and z. They relate thus:

    n=x*y
    z=(x-1)*(y-1)
    n-z=x+y-1

    I need to find x and y. Any ideas?
    galactus's Avatar
    galactus Posts: 2,271, Reputation: 282
    Ultra Member
     
    #2

    Mar 6, 2007, 06:42 PM
    From what I can see you have infinite solutions. Plug in anything for x and y.

    I used x=2 and y=3.
    asterisk_man's Avatar
    asterisk_man Posts: 476, Reputation: 32
    Full Member
     
    #3

    Mar 6, 2007, 09:27 PM
    I essentially agree. Any choice of n,z does not restrict the values that x and y can take. i.e. neither x nor y are functions of n or z.
    The reason that I see is that you have 4 unknowns but really only 2 equations (the 3rd is just a combination of the first 2). Therefore, two variables remain unconstrained.
    Ellendra's Avatar
    Ellendra Posts: 2, Reputation: 1
    New Member
     
    #4

    Mar 6, 2007, 09:46 PM
    Your right. I forgot to mention something: All the unknowns are whole numbers. Specific whole numbers, there is only one pair x,y for each given pair n,z

    So, if n=11227 and z=11016, what are x and y? Plugging in a 2 or 3 doesn't result in whole numbers.

    What I need is a formula that I can plug any pair n,z into in order to get x and y.

    You're right in that x and y aren't functions of n or z. It's the other way around, n and z are both functions of x and y. But n and z are what's given. Its like Jeopardy, you're given the answer and have to come up with the question.
    asterisk_man's Avatar
    asterisk_man Posts: 476, Reputation: 32
    Full Member
     
    #5

    Mar 7, 2007, 01:01 PM
    n=x*y
    z=(x-1)*(y-1)
    n-z=x+y-1

    from the first equ:
    y=x/n
    put this into the third equ:
    n-z=x+x/n-1
    (n-z)=x*(1+1/n)
    x=(n-z)/(1+1/n)
    put it back into the first equation
    n=y(n-z)/(1+1/n)
    y=n(1+1/n)/(n-z)

    so
    x=(n-z)/(1+1/n)
    y=n(1+1/n)/(n-z)=-(n+1)/(z-n)
    I'm not sure how these are supposed to give whole numbers. Only for very specific n,z will you get whole numbers. Not sure at the moment how we'd know which combo of n,z give whole x,y.

    for the n,z you gave I get x,y=2368897/11228,11228/211
    you will note, for example, that x*y=11227=n but x,y are obviously not whole numbers.

    is the question, "find the values for n,z,x,y such that these equations hold and all are whole numbers"?

Not your question? Ask your question View similar questions

 

Question Tools Search this Question
Search this Question:

Advanced Search

Add your answer here.


Check out some similar questions!

A formula [ 6 Answers ]

Three-fourths of a number increased by 1 is 7. what is the number.

Formula [ 1 Answers ]

IF( and that is a big if) light were to decelerate at the rate of I 13billionth of its original velocity per year , what would be the formula for computing the distance to the most distant observable objects in the universe: FRED

Formula problem [ 6 Answers ]

Hi everyone, I've just started my business studies degree and an getting to grips with using excel properly. I've uploaded the spreadsheet I'm working on. I'm trying to work out the discount values in column E. If anyone can help I'd really appreciate it, I'm hoping it's just my syntax that's...

Rearranging a formula [ 1 Answers ]

Hello, Does anyone know how to rearrange the formula: A= 2*pi*r*h + pi*r^2 Make r the subject, I have an answer, but it doesn't match others answers? Many thanks

Formula for vent [ 5 Answers ]

I need to know the formula for joining two vertical pipes with a 45 angle pipe. Need formula for length of the 45 pipe. Thanks for any help!


View more questions Search