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 ?    1 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

how to calculate three digit number multiplication? send me any shortcut? 235*235

1 Answers   Banking, UBA,


What is the constitutional name of India?

11 Answers   TCS,


i have want jindal written aptitude test paper.

2 Answers   Jindal, Jindal Steel and Power,


a number is terrific if it is a multiple of 2 or 3 ,how many terrific numbers are there between 11 and 11

4 Answers  


Hello sir, I am Ravindra singh from delhi & I m 25 year old, I have 5 years work experience in sales coordination and my education qualification is B Com, I want to know what should I do after B Com MBA in sales and marketing or supply chain management Or PGDCA , Please suggest me, Thanks Regards Ravindra singh

0 Answers  






i am electrical engineering student .i want to old paper of jspl for appitute test.

0 Answers   Jindal, wbsedcl,


A can work three times as B can work. If A takes 60 days less than B to complete the same task, calculate the number of days when both A and B start working together on the same day.

0 Answers   CGI,


If + means * and * means / and / means %. what is the value of 2+3*5/7?

26 Answers   Accenture,


The Highest Mountain in the World______________

5 Answers  


A fruit seller had some balls. He sells 40% balls and still has 420 balls. How many balls he had initially?

0 Answers   Wipro,


If it costs x dollors for making certain item if quantity is 1000 and if quantity increase then the item is made using y dollars. If z number of items are made which are greater than 1000 then what is the total cost.

6 Answers   College School Exams Tests, Samsung,


Mirror image of ear.

2 Answers   3D PLM,


Categories