Home » Ask & Discuss » Mathematics. » Algebra « Back to Discussion



Algebra

Hari Shankar's Avatar
Forum Expert
Joined: 28 Feb 2007
Post: 2173
3 Mar 2008 08:56:38 IST
0 People liked this
10
545 View Post
Try out
None

Let f(n) be the least number of times you have to hit the  key in the calculator to get a number less than 2 starting from n, n being a natural number. e.g. f(2) =1and f(5) =2. For how many natural numbers m such that 1<m<2008, is f(m) odd.
 


Share this article on:

Comments (10)

ERAGON007's Avatar

Hot goIITian

Joined: 1 Mar 2008
Posts: 164
3 Mar 2008 11:24:04 IST
0 people liked this

no.s  between  8(( 22 )2) & 256(((22)2)2)

ie  256 - 8 +1  no.s   
=249 numbers


is it correct ??
Hari Shankar's Avatar

Forum Expert
Joined: 28 Feb 2007
Posts: 2173
3 Mar 2008 11:37:29 IST
0 people liked this

no. pls try again
anchit saini's Avatar

Blazing goIITian

Joined: 1 Feb 2008
Posts: 1251
3 Mar 2008 11:50:10 IST
0 people liked this

242??
sir is it right??
ERAGON007's Avatar

Hot goIITian

Joined: 1 Mar 2008
Posts: 164
3 Mar 2008 11:51:07 IST
0 people liked this

if we create a prog in c++  and tell it print all no.s from 1---2008   with when
continuously  [ ]  till we get a num<2  
  the smallest num is  8   & largest   256   ( f(n)==3  )
  & oh!    i forgot to include  1,2,3   (f(n) ==1 )
anchit saini's Avatar

Blazing goIITian

Joined: 1 Feb 2008
Posts: 1251
3 Mar 2008 11:52:08 IST
0 people liked this

eragon i am getting the answer
as
242
anchit saini's Avatar

Blazing goIITian

Joined: 1 Feb 2008
Posts: 1251
3 Mar 2008 12:00:10 IST
0 people liked this

i did it like this

f(2)=f(3)=1
f(4)=f(5)=...................f(15)=2
f(16)=.........................f(255)=3
thereafter
till 65535 , ans is 4

so numbers come to be
256-16+2=242

New kid on the Block

Joined: 22 Feb 2008
Posts: 17
3 Mar 2008 12:10:19 IST
0 people liked this

i suppose answer is 242 this is how i did it
sq root of 4 is 2
2 time sq root of 16 is 2
3 time sq root  of 256 is 2
now calculate nos lying from 2 to 4 exclude 4
then calculate nos lying from 16 to 256 exclude 256
 rate if i am correct
Hari Shankar's Avatar

Forum Expert
Joined: 28 Feb 2007
Posts: 2173
3 Mar 2008 12:36:50 IST
0 people liked this

Anybody can back up his answer with a some math logic. You may have got the answer, put presenting a water-tight method will just improve the way you think.
 
I'm looking for an equation which determines that n. Gimme the eqn and I'll give ya ur rate
sreeraman nagasubramaniyan's Avatar

Blazing goIITian

Joined: 17 Jan 2008
Posts: 510
3 Mar 2008 13:16:13 IST
2 people liked this

general formula:
= (22 - 2) + ( (42)2 - 42) + ( (162)4 - (162)2) +....
=> (22-2) + (28-24) + (232- 216) + ...
=> -2+22-24+28-216 +...till as long as 2n is within the range
in the case given
28<2008 but 216 not less than 2008
so we take upto 28
 
Hari Shankar's Avatar

Forum Expert
Joined: 28 Feb 2007
Posts: 2173
3 Mar 2008 13:39:41 IST
1 people liked this

The answer is 242 as almost all of you have got.
 
Only I wish you show your approach, so that someone who sees it later doesnt think its pulled out of thin air.
 
Here, we must have (m)1/2^n 2 or 2n log2m
 
Then it is easy to see for
2k3                 f(m) = 1
4k15               f(m) = 2
16k255            f(m) = 3
256k216-1       f(m)= 4
 
That's how you get sboosy's general formula and the answer as 242.



Quick Reply


Reply

Some HTML allowed.
Keep your comments above the belt or risk having them deleted.
Signup for a avatar to have your pictures show up by your comment
If Members see a thread that violates the Posting Rules, bring it to the attention of the Moderator Team
Free Sign Up!

Preparing for IIT-JEE ?

Arihant Revision Package for IIT JEE - Books, Practice Tests + Rank Predictor


@ INR 1,995/-

For Quick Info

Name

Mobile No.

Find Posts by Topics

Physics.

Topics

Mathematics.

Chemistry.

Biology

Parents

Board

Fun Zone

Sponsored Ads