We want to create a divisible sequence of length
l
starting from a number
N
. In a Divisible Sequence, every term (except the starting number) is a divisor of the previous term. Examples of divisible sequences of length 3 starting with 10 are:
1 0 , 1 0 , 1 0
1 0 , 1 0 , 5
1 0 , 1 0 , 1
1 0 , 5 , 5 ... etc.
Find the number of divisible sequences of length 5 starting from the number 360.
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.
We first note that 3 6 0 = 2 3 ⋅ 3 2 ⋅ 5 .
Let's define the sequence of numbers to be n 0 , n 1 , n 2 , n 3 , n 4 . Let a k be the exponent of 2 on the number n k n k − 1 , let b k be the exponent of 3 on the number n k n k − 1 , and let c k be the exponent of 5 on the number n k n k − 1
Clearly, a 1 + a 2 + a 3 + a 4 ≤ 3 , b 1 + b 2 + b 3 + b 4 ≤ 2 , and c 1 + c 2 + c 3 + c 4 ≤ 1 ; also, all of the a 1 , a 2 , ⋯ c 3 , c 4 are all non-negative integers. Thus we just need to count the number of possible ways for each of the three above cases, and multiply them together.
Case 1: a 1 + a 2 + a 3 + a 4 ≤ 3
Let a 5 be a number such that a 1 + a 2 + a 3 + a 4 + a 5 = 3 . We now use sticks and stones to determine that the number of ways for this to happen is ( 3 7 ) = 3 5 .
Case 2: b 1 + b 2 + b 3 + b 4 ≤ 2
Let b 5 be a number such that b 1 + b 2 + b 3 + b 4 + b 5 = 2 . We now use sticks and stones to determine that the number of ways for this to happen is ( 2 6 ) = 1 5 .
Case 3: c 1 + c 2 + c 3 + c 4 ≤ 1
Let c 5 be a number such that c 1 + c 2 + c 3 + c 4 + c 5 = 1 . We now use sticks and stones to determine that the number of ways for this to happen is ( 1 5 ) = 5 .
Thus our final answer is 3 5 × 1 5 × 5 = 2 6 2 5 .
Let S n = 1 + 2 + . . . + n
The answer to this problem is
( S 2 + 2 S 1 ) ( S 3 + 2 S 2 + 3 S 1 ) ( S 4 + 2 S 3 + 3 S 2 + 4 S 1 ) = 5 × 1 5 × 3 5 = 2 6 2 5
Tools needed :
In my solution, I will use 1 0 instead of 3 6 0 for clearer explanation
Analyse :
Prime Factorization : 1 0 = 2 × 5
Divisors of 10: d ( 1 0 ) = ( 1 + 1 ) ( 1 + 1 ) = 4
Solution :
Number of Divisible Sequence of length 2,
This will just be the number of sequence of 1 0 , which is ( 2 ) ( 2 ) = 4 .
Number of Divisible Sequence of length 3,
The second term (counted backwards) can change to other divisors of 1 0 , so there will be
( 2 ) ( 2 ) + ( 2 ) ( 1 ) + ( 1 ) ( 2 ) + ( 1 ) ( 1 ) = ( 1 + 2 ) ( 1 + 2 ) sequences.
Number of Divisible Sequence of length 4,
The third term (counted backwards) can also change to other divisors of 1 0 , so there will be
( 1 + 2 ) ( 1 + 2 ) + ( 1 + 2 ) ( 1 ) + ( 1 ) ( 1 + 2 ) + ( 1 ) ( 1 ) = ( 1 + 2 + 1 ) ( 1 + 2 + 1 ) sequences.
Number of Divisible Sequence of length 5,
The forth term (counted backward) can also change to other divisors of 1 0 , so there will be
( 1 + 2 + 1 ) ( 1 + 2 + 1 ) + ( 1 + 2 + 1 ) ( 1 ) + ( 1 ) ( 1 + 2 + 1 ) + ( 1 ) ( 1 ) = ( 1 + 2 + 1 + 1 ) ( 1 + 2 + 1 + 1 ) = 2 5 sequences.
I hope you can derive the answer yourself from this solution, good luck!
For generality, let n = 5 be the length of the divisible sequence a 1 , … , a n and let a 1 : = 3 6 0 = 2 3 ⋅ 3 2 ⋅ 5 1 = : p 1 n 1 ⋅ … ⋅ p m n m . The number of divisible sequences of length n given a 1 shall be called N .
Each element in the sequence divides the previous element, thus all elements are divisors of a 1 and share the same prime factors a k = p 1 b 1 k ⋅ … ⋅ p m b m k , 1 ≤ k ≤ n Once again because each element in the sequence divides the previous element, the exponents b i k must be decreasing, non-negative sequences (though not necessarily strictly decreasing): n i = b i 1 ≥ … ≥ b i n ≥ 0 , 1 ≤ i ≤ m ( ∗ ) Note that any different sequence of exponents b i k leads to a different divisible sequence - we only need to count the number of different sequences for each exponent and multiply them together!
Let's consider a sequence of exponents ( ∗ ) . How can we generate such a sequence? The elements may decrease by different amounts each step, that makes it seem rather arbitrary.
Let's try a stars-and-bars approach : Think of the elements as bins, denote a decrease by − 1 by a star and greater decreases by multiple stars. We see that our problem has been reduced to placing n i identical stars into n distinct bins, leading to ( n − 1 n − 1 + n i ) different sequences ⇒ N = i = 1 ∏ m ( n − 1 n − 1 + n i )
The number of divisible sequences of length n = 5 given a 1 = 3 6 0 = 2 3 ⋅ 3 2 ⋅ 5 1 is N = ( 4 4 + 3 ) ⋅ ( 4 4 + 2 ) ⋅ ( 4 4 + 1 ) = 2 6 2 5
So I was wondering how to simply generate the sequences from 360-X1-X2-X3-X4-X5.... but faced combinatoric insanity that I simply couldn't deal with.
I then wondered what would happen if I started at the end and worked my way back to the solution,and how many ways to get to the start from the end. These problems are usually easier to think of that way. What are the possible ending numbers?
Subsets of 360 = (2^3* 3^2 *5), such as 2 * 3 * 5, 4 * 3 * 5, 1 * 1 * 1(all exponents zero). I then need to work my way up to 360 by placing multiples between the end divisor, and intermediate divisors, and the final number. After each factor(s) I add, I reach a higher number that will be a divisor of 360.
Or. How many ways can I place the factors needed to reach 360 from the end divisor, in the gaps between numbers where the step-ups go.
360 _ X1 _ X2 _ X3 _ End Divisor.
This is thus a stars and bars problem for each different end divisor. How many ways can you place the 2's to get up to 360, multiply by the number of ways to place the remaining 3's, and the remaining 5.
Now one can simply plug in the formula for stars and bars with a sum for each divisor, making this a triple sum.
L a T e X
Thankfully this sum is easy, each component of the sum can be done separately and multiplied, thus the sum is
(That's where I need a nice formula for adding up closely related combination sums...)
Use sage
sage: s = 0
sage: for a in divisors(360):
....: for b in divisors(a):
....: for c in divisors(b):
....: s += len(divisors(c))
....:
sage: s
2625
First of all, it is important to note that 3 6 0 = 2 3 × 3 2 × 5
Now, let us make 5 boxes: A, B, C, D and E.
We shall insert all the prime factors into these five boxes to represent the divisible sequences.
The rule here is that the first number in the sequence = 1 × the numbers in box A (if there is no number in a box, then we just assume it is a 1 in the box).
The second number in the sequence = 1 × the numbers in box A × the numbers in box B
And so on and so forth, so that the fifth and final number in the sequence = 1 × the numbers in box A × the numbers in box B × the numbers in box C × the numbers in box D × the numbers in box E
In this way, since all the prime factors of 360 are in the boxes, the final number must be 360.
As we can see, the sequences created by this method will be the reverse of the sequences required by the question, but we can just reverse the sequences at the end.
We have 6 elements to put into the 5 boxes: three 2's, two 3's and one 5.
Either the 2's can all be put into separate boxes, or two into one box and one into another, or all three into one box.
Either both 3's are put into one box, or they are put into two separate boxes.
So, there are six scenarios, let us consider each one in turn.
*In the calculations, the first figure refers to the number of possibilities for the 2's, the second for the 3's, and the third for the 5's.
1 . All three 2's are placed into separate boxes and both 3's are placed into separate boxes.
( 3 5 ) × ( 2 5 ) × ( 1 5 ) = 5 0 0
2 . All three 2's are placed into separate boxes and both 3's are placed into the same box.
( 3 5 ) × ( 1 5 ) × ( 1 5 ) = 2 5 0
3 . Two 2's are placed into the same box and the other 2 into another box, and both 3's are placed in separate boxes.
( ( 5 2 ) × 2 ! ) × ( 2 5 ) × ( 1 5 ) = 1 0 0 0
The reason we multiplied the first figure by 2! is because the combinations are distinct i.e. having two 2's in box A and one 2 in box B is not the same as having one 2 in box A and two 2's in box B.
4 . Two 2's are placed into the same box and the other 2 into another box, and both 3's are placed in the same box.
( ( 5 2 ) × 2 ! ) × ( 1 5 ) × ( 1 5 ) = 5 0 0
5 . All three 2's are placed into the same box and both 3's are placed into separate boxes.
( 1 5 ) × ( 2 5 ) × ( 1 5 ) = 2 5 0
6 . All three 2's are placed into the same box and both 3's are placed in the same box.
( 1 5 ) × ( 1 5 ) × ( 1 5 ) = 1 2 5
So the total number of possibilities is 5 0 0 + 2 5 0 + 1 0 0 0 + 5 0 0 + 2 5 0 + 1 2 5 = 2 6 2 5
Instead of thinking of 3, , , , I though of 3, , , , ,0 then write the differences so 3,2,2,1,0,0 gives 1,0,1,1,0 and this always has to sum to 3 so there are 7c4 ways. It follows that the answer is 7c4 6c4 5c4=2625
Problem Loading...
Note Loading...
Set Loading...
As proved here , the number of solutions of 0 ≤ a 1 ≤ a 2 ≤ a 3 ≤ ⋯ ≤ a m ≤ a over integers is ( a m + a )
Now, clearly as the sequence starts with 360, first number is 360. We have to select 4 divisors of 360 now.
3 6 0 = 2 3 3 2 5
Let the exponents of 2 in the required four numbers be a 1 , a 2 , a 3 , and a 4 respectively.
Now, as the numbers are part of divisible sequence,
0 ≤ a 1 ≤ a 2 ≤ a 3 ≤ a 4 ≤ 3 .
Hence, ( 3 7 ) ways.
Similarly, for choosing exponents of 3 , there are ( 2 4 + 2 ) = ( 2 6 ) ways, and for choosing exponents of 5 in the numbers is ( 1 4 + 1 ) = ( 1 5 ) ways.
Hence, total number of such sequences possible is ( 3 7 ) ( 2 6 ) ( 1 5 ) = 2 6 2 5