Showing posts with label number theory. Show all posts
Showing posts with label number theory. Show all posts

Monday, November 19, 2007

Hit by PHP (Pigeon hole principle)

Problem: For coprime a and b, a/b has period of reccurance of length atmost b-1.

This next one is a classic.
Let there be n integers not necessarily distinct.Prove that we pick k (< (n+1)) integers which is divisible by n.

Let i_1, i_2,..., i_n be the integers.

Let a_1=i_1,
a_2=i_1 + i_2
.
.
a_n=i_1+..+i_n

If one of the a_j ( j=1,..,n ) is divisible by n we are done,else by php we can find a_r and a_s (r>s)giving same remainder. Then a_r-a_s gives rem 0 and we are done.



Friday, June 15, 2007

pretty good

Prove that among any 10 consecutive integers at least one is relatively prime to each of the others.





hint: picture has nothing to do with the problem

Tuesday, June 12, 2007

A generalization

Prove that any positive integer x lying between ak and ak+1 can be represented uniquely as follows

x = ak + bk-1 ak-1 +...+bk-r ak-r +..+b0 a0

where a is a positive integer >1 and each bi (non negative integer) is less than a.

I generalized this based on the problems found in Niven's number theory book( pg 19 pro, 44 and 45 , fifth edition)