Cantor Sequence

Consider the sequence { 1 / 1 , 1 / 2 , 2 / 1 , 3 / 1 , 2 / 2 , 1 / 3 , } \{ 1/1, 1/2, 2/1, 3/1, 2/2, 1/3, \ldots\} as shown above.

What is the 397 4 th 3974^\text{th} term?

30 60 \frac{30}{60} 30 61 \frac{30}{61} 31 58 \frac{31}{58} 31 59 \frac{31}{59} 32 58 \frac{32}{58} 33 57 \frac{33}{57}

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.

2 solutions

Rushikesh Jogdand
Jun 21, 2016
 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
def Next(_List):
    i=_List[0]
    j=_List[1]
    bl=_List[2]
        # i : numerator
        # j : denominator
        # bl : whether to head Bottom Left or not
    if bl:
        if j==1:
            I=i+1
            J=1
            BL=False
        else:
            BL=True
            I=i+1
            J=j-1
    else:
        if i==1:
            I=1
            J=j+1
            BL=True
        else:
            BL=False
            I=i-1
            J=j+1
    return [I,J,BL]
term=[2,2,False]
count=5
while count!=3974:
        count+=1
        term=Next(term)
print(term[:2])

Chew-Seong Cheong
Jun 20, 2016

Consider the slanting diagonals as rows. We note that the last term of row 1 is 1st term, row 2 is 3rd term, row 3 is 6th term, row 4 is 10th term and so on. This means that the last term of n n th row is the T n T_n th term of the sequence, where T n = n ( n + 1 ) 2 T_n = \dfrac {n(n+1)}2 is the triangular number.

By putting n ( n + 1 ) 2 = 3974 \dfrac {n(n+1)}2 = 3974 n 2 3974 = 89 \implies n \approx \lfloor \sqrt{2 \cdot 3974} \rfloor = 89 . We note that T 88 = 88 89 2 = 3916 T_{88} = \dfrac {88\cdot 89}2 = 3916 and T 89 = 89 90 2 = 4005 T_{89} = \dfrac {89\cdot 90}2 = 4005 . Therefore, the 3974th term is in the 89th row.

We note that for odd n n , the first term (starting from bottom) of n n th row a n , 1 = n 1 a_{n, 1} = \dfrac n1 , the second term a n , 2 = n 1 2 a_{n, 2} = \dfrac {n-1}2 , the third term a n , 3 = n 2 3 a_{n, 3} = \dfrac {n-2}3 , ... a n , k = n ( k 1 ) k \implies a_{n, k} = \dfrac {n-(k-1)}k .

Now, we have n = 89 n=89 and k = 3974 3916 = 58 k = 3974-3916 = 58 , a 89 , 58 = 89 57 58 = 32 58 \implies a_{89, 58} = \dfrac {89-57}{58} = \boxed{\dfrac{32}{58}} .

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...