OFFSET
1,2
EXAMPLE
For N=4 we have 53 solutions, because {1,2,3,4} together with any proper subset yields 2*15-1 = 29 valid pairs, and a further 24 pairs can be obtained from {1,2} & {1,3}, by substituting the numbers with any permutation of (1,2,3,4).
MATHEMATICA
Sum[Total[s!/(c!(#-c)!(s c/#-c)!(s - # - s c/# + c)!) &/@Select[Divisors[s c], c <= # <= s &]], {c, 1, s}] (* "Eigenray", see link, Feb 15th 2009 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Harmen Wassenaar (towr(AT)ai.rug.nl), Mar 16 2009
STATUS
approved