Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Consider a function which, for a given whole number n,
returns the number of ones required when writing out all
numbers between 0 and n. For example, f(13)=6. Notice that
f(1)=1. What is the next largest n such that f(n)=n?

Answers were Sorted based on User's Feedback



Consider a function which, for a given whole number n, returns the number of ones required when wri..

Answer / blahblahblah

#1: N = 1, f(N) = 1
#2: N = 199981, f(N) = 199981
#3: N = 199982, f(N) = 199982
#4: N = 199983, f(N) = 199983
#5: N = 199984, f(N) = 199984
#6: N = 199985, f(N) = 199985
#7: N = 199986, f(N) = 199986
#8: N = 199987, f(N) = 199987
#9: N = 199988, f(N) = 199988
#10: N = 199989, f(N) = 199989
#11: N = 199990, f(N) = 199990
#12: N = 200000, f(N) = 200000
#13: N = 200001, f(N) = 200001
#14: N = 1599981, f(N) = 1599981
#15: N = 1599982, f(N) = 1599982

Is This Answer Correct ?    7 Yes 0 No

Consider a function which, for a given whole number n, returns the number of ones required when wri..

Answer / sk

Next Largest NO such that f(n) = n is
199981

Is This Answer Correct ?    4 Yes 0 No

Consider a function which, for a given whole number n, returns the number of ones required when wri..

Answer / tihor

its is 1599990

Is This Answer Correct ?    2 Yes 5 No

Consider a function which, for a given whole number n, returns the number of ones required when wri..

Answer / suman

f(2) = 1
f(20)= 12
f(200) = 140
f(2000) = 1600
f(20000) = 18000
f(200000) = 200000

200,000 is the answere

Is This Answer Correct ?    0 Yes 6 No

Post New Answer

More General Aptitude Interview Questions

in a triangle which one is not possible.sides are (5,5,5), (5,4,5),(4,4,9),(3,4,5)?

1 Answers   TCS,


linux was introdse to

1 Answers  


Find the correct meaning of the following phrase: To be in the air

0 Answers   Hexaware,


Potatoes are made up of 99% water and 1% “potato matter.” Jack bought 100 pounds of potatoes and left them outside in the sun for a while. When he returned, he discovered that the potatoes had dehydrated and were now only made up of 98% water. How much did the potatoes now weigh?

4 Answers   CTS,


Convert 251 decimal to base 8(i.e. octal)?

3 Answers   Geometric Software,


A+B+C+D=D+E+F+G=G+H+I=17 where each letter represent a number from 1 to 9. Find out what does letter D and G represent if letter A=4. give the steps

3 Answers   CTS, TCS,


London time is five and a half hours behind Delhi time. What time is it in London if it is 02:35 in Delhi? (a) 21:05 (b) 08:05 (c) 21:35 (d) 07:05 (e) None of these

14 Answers  


what is T.D.S ?

4 Answers  


what is the sum of 7 consecutive odd numbers with 27 as the fourth number

0 Answers   TATA,


what is ment by SEBI?

16 Answers   Genpact, ICICI, PIMT, State Bank Of India SBI,


Find the distance when they meet from starting point.

0 Answers   Infosys,


im swetha... is the chances 4 science graduates are less when compared with arts & commerce graduates 4 a bank job? why im asking bcoz, i attended for four banks interview like sbi[2], bank of baroda, karur vysya bank after selected in the written test. i attended interview very well. but not.. why this?

0 Answers  


Categories