ickplant@lemmy.world to Lemmy Shitpost@lemmy.world · 1 year agoPaniki.postimg.ccimagemessage-square147fedilinkarrow-up11.25Karrow-down145
arrow-up11.21Karrow-down1imagePaniki.postimg.ccickplant@lemmy.world to Lemmy Shitpost@lemmy.world · 1 year agomessage-square147fedilink
minus-squareAccountMaker@slrpnk.netlinkfedilinkarrow-up2·edit-21 year agoBut what about 14, 21 and 28? 14 - 4*2 = 6, not divisible by 7 21 - 1*2 = 19, not divisible by 7 28 - 8*2 = 12, not divisible by 7 Or did I misunderstand the algorithm? EDIT: I didn’t realize that you remove the last digit when subtracting, got corrected in the replies.
minus-squareKwdg@discuss.tchncs.delinkfedilinkarrow-up4·edit-21 year agoYeah you got it wrong, it’s 1 - 4*2 = -7 2 - 1*2 = 0 2 - 8*2 = -14
But what about 14, 21 and 28?14 - 4*2 = 6, not divisible by 721 - 1*2 = 19, not divisible by 728 - 8*2 = 12, not divisible by 7Or did I misunderstand the algorithm?EDIT: I didn’t realize that you remove the last digit when subtracting, got corrected in the replies.
Yeah you got it wrong, it’s
1 - 4*2 = -7
2 - 1*2 = 0
2 - 8*2 = -14