Modulo Arithmetic

i=k\N (integer division)

j= k mod N (modulo arithmethic)

where:

N=9

k=cell [0…80]

i=ROW [0…8]

j=COL [0…8]

say:

k=10

i=10\9=1 (truncates to nearest integer)

j=10 mod 9=1 (truncates to nearest integer)

so:

ROW=1 (i.e. 2nd row)

COL=1 (i.e. 2nd column)