8Kb

For example, we conclude that 62144 is a knot, because 62144 = 00100 (mod 2), 00100 = 001 (rule 1), 001 = 01 (rule 2) and f(01) = 1-f(0)f(1) = 1. On the other hand, 45123 is a link, since 45123 = 01101 (mod 2), 01101 = 0111 = 010 (rule 2), 010 = 0 (rule 1), and f(0)=0.