Consider a graph with vertices . For every integer pair where , there are distinct edges connecting to . No edges intersect. An ant moves along the edges of the graph. Given that it can only move from to if , the number of distinct ways it can move from to is . Find the sum of digits of .
By the way, check out Part II of the problem! It is a lot more challenging... But more challenging = more fun, right?
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.
Let x n denote the number of ways the ant can move from t n to t 1 . Clearly, x 1 = x 2 = 1 .
We can define x n recursively. For every k < n , the number of ways to move from t n to t k is k . Therefore, we can deduce that
x n + 1 = ∑ i = 1 n i x i
We also know that
x n = ∑ i = 1 n − 1 i x i = x n + 1 − n x n
So x n + 1 = ( n + 1 ) x n
We can see that x n = ( n ) ( n − 1 ) ( n − 2 ) . . . ( 3 ) x 2 = 2 n !
A = x 1 5 = 2 1 5 ! = 6 5 3 8 3 7 1 8 4 0 0 0 . The sum of digits of A is therefore 4 5 .