m4m4m4m4@lemmy.world to Science Memes@mander.xyzEnglish · 6 months agoAnd 299999999 is divisible by 13lemmy.worldimagemessage-square5fedilinkarrow-up1376arrow-down19
arrow-up1367arrow-down1imageAnd 299999999 is divisible by 13lemmy.worldm4m4m4m4@lemmy.world to Science Memes@mander.xyzEnglish · 6 months agomessage-square5fedilink
minus-squareTwilightKiddy@programming.devlinkfedilinkEnglisharrow-up26·6 months agoThe divisability rule for 7 is that the difference of doubled last digit of a number and the remaining part of that number is divisible by 7. E.g. 299’999 → 29’999 - 18 = 29’981 → 2’998 - 2 = 2’996 → 299 - 12 = 287 → 28 - 14 = 14 → 14 mod 7 = 0. It’s a very nasty divisibility rule. The one for 13 works in the same way, but instead of multiplying by 2, you multiply by 4. There are actually a couple of well-known rules for that, but these are the easiest to remember IMO.
minus-squarecandybrie@lemmy.worldlinkfedilinkEnglisharrow-up1·6 months agoI think it might be easier just to do the division.
The divisability rule for 7 is that the difference of doubled last digit of a number and the remaining part of that number is divisible by 7.
E.g. 299’999 → 29’999 - 18 = 29’981 → 2’998 - 2 = 2’996 → 299 - 12 = 287 → 28 - 14 = 14 → 14 mod 7 = 0.
It’s a very nasty divisibility rule. The one for 13 works in the same way, but instead of multiplying by 2, you multiply by 4. There are actually a couple of well-known rules for that, but these are the easiest to remember IMO.
I think it might be easier just to do the division.