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 ) are all valid arithmetic progressions of length 4.
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.
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?
I drew a graph and used Pick's Theorem.
With a as the horizontal axis and 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 = 7 0 a + 8 d = 1 a + 8 d = 7 0
The corners of this parallelogram are ( 1 , 0 ) , ( 7 0 , − 8 6 9 ) , ( 7 0 , 0 ) , ( 1 , 8 7 0 ) .
Two of these are not lattice points , so we will chop a little triangle off those corners, giving the hexagon ( 1 , 0 ) , ( 6 5 , − 8 ) , ( 7 0 , − 8 ) , ( 7 0 , 0 ) , ( 6 , 8 ) , ( 1 , 8 ) . The chopped-off areas contain no interior points because their d -dimension was less than 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 = 4 2 .
The area of the figure is the parallelogram area 6 9 ⋅ 8 6 9 minus the two small triangles, each 2 1 ⋅ 5 ⋅ 8 5 , giving A = 5 9 2
By Pick's Theorem, I = 5 9 2 − 2 1 4 2 + 1 = 5 7 2 , and then the total number of points is I + B = 5 7 2 + 4 2 = 6 1 4 .
Nice way to put it!
Am using up my publish because this approach generalizes fairly easily: let N = the range of integers, L = the length of the a.p., and N = q ( L − 1 ) + r where q and r are the quotient and remainder of L − 1 N .
Then going through the above method gives us: A = L − 1 N 2 − r 2 B = q + r + q + q + r + q so I + B = A + 2 B + 1 = L − 1 N 2 − r 2 + 2 q + r + 1 = q ( N + 1 ) + ( q + 1 ) ( r + 1 )
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 = 6 9 , L = 9 , q = 8 , r = 5 gives 8 ⋅ 7 0 + 9 ⋅ 6 = 6 1 4 .
Neat approach.
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?
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....
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 = 7 0 − 8 d
Where there are n possible sequences with a difference of d .
To calculate the number of possible sequences with a positive difference we use:
i = 1 ∑ 8 7 0 − 8 i = 2 7 2
To account for a negative difference, we times by 2, and for a difference of 0, we add 70. So the final answer is:
2 7 2 ⋅ 2 + 7 0 = 6 1 4
I have found generalization of this explained here How Many A.Ps?Theory
The question 'How many arithmetic progressions of length t are there, such that the terms are integers from 1 to n ?'
The formula is n + ( p + 1 ) [ 2 ( n − t + 1 ) − p ( t − 1 ) ] [where [ t n ] = p ]
Thus here the answer is 7 0 + ( 7 + 1 ) [ 2 ( 7 0 − 9 + 1 ) − 7 ( 9 − 1 ) ] = 7 0 + 8 ∗ [ 2 ∗ 6 2 − 5 6 ] = 6 1 4
Firstly, let us note that if the last term of the progression belongs in the interval [ 1 , 7 0 ] 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 terms of the progressions in order to find all of them.
For illustrative purposes, let us denote d as the difference between 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 , due to the fact that d can be negative as well, giving the same progressions with reversed terms.
With inspection, we may notice that d can not be greater than 8 (or lower than − 8 for that matter), due to the fact that if d = 9 , the best case scenario we could get would be the progression with a last term a 9 = 9 ⋅ 8 + 1 = 7 3 , meaning that it does not belong to the interval, whereas for d = 8 the last term would be a 9 = 8 ⋅ 8 + 1 = 6 5 , which is in the interval.
Therefore, we have 9 possible cases for d :
Case 1
d = 0
In this case we have 7 0 different progressions since all the terms are the same and are integer values in the interval [ 1 , 7 0 ] , which are exactly 7 0 . 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 ) ) .
Case 2:
d = 1
The last term of the very first progression formed this way would be 8 ⋅ 1 + 1 = 9 , whereas in the last it would be 7 0 . Since d is constant, the only thing changing in the progressions in-between are the first terms, which change by 1 . Therefore, the only possible last terms with d = 1 are the last terms in the interval [ 9 , 7 0 ] (considering only the integer value of it of course), which gives us 6 2 last terms and 6 2 progressions. Thus, the total number of progressions with d = ± 1 is 1 2 4 .
Case 3:
d = 2
Similarly to the previous case, we get the last terms of the first and last progressions, which are 1 7 and 7 0 . Thus, there are as many progressions as the number of integers in the interval [ 1 7 , 7 0 ] is. Thus, for d = ± 2 we have a total of 1 0 8 progressions.
⋮
To avoid repeating myself, we use the same method to find the number of progressions for d = ± 3 , ± 4 , ± 5 , ± 6 , ± 7 , ± 8 .
Finally, that gives us a total of 1 2 4 + 1 0 8 + 9 2 + 7 6 + 6 0 + 4 4 + 2 8 + 1 2 + 7 0 = 6 1 4 arithmetic progressions with terms that are integers from 1 to 7 0 .
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
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.
Problem Loading...
Note Loading...
Set Loading...
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.