Go back to previous page
Forum URL: http://www.cut-the-knot.org/cgi-bin/dcforum/forumctk.cgi
Forum Name: This and that
Topic ID: 668
Message ID: 1
#1, RE: How to count number of chosen options in a matrix?
Posted by Pierre Charland on Jan-12-06 at 10:24 PM
In response to message #0
Well, If I understand you well,

a choice N is in row R and column C

R = floor
C = N mod 3

example: if N=5 then R=floor(7/3)=2 and C=5 mod 3=2