▲ 1265 ▼ Panik (i.postimg.cc) submitted 2 years ago by ickplant@lemmy.world to c/lemmyshitpost@lemmy.world 146 comments fedilink hide all child comments
[–] AccountMaker@slrpnk.net 3 points 2 years ago* (last edited 2 years ago) (2 children) But 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. permalink fedilink source parent hideshow 4 child comments replies: [–] Colalextrast@lemmynsfw.com 7 points 2 years ago* (1 child) It goes like this create 2 distinct numbers by isolating the last digit from the other. For example, 154 becomes 15 and 4. double the number derived from the last digit. So, the four becomes 8. subtract from the number derived from the preceeding digits. 15 - 8. the resulting number is 7. Seven is divisible by 7, so we know 154 is divisible by 7. permalink fedilink source parent hideshow 2 child comments replies: [–] AccountMaker@slrpnk.net 1 point 2 years ago Oooh, I didn't realize that you subtract from the original number without the last digit. Thanks permalink fedilink source parent [–] Kwdg@discuss.tchncs.de 4 points 2 years ago* Yeah you got it wrong, it's 1 - 4*2 = -7 2 - 1*2 = 0 2 - 8*2 = -14 permalink fedilink source parent
[–] Colalextrast@lemmynsfw.com 7 points 2 years ago* (1 child) It goes like this create 2 distinct numbers by isolating the last digit from the other. For example, 154 becomes 15 and 4. double the number derived from the last digit. So, the four becomes 8. subtract from the number derived from the preceeding digits. 15 - 8. the resulting number is 7. Seven is divisible by 7, so we know 154 is divisible by 7. permalink fedilink source parent hideshow 2 child comments replies: [–] AccountMaker@slrpnk.net 1 point 2 years ago Oooh, I didn't realize that you subtract from the original number without the last digit. Thanks permalink fedilink source parent
[–] AccountMaker@slrpnk.net 1 point 2 years ago Oooh, I didn't realize that you subtract from the original number without the last digit. Thanks permalink fedilink source parent
[–] Kwdg@discuss.tchncs.de 4 points 2 years ago* Yeah you got it wrong, it's 1 - 4*2 = -7 2 - 1*2 = 0 2 - 8*2 = -14 permalink fedilink source parent