A Simple Pattern

Number Theory Level pending

In a sequence of 1001 terms, the numbers are arranged in a curious pattern. There are 1 1, 2 2's, 3 3's, and so on. For example, the first 10 terms of the sequence are: 1,2,2,3,3,3,4,4,4,4. What is the last number in the pattern, assuming that the pattern keeps going?

43 42 44 46 45

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

2 solutions

Mahdi Raza
Jun 3, 2020

n ( n + 1 ) 2 > 1001 \dfrac{n(n+1)}{2} > 1001 n > 44.2 n > 44.2 n = 45 \boxed{n = 45}

So we start by looking at the pattern. We see that the 1st term is the last 1, the 3rd term is the last 2, the 6th term is the last 3, and so on. So we can guess that the last term for the number n is 1+2+3+...(n-1)+n.

Solution 1: Brute Force

We now start by testing some values of n. For 10, the answer is 55.

For 20, the answer is 210

For 30, the answer is 465

For 40, the answer is 840

For 50, the answer is 1275

Aha! So the answer has to be between 40 and 50!

Now we test 45, and we get 1035

So the last 45 in the sequence is the 1035th term

We now test 44, and we get 990

So the last 44 in the sequence is the 990th term

So, since the 1001th term is after the 990th term and before the 1035th term, the answer is 45.

Solution 2: inequalities

We can also have solved this without trial and error.

1+2+3+...(n-1)+n>1001

n(n-1)/2>1001

n>44.2

n=45 (Because it has to be the smallest value that satisfies the inequality)

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...