SOLUTION: Alec and Beau race to compute 1 + 2 + 3 + ••• + n. Alec skips two numbers and gets a sum of 92. Beau double-counts two numbers and gets a sum of 145. What is the value of n?

Algebra ->  Inequalities -> SOLUTION: Alec and Beau race to compute 1 + 2 + 3 + ••• + n. Alec skips two numbers and gets a sum of 92. Beau double-counts two numbers and gets a sum of 145. What is the value of n?      Log On


   



Question 1032955: Alec and Beau race to compute 1 + 2 + 3 + ••• + n. Alec skips two numbers and gets a sum of 92. Beau double-counts two numbers and gets a sum of 145. What is the value of n?
Found 3 solutions by Edwin McCravy, rothauserc, AnlytcPhil:
Answer by Edwin McCravy(20060) About Me  (Show Source):
You can put this solution on YOUR website!

The sum of the first n integers is expr%28n%2F2%29%2A%281%2B1%28n-1%291%29 or %28n%5E2%2Bn%29%2F2

Let the sum of the two integers that Alec skipped be s1.
Let the sum of the two integers that Beau double counted be s2.

Then we have these two equations:

system%28%28n%5E2%2Bn%29%2F2-s%5B1%5D=92%2C%28n%5E2%2Bn%29%2F2%2B2s%5B2%5D=145%29

Subtracting the first equation from the 2nd:

2s%5B2%5D%2Bs%5B1%5D=53 or s%5B1%5D=53-2s%5B2%5D

Adding the two equations:

n%5E2%2Bn-s%5B1%5D%2B2s%5B2%5D=237

Substituting s%5B1%5D=53-2s%5B2%5D

n%5E2%2Bn-%2853-2s%5B2%5D%29%2B2s%5B2%5D=237

which simplifies to

n%5E2%2Bn%2B4s%5B2%5D-290=0

The discriminant must be a perfect square.

discriminant = 1-4%284s%5B2%5D-290%29

which simplifies to

1161-16s2

Now we use our TI-83 or TI-84 calculator to
find feasible value(s) of s2 that
will cause 1161-16s2 to be a perfect square.

Press the Y= key and put sqrt%281161-16X%29 after \Y1

Press 2ND WINDOW (TBLSET) and set TblStart=0 and ΔTbl=1,
highlight the two Auto's

Press 2ND GRAPH (TABLE)

Use the down arrow key to scroll down until you see
an integer in the Y1 column.

The first place we find one is when X=20 and Y1=29

[ We find one again when X=27 and Y1=27, also
when X=45 and Y1=21, X=50 and Y1=19, etc.,
but we will show that these are not possible.]

For now, let's go with the X=20 and Y1=29.

The X on the calculator is our s2.

So if we take s2 = 20

Substituting in s%5B1%5D=53-2s%5B2%5D, we get s%5B1%5D=13.
Substituting in n%5E2%2Bn-s%5B1%5D%2B2s%5B2%5D=237, we get n2+n-210=0
or (n-14)(n+15)=0 and the only solution n=14

So they raced up 14 term:  

1+2+3+4+5+6+7+8+9+10+11+12+13+14 = %2814%5E2%2B14%29%2F2 = 105

They would have gotten 105 if they had simply added them all
once each.

Since Alec skipped two integers with sum 13, he only got 105-13 = 92

Since Beau doubled two integers with sum 20, he only got 105+40 = 145.

It would not matter what two integers they skipped or double-counted,
as long as Alec skipped two that had sum 13 and Beau double counted
two that had sum 20.

[We can rule out the other numbers we found on the calculator
since s%5B1%5D=53-2s%5B2%5D, s%5B1%5D%3E0 implies s%5B2%5D%3C26.5]

Edwin

Answer by rothauserc(4718) About Me  (Show Source):
You can put this solution on YOUR website!
The sum of n consecutive integers is given by the following formula
:
Sn = n(n+1) / 2
:
therefore
:
92 < n(n+1) / 2 < 145
:
184 < n(n+1) < 290
:
there are two pairs of integers that satisfy this inequality
:
(14, 15) and (15, 16)
:
*************
n is 14 or 15
*************
:

Answer by AnlytcPhil(1807) About Me  (Show Source):
You can put this solution on YOUR website!

The first solution above is correct, however it is too
complicated and also involves the use of calulator
to do lots of trial and error. The second only narrows
down the potential solutions to 14,15 and 16. He states
that it is either 14 or 15, but doesn't rule out 16.
Here is the best complete solution:


Let the answer be the counting number n.
The sum of the first n counting numbers is n%28n%2B1%29%2F2.

The 92 that Alex got was between

the sum of the counting numbers minus the sum of the two
smallest possible counting numbers 1 and 2, which is 3

and

the sum of the counting numbers minus the sum of the largest two
possible counting numbers n and n-1, which is 2n-1.

n%28n%2B1%29%2F2-3%3C=92%3C=n%28n%2B1%29%2F2-%282n-1%29
I went through, but won't go through here, the solution to that
inequality but its solution is

%281%2Bsqrt%28365%29%29%2F2%3C=n%3C=%28sqrt%28761%29-1%29%2F2

or approximately:

13.2931%3C=n%3C=15.0739

So n is either 14 or 15.

The sum of the first 14 counting numbers is

14%2A15%2F2=105 which is odd.

The sum of the first 15 counting numbers is
15%2A16%2F2=120 which is even. Since Beau
double-counted two counting numbers he in effect
added an even number to the sum of the first n
counting numbers. Therefore since he got 145, an odd
number, he could only have in effect added an
even number to an odd sum of the first n
counting numbers. Hence n=14 is the ONLY solution.

Phil