For positive integers m and n , let
f ( m , n ) = a 1 = 1 ∑ m ( a 2 = 1 ∑ a 1 ( a 3 = 1 ∑ a 2 ( ⋯ ( a n − 1 = 1 ∑ a n − 2 ( a n = 1 ∑ a n − 1 a n ) ) ⋯ ) ) ) .
How many values of n ≤ 1 0 0 0 satisfy f ( 1 1 , n ) ∣ f ( 1 2 , n ) ?
This problem is posed by Bob K .
Details and assumptions
For n = 1 , f ( m , n ) = ∑ a 1 = 1 m a 1 .
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.
Yup! Great simple solution. :D
We have f ( m , 1 ) = r = 1 ∑ m r = 2 1 m ( m + 1 ) = ( 2 m + 1 ) If n ≥ 1 and f ( m , n ) = ( n + 1 m + n ) then f ( m , n + 1 ) = r = 1 ∑ m f ( r , n ) = r = 1 ∑ m ( n + 1 r + n ) = ( n + 2 m + n + 1 ) Hence, by induction on n , f ( m , n ) = ( n + 1 m + n ) , and hence f ( 1 1 , n ) f ( 1 2 , n ) = 1 1 n + 1 2 Thus we want to know the number of n between 1 and 1 0 0 0 such that 1 1 divides n + 1 2 , namely such that n ≡ 1 0 modulo 1 1 . Possible solutions are 1 0 , 2 1 , … , 1 0 0 0 = 1 0 + 9 0 × 1 1 , and so there are 9 1 values of n .
f(m, n) is equivalent to the binomial coefficient of (n + m, m - 1). Therefore:
f ( 1 1 , n ) = b i n ( 1 1 + n , 1 0 ) = 1 0 ! ∗ ( n + 1 ) ! ( 1 1 + n ) ! f ( 1 2 , n ) = b i n ( 1 2 + n , 1 1 ) = 1 1 ! ∗ ( n + 1 ) ! ( 1 2 + n ) !
"|" denotes "is divisible by".
Dividing these two equations and applying some simple algebra:
f ( 1 2 , n ) / f ( 1 1 , n ) = 1 1 n + 1 2
Clearly this only holds when n = = 1 0 ( m o d 1 1 ) , and there are 91 such values below 1000.
Examining the definition for f , we observe that if n > 1 , then f ( m + 1 , n ) = f ( m , n ) + f ( m + 1 , n − 1 )
Also we find that f ( 1 , n ) = 1 f ( m , 1 ) = ( 1 + 2 + . . . + m )
Now, I recognized this as the iterative rule and the boundary conditions for Pascal's Triangle: each element is the sum of the two elements above it. The general formula for an element of this triangle is f ( m , n ) = ( m − 1 m + n )
To prove this, we can inspect that it fulfils the initial conditions correctly. Also, the iterative step f ( m , n ) + f ( m + 1 , n − 1 ) = ( m − 1 m + n ) + ( m m + n ) = ( m m + n + 1 ) = f ( m + 1 , n )
Moving on, we have f ( 1 2 , n ) = ( 1 1 1 2 + n ) = 1 1 ! ( n + 1 ) ! ( 1 2 + n ) ! = 1 0 ! ( n + 1 ) ( 1 1 + n ) ! 1 1 1 2 + n = f ( 1 1 , n ) 1 1 1 2 + n
So we simply have to find how many values of n satisfy 1 1 ∣ n + 1 2 .
n can range from 1 0 = 1 1 ∗ 1 − 1 to 1 0 0 0 = 1 1 ∗ 9 1 − 1 so there are 9 1 values.
Problem Loading...
Note Loading...
Set Loading...
We can replace the summand a n with ∑ a n + 1 = 1 a n 1 . We are now counting the number of (reversed) sorted vectors of length n + 1 with maximum value m . If we add m − 1 dividers between n + 1 items, we can indicate how many of each value in [ 1 , m ] we pick. There are ( m − 1 n + 1 + m − 1 ) = ( m − 1 n + m ) ways to do this.
So when does ( 1 0 n + 1 1 ) divide ( 1 1 n + 1 2 ) ?
1 0 ! × ( n + 1 ) ! ( n + 1 1 ) ! ∣ 1 1 ! × ( n + 1 ) ! ( n + 1 2 ) !
1 1 ∣ ( n + 1 2 )
1 1 ∣ ( n + 1 )
Since 1 1 divides 1 0 0 1 , the answer is 1 1 1 0 0 1 = 9 1 .