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

Find min value of fn: |-5-x| + |2-x|+|6-x|+10-x|; where x is an integer 0 17 23 19

11 Answers   Accounting, Cap Gemini,


what is jewellers rouge

3 Answers   CDS, Wipro,


P is heavier than Q but lighter than R. Q is heavier than T. S is heavier than P but lighter than V. Who among them is the lightest? (a) V (b) S (c) T (d) R (e) None of these

6 Answers  


A man is standing facing the morning sun. He walks 10m south. Then takes a right turn and walks 15m. He then takes a left turn and walks 5m. He then turn around(about turn) and walks 20m.He then turns right and walks 15m.How far is the man from his starting point ?

2 Answers   GR,


If three person had buy watches in 60 rupees by a shopkeeper.if shopkeeper had given 10 rupees to his servent to return.servent had eaten something of rs 4 and then return rs 6 to each person.Now the watch cost 54 and each body contribute 18 so 54+4=58 where is 2 rupees.

2 Answers   IBM,


Please send me some model test papers for sbi clerical exams to my email id oberoi.tanuj@gmail.com at the earliest

0 Answers  


In 3.5 Kg rod , there is 74% silver. If it is alloyed with a 0.5 Kg rod, the % of silver goes up to 84%. The percent of silver in 0.5 Kg rod?

0 Answers  


COMPLETE THE SERIES 19 48 30 96.... A.144 B. 192 C.160 D. NONE OF THESE

2 Answers   Satyam,


if A = D, B=E, C=F, SHOOT = ?

0 Answers   Baan Infotech,


Area if square increase by 69% find sides % increased by?

3 Answers   3D PLM,


write a program for Print the outputof 0 0 * 0 0 0 * 0 * 0 * * * * * 0 * 0 * 0 0 0 * 0 0

2 Answers  


Three birds cross a point in a same st. line and of that 2 fly in opposite directions. If a triangle is formed with the position of the birds what kind of the triangle will be formed? a)isosceles b)right angle c)equilateral d)right angle and isosceles.

2 Answers   CTS,


Categories