Showing posts with label puzzle. Show all posts
Showing posts with label puzzle. Show all posts

Wednesday, April 11, 2007

can never divide?

1. Given that x is a positive integer prove that f(x) = x2 + x + 1 will never divide by 5.

2. Consider the expression xx + 1, where x be a positive integer.

It can be verified that x = 7 is the least value for which xx + 1 divides by 23.

Given that n is a positive integer, find the least value of x for which xx + 1 is divisible by 2n.

Tuesday, March 20, 2007

convolutions and sum of sums

Let Sk be the sequence of simple sums, that is S1=1, S2 =1+2, Sk =1+2+...+k then
S1 + S2 + ... + Sk = k.1+(k-1).2+(k-2).3+ ... + 2.(k-1)+1.k = the convolution of the sequence {1, ...,k}.

In your spare time you can show that sum of sums equals (n)(n+1)(n+2)/(1.2.3) and sum of sum of sums equals n(n+1)(n+2)(n+3)/(1.2.3.4) and so on.

1.2.3 = 6.
1.2.3.4 = 24.

Thursday, March 15, 2007

Fibonacci Sums

The Fibonacci series is: F1=1, F2=2, for n=2,3,... Fn+1= Fn + Fn-1. The (n+1)-st number is the sum of n-th and (n-1)-th number in the sequence.

Fibonacci numbers have the property that: the sum of the first n numbers of a sequence is contained in the sequence. Do you know of others?

F1+F2+F3+...+Fn = Fn+2-1

Actually the sequence G1=1, G2=2,for n=2,3,... Gn+1= Gn + ... + G2 + G1 trivially staifies that property. So, Fibonacci sequence is not unique in the above sense. Can you think of a sequence {Hk} such that

H1+H2+H3+...+Hn = Hn+3 - c? for some constant c.

On a tangent: Kolmogorov information complexity speaks of representations that can compress information effectively. Not only does the following set of characters "F1=1, F2=2 Fn+1= Fn + Fn-1" contain the entire Fibonacci sequence, but also the sum of its first n elements.