In reply to @lunasorcery

@willkirkby @glitch like, technically, or the maths?

0 favourites 0 retweets

In reply to @christianp

@willkirkby @glitch you're interested in the remainder when dividing k by N. Start with remainder 0. For each digit in k, multiply your current remainder by 10 (i.e. shift all previous digits left 1 space), then add the digit. Work mod N. If you end up back at 0, you've got a multiple of N

0 favourites 0 retweets

In reply to @christianp

@willkirkby @glitch Dotted blue lines from space i point to (10*i) mod N. Solid green lines point to (i+1) mod N

0 favourites 0 retweets

In reply to @christianp

@willkirkby @glitch I've written this, but in more detail, at divisibility-diagrams.glitch.me/what.html

1 favourite 0 retweets

View this tweet on twitter.com

This tweet as JSON