# Banknotes recalling [closed]

Last year the inhabitants of Elfland (which are -of course- Elfs) had a referendum and decided to stop using barter and to adopt their own currency (the Elfcoin).

On January 1st, 2020 the central bank of Elfland released $$100$$ banknotes worth $$1$$ Elfcoin each so that the elfs can use them as currency in the next years. The bank is obviously worried about the wearing out of the banknotes, so they decided to recall $$10$$ banknotes every year and to replace them with $$10$$ new banknotes. The operation of recalling old banknotes and replacing them with new banknotes is done "atomically" on January the 1st of every year after 2020. The $$10$$ banknotes to recall are chosen at random among all the banknotes in Elfland every year, thus it could be the case (for example) that one or more banknotes released in 2021 are recalled in 2022.

Since no other country uses Elfcoin, the banknotes never exit Elfland. Moreover, the elfs never destroy or hide banknotes.

Questions:

1. After how many years you would expect that all the $$100$$ original banknotes will be recalled?
2. What if the bank recalls $$10$$ random banknotes replacing them with $$15$$ new banknotes? (or with any other number greater than $$10$$ of banknotes)?
• rot13(abg fher vs guvf urycf nalbar ohg V ena fbzr fvzhyngvbaf gb ortva jvgu naq sbhaq gung sbe gur svefg cneg vg fubhyq or nebhaq sbegl avar cbvag rvtug fvk lrnef)
– cmxu
Jan 28 '20 at 15:56
• Banknotes released in one year cannot be replaced in the same year? I.e. released in January and replaced in December...
– daw
Jan 28 '20 at 15:56
• @daw the banknotes are recalled and released the same day every year e.g. 1st January 2021, then 1st January 2022 then 1st January 2023 and so on. I'll update the question Jan 28 '20 at 16:03

let rate = (elfNotes / (elfNotes + yearly_added * i) * yearly_replaced / elfNotes); // yearly_replaced;