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 the next number in the series 1,2,5,10,17,26

1 Answers   DSQ Software,


A helicopter drops two trains, each on a parachute, onto a straight infinite railway line. There is an undefined distance between the two trains. Each faces the same direction, and upon landing, the parachute attached to each train falls to the ground next to the train and detaches. Each train has a microchip that controls its motion. The chips are identical. There is no way for the trains to know where they are. You need to write the code in the chip to make the trains bump into each other. Each line of code takes a single clock cycle to execute. You can use the following commands (and only these); MF - moves the train forward MB - moves the train backward IF (P) - conditional that's satisfied if the train is next to a parachute. There is no "then" to this IF statement. GOTO

7 Answers   ASD Lab, HP, Micro Labs, Microsoft,


can any one give me paper pattern of SBI Spelcialist officer paper i m pooja info@porwalduniya.com

0 Answers  


can anybody solve this series 0,6,24,60,120,210,?,? please give answer with the solution

13 Answers   OpenMat,


Please Send Previous year question of sbi clerical post my email id is jasleen1982@gmail.com

0 Answers   State Bank Of India SBI,


find missing no 5 12 23 30 17 8 ? 3

11 Answers   HCL,


Age of Grandfather is the ages of 4 grandchildren where their ages are in consecutive.Find the age of Grandfather.

0 Answers   IBM,


a student got 70% in one subject,80% in other.to get overall 75% how much he should get in third subject

10 Answers   Cognizant, Patni,


G(0)=-1, G(1)=1, G(N)=G(N-1) - G(N-2), G(5)= ?

0 Answers   Accenture, BSNL,


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

1 Answers   Banking, UBA,


8 persons A,B,C,D,E,F,G,H are sitting in a round dining table.some arrangement was given and position of H was asked.I don't remember the question exactly.

0 Answers   Accenture,


In China, Mao-Tse-Tung was responsible for organizing its people and taking China into success path. It evolved into a great economic power by improved industrial and economical statistics. China prospered in those years, but _________________

0 Answers   Accenture,


Categories