For m > 1 , it can be proven that the integer sequence f m ( n ) = g cd ( n + m , m n + 1 ) has a fundamental period T m . In other words, ∀ n ∈ N , f m ( n + T m ) = f m ( n ) . Find an expression for T m in terms of m , and then give your answer as T 1 2 .
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.
Has the way of entering the response changed? I think this earlier one was better since now you can get the problem out simply by evaluating T12 with a little code or plotting a graph of f12 (n). Also before, it deals with more topics of mathematics such as the evaluation of summations from decomposition in simple fractions. By the way there is a small typographical error towards the end, in the first summation, where you put Tn instead of Tm.
I don't get the earlier version so can you please send me a link to that one?
Log in to reply
Someone edited it into the current form. The old version no longer exists.
Log in to reply
Ya Ok! Also can you please tell me how to use Mathematica?
Relevant wiki: Greatest Common Divisor - Problem Solving
Key fact : g cd ( a , b ) = g cd ( a , b + k a ) for any integer k . This will be used several times in the reasoning below.
First, note that g cd ( m + n , m n + 1 ) = g cd ( m + n , m ( m + n ) − ( m 2 − 1 ) ) = g cd ( m + n , m 2 − 1 ) and likewise g cd ( m + n + T , m ( n + T ) + 1 ) = g cd ( m + n + T , m ( m + n + T ) − ( m 2 − 1 ) ) = g cd ( m + n + T , m 2 − 1 ) . We want to find a positive value for T for which these two expressions are equal independent of the value of n . Obviously, T = m 2 − 1 works because g cd ( m + n + ( m 2 − 1 ) , m 2 − 1 ) = g cd ( m + n , m 2 − 1 ) . But T = m 2 − 1 is also the smallest positive value that works. To see that, suppose T < m 2 − 1 . Choose n = ( m 2 − 1 ) − m . Then g cd ( m + n , m 2 − 1 ) = g cd ( m 2 − 1 , m 2 − 1 ) = m 2 − 1 but g cd ( m + n + T , m 2 − 1 ) = g cd ( m 2 − 1 + T , m 2 − 1 ) = g cd ( T , m 2 − 1 ) ≤ T < m 2 − 1 , which is a contradiction.
We conclude T m = m 2 − 1 and T 1 2 = 1 2 2 − 1 = 1 4 3 .
Relevant wiki: Greatest Common Divisor - Problem Solving
g c d ( n + m , m n + 1 ) = g c d ( n + m , m n + 1 − m ( n + m ) ) = g c d ( n + m , 1 − m 2 ) = g c d ( n + m , m 2 − 1 ) . Clearly this is periodic in n with a period of m 2 − 1 , but we must show that this is the fundamental period. g c d ( n + m , m 2 − 1 ) = m 2 − 1 when m 2 − 1 ∣ n + m , meaning that this value cannot occur more frequently than every m 2 − 1 values of n , proving that the period is fundamental. Lastly, 1 2 2 − 1 = 1 4 3
This is a rusty C program,but it works.Here in main()," i" acts as period T and assuming T<100000 we get the answer 143
int gcd(int a,int b)
{
if(a>b)
{
a=a-b;
gcd(a,b);
}
else if(a<b)
{
b=b-a;
gcd(a,b);
}
else if(a==b)
{
return a;
}
}
int fn(int i)
{
int f=gcd(12+i,12*i+1);
return f;
}
void main()
{
int i,j,flag=0;
for(i=1;i<100000;i++)
{
for(j=1;j<100;j++)
{
if( fn(i+j)==fn(j))
{
flag=1;
}
else
{
flag=0;
break;
}
}
if(flag==1)
{
printf("%d",i);
break;
}
flag=0;
}
}
Your
gcd
function has a problem: if
a
<
b
or
a
>
b
, no return value is specified. You should write
return gcd(a,b);
instead of just
gcd(a,b);
Log in to reply
Good point. I adapted it into awk and was puzzled by its lack of any meaningful answer.
f m ( n ) = g c d ( m + n , m n + 1 ) ⇒ f m ( n ) = g c d ( ( m − 1 ) ( n − 1 ) , m n + 1 − − − − − − − − − − − − − ( 1 ) for a period T m we have , ⇒ f m ( n + T m ) = g c d ( ( m − 1 ) ( n + T m − 1 ) , m n + m T m + 1 ) = d ( s a y ) − − − − − − − − − − − − − − − − − − − − − − − − − − − − ( 2 ) so, d ∣ ( m + n ) − − − − − − − ( ∗ ) and d ∣ m n + 1 − − − − − − − − ( ∗ ) implies ⇒ m ≡ − n ( m o d d ) and m n ≡ − 1 ( m o d d ) or, m 2 = 1 ( m o d d ) which need not always have a trivial solution. but from (2) we get d ∣ [ ( m − 1 ) ( n − 1 ) + ( 1 − m ) T m ] and d ∣ m n + 1 + ( m T m ) which along with (1) results in d ∣ ( 1 − m ) T m and d ∣ m T m ; Now it is sufficient to look that d ∣ T m solves our problem; Since T m is the fundamental period so T m = d − − − − − − − − − − ( 3 ) . Now from ( * ) we also know that d ∣ m 2 − 1 and so T m ∣ ( m 2 − 1 ) and thus T m = m 2 − 1 is the fundamental period
By Euclid's algorithm, g cd ( a , b ) = g cd ( a , k a + b ) where k is any integer
take a = ( n + m ) , b = ( m n + 1 ) , k = − m ,
g cd ( n + m , m n + 1 ) = g cd ( n + m , 1 − m 2 ) = g cd ( n + m , m 2 − 1 )
since period T m is invariant under shifting n to n − n 0 ,
we consider period of g m ( n ) = f m ( n − m ) = g cd ( n , m 2 − 1 )
which is obvious that T m = m 2 − 1 since m 2 − 1 is a constant.
hence T m = 1 2 2 − 1 = 1 4 3
Problem Loading...
Note Loading...
Set Loading...
Relevant wiki: Greatest Common Divisor - Problem Solving
Suppose that m , n ∈ N are such that m > 1 . If d divides both n + m and m n + 1 , then d divides m ( n + m ) − ( m n + 1 ) = m 2 − 1 , and hence d divides both n + ( m 2 − 1 ) + m and m ( n + m 2 − 1 ) + 1 . In other words, d divides f m ( n + m 2 − 1 ) . Thus we deduce that f m ( n ) divides f m ( n + m 2 − 1 ) . On the other hand, if d divides both n + ( m 2 − 1 ) + m and m ( n + m 2 − 1 ) + 1 , then it also divides m ( n + ( m 2 − 1 ) + m ) − ( m ( n + m 2 − 1 ) + 1 ) = m 2 − 1 , and hence it divides both n + m and m n + 1 as well, so that it divides f m ( n ) . Thus we deduce that f m ( n + m 2 − 1 ) divides f m ( n ) . In other words, we have shown that f m ( n + m 2 − 1 ) = f m ( n ) . This means that T m divides m 2 − 1 for all integers m > 1 .
Note that f m ( m 2 − m − 1 ) is the highest common factor of m 2 − 1 and m ( m 2 − m − 1 ) + 1 = m 3 − m 3 − m + 1 = ( m − 1 ) ( m 2 − 1 ) , and so f m ( m 2 − m − 1 ) = m 2 − 1 . This means that f m ( m 2 − m − 1 + T m ) = m 2 − 1 . This implies that m 2 − 1 divides m 2 − 1 + T m , and hence that m 2 − 1 divides T m . Thus we have shown that T m = m 2 − 1 for all integers m > 1 . T 1 2 = 1 4 3 .
An earlier version of the question asked for m = 2 ∑ ∞ T m 1 = m = 2 ∑ ∞ ( m − 1 ) ( m + 1 ) 1 = 2 1 m = 2 ∑ ∞ ( m − 1 1 − m + 1 1 ) = 4 3 making the answer 3 + 4 = 7 .