I'm trying to reverse engineer an algorithm to divide up interest
payments over 6 months. I've got two examples below. (They're
originally in cents, but I've converted to integers so it's easier to
read.) I couldn't figure out an algorithm that would work for both.
46 = 8 + 7 + 8 + 7 + 8 + 8
58 = 10 + 9 + 10 + 10 + 9 + 10
(In case you were wondering, these are I-Bonds payments).
Bookmarks