>>96771816
>numbers inconsistent
Math pro tip: Anything set that is inconsistent over a small range can be reduced to a formula, provided you're willing to make it hideous. https://www.futilitycloset.com/2021/09/02/anscombes-quartet/
I bet with a bit of work you can come up with a formula that produces the correct output every time.