Arithmetic progressions

How many arithmetic progressions of length 9 are there, such that the terms are integers from 1 to 70?

Details and assumptions

An Arithmetic Progression is a sequence of terms such that the difference between the consecutive terms is a constant. ( 1 , 2 , 3 , 4 ) , ( 1 , 1 , 1 , 1 ) , ( 4 , 3 , 2 , 1 ) (1, 2, 3, 4), (1, 1, 1, 1), (4, 3, 2, 1) are all valid arithmetic progressions of length 4.


The answer is 614.

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.

8 solutions

Erik Johnson
Aug 12, 2013

Consider all sequences with common difference 0. There must be 70 of these, from (1,1,1...) to (70, 70, 70...). Then consider all INCREASING sequences of common difference 1. The first such sequence starts with 1, and the last such sequence starts with 62 (To find this out, I just counted back from 70). So there are 62 of these, plus an equal number of decreasing sequences. Continuing, there are 54 increasing sequences of difference 2, 46 sequences of difference 3, with 8 fewer sequences every time the difference was increased, concluding with 6 sequences of difference 8. To get the solution, double the numbers of each non-zero difference progression to account for decreasing sequences, then add 70 for the zero-difference progressions. 70 + 2*(62 + 54 + 46 + 38 + 30 + 22 + 14 + 6) = 614

But then I started wondering "WHY are there 8 fewer sequences every time the difference is increased by 1?" Each progression can be generalized as: [x, x + d, x + 2d, .... x + 8d], which shows that every time you increase d by 1, you increase the final term in the progression by 8. This means you can fit 8 fewer progressions before you hit 70 as the final term.

Moderator note:

This approach considers several cases, with slightly tedious counting. Can you find the total quickly?

Hint: What can you say about the difference between the first and last number of the sequence?

Matt McNabb
Aug 14, 2013

I drew a graph and used Pick's Theorem.

With a a as the horizontal axis and d d as the vertical axis, we are looking for the number of lattice points that lie on or inside the parallelogram bounded by: a = 1 a=1 a = 70 a=70 a + 8 d = 1 a+8d=1 a + 8 d = 70 a+8d=70

The corners of this parallelogram are ( 1 , 0 ) , ( 70 , 69 8 ) , ( 70 , 0 ) , ( 1 , 70 8 ) (1,0), (70, -\frac{69}{8}), (70, 0), (1, \frac{70}{8}) .

Two of these are not lattice points , so we will chop a little triangle off those corners, giving the hexagon ( 1 , 0 ) , ( 65 , 8 ) , ( 70 , 8 ) , ( 70 , 0 ) , ( 6 , 8 ) , ( 1 , 8 ) (1,0), (65, -8), (70, -8), (70, 0), (6, 8), (1, 8) . The chopped-off areas contain no interior points because their d d -dimension was less than 1 1 .

The number of boundary points on this figure can be found by checking each side, again in the order given above (and counting the first corner but not the last for each edge): B = 8 + 5 + 8 + 8 + 5 + 8 = 42 B = 8 + 5 + 8 + 8 + 5 + 8 = 42 .

The area of the figure is the parallelogram area 69 69 8 69 \cdot \frac{69}{8} minus the two small triangles, each 1 2 5 5 8 \frac{1}{2}\cdot 5 \cdot \frac{5}{8} , giving A = 592 A = 592

By Pick's Theorem, I = 592 1 2 42 + 1 = 572 I = 592 - \frac{1}{2}42 + 1 = 572 , and then the total number of points is I + B = 572 + 42 = 614 I + B = 572 + 42 = \boxed{614} .

Moderator note:

Nice way to put it!

Am using up my publish because this approach generalizes fairly easily: let N N = the range of integers, L L = the length of the a.p., and N = q ( L 1 ) + r N = q(L-1)+r where q q and r r are the quotient and remainder of N L 1 \frac{N}{L-1} .

Then going through the above method gives us: A = N 2 r 2 L 1 A = \frac{N^2 - r^2}{L-1} B = q + r + q + q + r + q B = q + r + q + q + r + q so I + B = A + B 2 + 1 = N 2 r 2 L 1 + 2 q + r + 1 = q ( N + 1 ) + ( q + 1 ) ( r + 1 ) \begin{aligned} I + B &= A + \frac{B}{2} + 1 \\ &= \frac{N^2 - r^2}{L-1} + 2q + r + 1 \\ &= q(N+1) + (q+1)(r+1) \end{aligned}

We didn't have to treat as special cases when the corners of the parallelogram are lattice points because it works out the same, with the triangles being degenerate.

Plugging in the numbers for this case, N = 69 N = 69 , L = 9 L = 9 , q = 8 q = 8 , r = 5 r = 5 gives 8 70 + 9 6 = 614 8\cdot 70 + 9 \cdot 6 = 614 .

Matt McNabb - 7 years, 10 months ago

Neat approach.

Kenneth Chan - 7 years, 10 months ago
Aayush Gupta
Aug 12, 2013

d = 0 gives 70 solutions d = 1 gives 62 solutions (How? Try yourself) d =2 gives 54 solutions ..... .... d = 8 gives 6 solutions d =9 and onwards no solution.

However since series can be decreasing; so number of solutions obtained for d =1 to d = 8 need to be multiplied by 2. So, total no. of solutions =[ 6 + 14+...............62 ]* 2 + 70 = 614

how can d=8 gives 6 solution? can u please explain me?

Kameliani Arif - 7 years, 10 months ago

Log in to reply

Start with 1 add 8 (8 times) 1,9,17,25... ends with 65 Keep going up starting with 2 etc. until you get to 7 which ends with 71 so you get 6 possible outcomes....

Brandon Moore - 7 years, 10 months ago
Oliver Welsh
Aug 17, 2013

With a difference of 0, the maximum starting digit is 70. With a difference of 1, the maximum starting number is 62. With a difference of 2, the maximum starting number is 54. Therefore:

n = 70 8 d n = 70 - 8d

Where there are n n possible sequences with a difference of d d .

To calculate the number of possible sequences with a positive difference we use:

i = 1 8 70 8 i = 272 \displaystyle \sum_{i=1}^8 70 - 8i = 272

To account for a negative difference, we times by 2, and for a difference of 0, we add 70. So the final answer is:

272 2 + 70 = 614 272 \cdot 2 + 70 = \fbox {614}

Kalpok Guha
Feb 1, 2015

I have found generalization of this explained here How Many A.Ps?Theory

The question 'How many arithmetic progressions of length t t are there, such that the terms are integers from 1 1 to n n ?'

The formula is n + ( p + 1 ) [ 2 ( n t + 1 ) p ( t 1 ) ] n+(p+1)[2(n-t+1)-p(t-1)] [where [ n t ] = p [\frac {n}{t}]=p ]

Thus here the answer is 70 + ( 7 + 1 ) [ 2 ( 70 9 + 1 ) 7 ( 9 1 ) ] = 70 + 8 [ 2 62 56 ] = 614 70+(7+1)[2(70-9+1)-7(9-1)]=70+8*[2*62-56]= \boxed{614}

Ivan Sekovanić
Aug 25, 2013

Firstly, let us note that if the last term of the progression belongs in the interval [ 1 , 70 ] [1,70] and is an integer, then it is absolutely true that all of the terms of the progression belong to the interval (and are integers). With this in mind, we generally have to find all the 9 t h 9_{th} terms of the progressions in order to find all of them.

For illustrative purposes, let us denote d d as the difference between 2 2 consecutive terms in the arithmetic progression we are taking into consideration at the given time.

Also, to avoid repetition, bear in mind that we will need to double the number of progressions with a positive d d , due to the fact that d d can be negative as well, giving the same progressions with reversed terms.

With inspection, we may notice that d d can not be greater than 8 8 (or lower than 8 -8 for that matter), due to the fact that if d = 9 d=9 , the best case scenario we could get would be the progression with a last term a 9 = 9 8 + 1 = 73 a_{9}=9\cdot8+1=73 , meaning that it does not belong to the interval, whereas for d = 8 d=8 the last term would be a 9 = 8 8 + 1 = 65 a_{9}=8\cdot8+1=65 , which is in the interval.

Therefore, we have 9 9 possible cases for d d :

Case 1

d = 0 d=0

In this case we have 70 70 different progressions since all the terms are the same and are integer values in the interval [ 1 , 70 ] [1,70] , which are exactly 70 70 . In this case, we should not double the number of progressions because we would get the exact same ones all over again ( ( 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 ) = ( 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 ) ) ((1,1,1,1,1,1,1,1,1)=(1,1,1,1,1,1,1,1,1)) .

Case 2:

d = 1 d=1

The last term of the very first progression formed this way would be 8 1 + 1 = 9 8\cdot1+1=9 , whereas in the last it would be 70 70 . Since d d is constant, the only thing changing in the progressions in-between are the first terms, which change by 1 1 . Therefore, the only possible last terms with d = 1 d=1 are the last terms in the interval [ 9 , 70 ] [9,70] (considering only the integer value of it of course), which gives us 62 62 last terms and 62 62 progressions. Thus, the total number of progressions with d = ± 1 d=\pm 1 is 124 124 .

Case 3:

d = 2 d=2

Similarly to the previous case, we get the last terms of the first and last progressions, which are 17 17 and 70 70 . Thus, there are as many progressions as the number of integers in the interval [ 17 , 70 ] [17,70] is. Thus, for d = ± 2 d=\pm2 we have a total of 108 108 progressions.

\vdots

To avoid repeating myself, we use the same method to find the number of progressions for d = ± 3 , ± 4 , ± 5 , ± 6 , ± 7 , ± 8 d=\pm3,\pm4,\pm5,\pm6,\pm7,\pm8 .

Finally, that gives us a total of 124 + 108 + 92 + 76 + 60 + 44 + 28 + 12 + 70 = 614 124+108+92+76+60+44+28+12+70=614 arithmetic progressions with terms that are integers from 1 1 to 70 70 .

Difference:0

1~1 ,2~2......70~70(70 groups)

Difference:1

1~9......62~70(62 groups)

Difference:2

1~17......54~70(54 groups)

Difference:3

1~25......46~70(46 groups)......

There is a pattern:If the difference pluses 1,the number of the progressions will minus 8.Sequence:70,62,54,46,38,30,22,14,6 (difference of 0,1,2,3,4,5,6,7,8).

The sequence of the progression also can be reversed,except the groups of difference of 0.Hence,the number of progressions are

70+2(62+54+46+38+30+22+14+6)=70+544=614

Ans=614

Dani Chen
Aug 12, 2013

So, I'm not sure why this works, but it does. Let x represent (length given - 1). Let n represent the range of integers given.

x = 8, n = 70

What I did was this: 70 + 2(70-x + 70-2x + .... 70 - 8x)

So basically, the last term has to be greater than 0, so you can't have 70 - 9x because that would result in a negative number.

I multiplied everything but the first term by 2, because it could be descending or ascending: (1,2,3,4) vs (4,3,2,1) are two different sequences. However, the first term (70) represents any sequences with 0 being the constant difference.

Then add it up and it'll equal 614.

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...