A single domino is a rectangular tile divided into two square ends marked with spots. A domino set of order n consists of all the domino tile combinations with spot counts from 0 to n inclusive.
T ( n ) is the sum of the totals of the two spot counts on each tile in the domino set of order n , and P ( n ) is the sum of the products of the two spot counts on each tile in the domino set of order n .
For example, a domino set of order 2 would consist of the domino tiles with numbers ( 0 , 0 ) , ( 0 , 1 ) , ( 0 , 2 ) , ( 1 , 1 ) , ( 1 , 2 ) , ( 2 , 2 ) , such that T ( 2 ) P ( 2 ) = ( 0 + 0 ) + ( 0 + 1 ) + ( 0 + 2 ) + ( 1 + 1 ) + ( 1 + 2 ) + ( 2 + 2 ) = 1 2 = ( 0 ⋅ 0 ) + ( 0 ⋅ 1 ) + ( 0 ⋅ 2 ) + ( 1 ⋅ 1 ) + ( 1 ⋅ 2 ) + ( 2 ⋅ 2 ) = 7 . What is n → ∞ lim P ( n ) n T ( n ) ?
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.
Great solution! This is similar to how I did it.
Note that
T ( n ) = j = 0 ∑ n k = j ∑ n ( j + k ) = j = 0 ∑ n ( ( n − j + 1 ) j + 2 n − j + 1 ( j + n ) ) = j = 0 ∑ n 2 ( 2 n + 3 ) j − 3 j 2 + n ( n + 1 ) = 2 1 ( 2 n ( n + 1 ) ( 2 n + 3 ) − 3 × 6 n ( n + 1 ) ( 2 n + 1 ) + n ( n + 1 ) 2 ) = 2 n ( n + 1 ) ( n + 2 )
and that
P ( n ) = j = 0 ∑ n k = j ∑ n j k = j = 1 ∑ n k = j ∑ n j k = j = 1 ∑ n j ( 2 n − j + 1 ( j + n ) ) = 2 1 j = 1 ∑ n ( n ( n + 1 ) j + j 2 − j 3 ) = 2 1 ( 2 n 2 ( n + 1 ) 2 + 6 n ( n + 1 ) ( 2 n + 1 ) − 4 n 2 ( n + 1 ) 2 ) = 2 1 ( 4 n 2 ( n + 1 ) 2 + 6 n ( n + 1 ) ( 2 n + 1 ) ) = 2 4 n ( n + 1 ) ( n + 2 ) ( 3 n + 1 )
Therefore,
n → ∞ lim P ( n ) n T ( n ) = n → ∞ lim 2 n ( n + 1 ) ( n + 2 ) ( 3 n + 1 ) 2 4 n 2 ( n + 1 ) ( n + 2 ) = n → ∞ lim 3 n + 1 1 2 n = n → ∞ lim 3 + n 1 1 2 = 4 Divide up and down by n
Very nice solution!
Log in to reply
Thanks. No upvote?
Log in to reply
I just did, thanks for the reminder.
I did a similar method, but found it easier to sum k from 0 to j. (Saying WLOG k <= j rather than k >= j ).
By arranging the dominoes, we can write T ( n ) as : ∑ i = 0 n ( ∑ j = i n i + j ) and P ( n ) as ∑ i = 0 n ( ∑ j = 0 i i ⋅ j )
Hence T ( n ) = ∑ i = 0 n ( n + i − 1 ) ∗ i + ( ∑ j = i n j ) = ∑ i = 0 n ( ( n + i − 1 ) ∗ i + 2 n ( n + 1 ) − 2 i ( i − 1 ) = 2 n ( n + 1 ) + ∑ i = 0 n ( n − 2 3 ) ∗ i 2 + 2 i = 2 n ( n 2 + 3 n + 2 ) = 2 n ( n + 1 ) ( n + 2 )
Similarly, P ( n ) = ∑ i = 0 n i ⋅ ( ∑ j = i n j ) = ∑ i = 0 n 2 i 2 ( i + 1 ) = 2 1 ∑ i = 0 n i 3 + i 2 = 6 n ( n + 1 ) ( 2 n + 1 ) + 4 ( n ( n + 1 ) ) 2 = 2 4 n ( n + 1 ) ( n + 2 ) ( 3 n + 1 )
Thus :
n − > ∞ lim P ( n ) n T ( n ) = n − > ∞ lim n ( n + 1 ) ( n + 2 ) ( 3 n + 1 ) 1 2 n 2 ( n 2 + 3 n + 2 ) = n − > ∞ lim 3 n 4 1 2 n 4 = 3 1 2 = 4
Nicely done!
Since we only want to compute n → ∞ lim P ( n ) n T ( n ) it is not necessary to calculate T ( n ) and P ( n ) in full detail. We will estimates them (sufficiently).
Preamble: (what you need to know)
We will make use of the telescope-identity a n − a 0 = k = 1 ∑ n ( a k − a k − 1 ) which can simply proven by canceling the middle terms (See A1).
and we will use the following "antiderivitive"-rule, which is a discrete equivalent to ∫ t l d t = l + 1 1 t l + 1 :
Let n be a non-negative integer, then F ( n ) = k = 1 ∑ n k l is a polynomial of degree l + 1 with leading coefficient l + 1 1 . (See A2.)
Furthermore if f ( k ) is a polynomial of degree l with leading coefficient a l , then F ( n ) = k = 1 ∑ n f ( k ) is a polynomial of degree l + 1 leaded by the coefficient l + 1 a l .
The Solution:
By the telescope-identity we get T ( n ) = T ( 0 ) + k = 1 ∑ n ( T ( k ) − T ( k − 1 ) ) and the same for P instead of T . But T ( k ) − T ( k − 1 ) is just sum for the domino pairs containing k which are the k + 1 dominos ( k , j ) for 0 ≤ j ≤ k .
So the sum is
∑
j
=
0
k
(
k
+
j
)
=
(
k
+
1
)
k
+
∑
j
=
0
k
j
and using "antiderivitive"-rule we get
T
(
k
)
−
T
(
k
−
1
)
=
(
k
+
1
)
k
+
j
=
0
∑
k
j
=
k
2
+
k
+
(
2
1
k
2
+
r
1
(
k
)
)
=
2
3
k
2
+
r
~
1
(
k
)
with
r
~
1
(
k
)
a degree 1 or less polynomial. And hence
T
(
n
)
=
T
(
0
)
+
k
=
1
∑
n
(
T
(
k
)
−
T
(
k
−
1
)
)
=
T
(
0
)
+
k
=
1
∑
n
(
2
3
k
2
+
r
~
1
(
k
)
)
=
T
(
0
)
+
3
1
⋅
2
3
n
3
+
k
=
1
∑
n
r
~
1
(
k
)
=
2
1
n
3
+
r
T
(
n
)
where
r
T
(
n
)
is a polynomial with degree 2 or less.
For P ( k ) − P ( k − 1 ) is the sum of the product of the domino pairs ( k , j ) and thus: P ( k ) − P ( k − 1 ) = j = 0 ∑ k k ⋅ j = k ⋅ j = 0 ∑ k j = k ⋅ ( 2 1 k 2 + r 1 ( k ) ) = 2 1 k 3 + r 2 ( k ) with r 2 ( k ) a polynomial of degree 2 or less.
Using the same Idea for P we estimate P ( n ) = P ( 0 ) + k = 1 ∑ n ( P ( k ) − P ( k − 1 ) ) = P ( 0 ) + k = 1 ∑ n ( 2 1 k 3 + r 2 ( k ) ) = P ( 0 ) + 4 1 ⋅ 2 1 n 4 + k = 1 ∑ n r 2 ( k ) = 8 1 n 4 + r P ( n ) with r P ( n ) a polynomial of degree 3 or less.
Since r T ( n ) and r P ( n ) are polynomials of degree 2 and 3 respectively, n 3 r T ( n ) and n 4 r P ( n ) tend to be 0 for n → ∞ .
Now we calculate n → ∞ lim P ( n ) n T ( n ) = n → ∞ lim 8 1 n 4 + r P ( n ) n ( 2 1 n 3 + r T ( n ) ) = n → ∞ lim n 4 ( 8 1 + n 4 r P ( n ) ) n 4 ( 2 1 + n 3 r T ( n ) ) = 4
Appendix
A1: k = 1 ∑ n ( a k − a k − 1 ) = ( k = 1 ∑ n a k ) − ( k = 1 ∑ n a k − 1 ) = k = 1 ∑ n a k − k = 0 ∑ n − 1 a k = a n + ( k = 1 ∑ n − 1 a k ) − ( k = 1 ∑ n − 1 a k ) − a 0 = a n − a 0
A2: Using the binomial theorem ( a + b ) l = i = 0 ∑ l ( i n ) a l − i b i we will get the identity k l + 1 − ( k − 1 ) l + 1 = k l + 1 − i = 0 ∑ l + 1 ( i l + 1 ) k l + 1 − i ( − 1 ) i = i = 1 ∑ l + 1 ( i l + 1 ) k l + 1 − i ( − 1 ) i + 1 and with above telescope-identity n l + 1 = n l + 1 − 0 l + 1 = k = 1 ∑ n k l + 1 − ( k − 1 ) l + 1 = k = 1 ∑ n i = 1 ∑ l + 1 ( i l + 1 ) k l + 1 − i ( − 1 ) i + 1 = k = 1 ∑ n ( ( l + 1 ) k l + r ( k ) ) So every Monomial n l + 1 is just a sum of a polynomial p ( k ) of degree l with leading coefficient l + 1 . The r ( k ) is the rest-term which is of degree l − 1 .
As polynomials of degree j the p j ( k ) : = i = 1 ∑ j + 1 ( i j + 1 ) k j + 1 − i ( − 1 ) i + 1 for different j are indepentent and k l is just a combination of the ones with degree j ≤ l . The leading coefficient for p l ( k ) have to be l + 1 1 (why?). Hence k = 1 ∑ n k l = P ( n ) is the same combination of the k = 1 ∑ n p j ( k ) and therefore a Polynomial of degree l + 1 with leading coefficient l + 1 1 .
Integer Sequence Database and Wolfram are needed for this to work.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
|
Nice job!!! Upvote here
Log in to reply
Very simple. I always tend to complicate things :)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 |
|
added this to the end of your script
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
|
This is numpy solution w/ much faster processing
Problem Loading...
Note Loading...
Set Loading...
Let k , for 0 ≤ k ≤ n , be one of the numbers in the domino set of order n . Then the tiles containing k are ( 0 , k ) , ( 1 , k ) , … ( k , k ) , … ( n , k ) . There are n + 1 such tiles, so due to the one double tile the number k will appear on the tiles exactly n + 2 times. This gives us a formula for T ( n ) :
T ( n ) = ( n + 2 ) ( 1 + 2 + 3 + … + n ) = ( n + 2 ) ∑ k = 0 n k = ( n + 2 ) [ 2 n ( n + 1 ) ] = 2 n ( n + 1 ) ( n + 2 )
To generate a formula for P ( n ) , we multiply ( 0 + 1 + 2 + … + n ) ( 0 + 1 + 2 + … + n ) = ( 0 ⋅ 0 ) + ( 0 ⋅ 1 ) + ( 1 ⋅ 0 ) + ( 0 ⋅ 2 ) + ( 1 ⋅ 1 ) + ( 2 ⋅ 0 ) + … + ( n ⋅ n ) . This gives us all the terms we need, but every product not of the form ( k ⋅ k ) is represented twice.
To get around this, we add in a second set of ( k ⋅ k ) 's, so that now every term is included twice, and then take half of that sum.
P ( n ) = 2 1 [ ( 0 + 1 + 2 + … + n ) ( 0 + 1 + 2 + … + n ) + ( 1 ⋅ 1 + 2 ⋅ 2 + 3 ⋅ 3 + … + n ⋅ n ) ] = 2 1 [ ( ∑ k = 0 n k ) 2 + ∑ k = 0 n k 2 ] = 2 1 ( 4 n 2 ( n + 1 ) 2 + 6 n ( n + 1 ) ( 2 n + 1 ) ) = 2 4 n ( n + 1 ) [ 3 n ( n + 1 ) + 2 ( 2 n + 1 ) ] = 2 4 n ( n + 1 ) ( n + 2 ) ( 3 n + 1 )
Then we have
P ( n ) n ⋅ T ( n ) = 2 4 n ( n + 1 ) ( n + 2 ) ( 3 n + 1 ) 2 n 2 ( n + 1 ) ( n + 2 ) = n ( n + 1 ) ( n + 2 ) ( 3 n + 1 ) 1 2 n 2 ( n + 1 ) ( n + 2 ) = 3 n + 1 1 2 n
and so
lim n → ∞ P ( n ) n ⋅ T ( n ) = lim n → ∞ 3 n + 1 1 2 n = 4