Vrijeme: 09:15
Neke biljke znam kao agronom | I know some plants as an agronomist #2
Fran R. uzgaja svoju farmu mahuna na kojoj se nalazi biljaka. Prve dvije su visine , a svaka iduća je jednaka zbroju visina prethodne dvije. Kako su stabiljke nestabilne, ako je neka biljka veća od , smanjivat će se za dok joj visina ne postane niža od . Ako Fran na svojoj farmi ima previše mahuna, morat će platiti golem porez. Na sreću, Fran je našao rupu u zakonu i zaključio je da ako je medijan svih biljaka na njegovoj farmi jednak , policija ga neće privesti. Zbog toga želi porezati neke biljke, a jednim rezanjem visina biljke smanjuje se za . Fran želji maksimizirati svoj profit kod uzgajanja mahuna pa ga zanima koliko minimalno rezanja treba napraviti da bi bio siguran?
Fran R. grows his green bean farm, which contains plants. The first two plants are tall, and each subsequent plant's height is the sum of the previous two. Since the stalks are unstable, if any plant grows taller than , it will be reduced by until its height is less than . If Fran has too many beans on his farm, he will have to pay a massive tax. Luckily, Fran found a loophole in the law and realized that if the median height of all plants on his farm is , the police won’t arrest him. Because of this, he wants to trim some of the plants, and each trimming reduces a plant’s height by . Fran wants to maximize his profit from growing beans, so he wonders how many minimum trimmings he needs to perform to be safe.