Just trying out to write the program code for the next Bitcoin Halving (fourth halving in 2024) that is using C programming language.
I don't get what you are trying to do. But looking at your hints, I would guess you are trying to explain how the function works?
Of course, that's a function of block subsidy and reward halving
reply