divsum, lgic