List of usage examples for com.google.common.math BigIntegerMath binomial
public static BigInteger binomial(int n, int k)
From source file:sk.gymy.seminar.persistence.SeminarImporter.java
public static String calculatePossibleSolutionSize(Groups groups) { int seminarN = groups.getSeminarList().size(); int groupsN = groups.getN(); int n = groupsN * seminarN; int k = seminarN; BigInteger possibleSolutionSize = BigIntegerMath.binomial(n, k); return getFlooredPossibleSolutionSize(possibleSolutionSize); }