diff --git a/src/main/java/org/apache/commons/math3/util/Combinations.java b/src/main/java/org/apache/commons/math3/util/Combinations.java index 51b3c5613..be758f020 100644 --- a/src/main/java/org/apache/commons/math3/util/Combinations.java +++ b/src/main/java/org/apache/commons/math3/util/Combinations.java @@ -399,7 +399,7 @@ public class Combinations implements Iterable { throw new OutOfRangeException(digit, 0, n - 1); } - ret += c[i] * ArithmeticUtils.pow(n, (long) i); + ret += c[i] * ArithmeticUtils.pow(n, i); } return ret; }