Algorithmic mathematics
50 original programming-style mathematics puzzles in number theory, digit algorithms, combinatorics, dynamic programming, paths and geometry. Solve using any method; submit only the final integer, not code.
50 active competition problems in this category. Select Load more problems to see the next set.
Algorithmic mathematics problems
- Right-and-down energy pathConsider grid points (r,c), 0<=r,c<=39. Entering (r,c) costs 1+(r^2+3rc+7c^2+11) mod 97. Starting at (0,0), travel to (39,39) moving only down (r+1,c) or right (r,c+1). The starting point costs zero. Find the minimum total cost.Read and solve →
- Sparse-barrier monotone routesCount right/down paths from (0,0) to (35,35), avoiding every lattice point (r,c) with (7r+11c) mod 17 = 0, except the start and destination which are allowed. Return the number of valid paths modulo 1000000007.Read and solve →
- Twelve-divisor sevensHow many integers n in 1..120000 are divisible by 7 and have exactly twelve positive divisors?Read and solve →
- GCD checksumCompute S = gcd(1,840)+gcd(2,840)+...+gcd(50000,840). Submit S modulo 1000003.Read and solve →
- Divisible dice productsThree distinguishable dice each show an integer from 1 to 12. How many ordered triples (a,b,c) have a+b+c=20 and a*b*c divisible by 5?Read and solve →
- Four draws with parity balanceA 4-tuple (a,b,c,d) is drawn from {1,2,...,20} with replacement and order matters. How many 4-tuples have a+b+c+d divisible by 7 and exactly two even entries?Read and solve →
- Colored annulus pointsCount integer lattice points (x,y) with 0<=x,y<=100 satisfying 900 < (x-45)^2+(y-55)^2 <= 1600 and x+y divisible by 3.Read and solve →
- Primitive hypotenuse pairsCount pairs of integers (a,b) with 1<=a<b<=500, a+b<=600, gcd(a,b)=1, and a^2+b^2 a perfect square.Read and solve →