v.25.12Bug Fix (user-visible misbehavior in an official stable release)

Fix logical error and modulo bug

Fix logical error and modulo bug in numbers system table when big step size is used. Closes #83398. #90123 (Nihal Z. Miaji).