#modular-arithmetic

[ follow ]
Education
fromwww.theguardian.com
1 day ago

Did you solve it? The numbers all go to 11

Numbers 2 through 11 cannot be partitioned into three groups with sums divisible by 11 because their total 65 is not divisible by 11.
JavaScript
fromMedium
4 months ago

Python is consistent about modular arithmetic, like Mathematica

Mainstream programming languages' % operator yields negative remainders for negative operands, producing −3 for −3 % 4 instead of the mathematically expected 1.
[ Load more ]