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
- Jump-path obstacle courseStarting at (0,0), reach (24,24) by repeated jumps of (1,2) or (2,1). A jump may land only on points with both coordinates nonnegative, and may NOT land on a point whose first coordinate is odd and second coordinate is divisible by 4. How many jump sequences reach the goal?Read and solve →
- Four-way weighted mazeIn a 20x20 grid with vertices (r,c), 0<=r,c<=19, entering vertex (r,c) costs 1+(17r+31c+7rc) mod 91. Starting at (0,0) for free, reach (19,19) with 4-neighbor moves, possibly revisiting vertices. Find the least total entering cost.Read and solve →
- Odd totient multiplesHow many odd integers n with 3<=n<=50000 have Euler totient phi(n) divisible by 12?Read and solve →
- Prime-sum divisor partnersCount n in 2..75000 for which there exist two different positive divisors a<b of n with a*b=n and a+b prime. (The pair must multiply to n.)Read and solve →
- Box-constrained returning walksA walker starts at (0,0). At each of 8 steps it moves one unit up, down, left, or right. How many ordered step sequences return to (0,0) after step 8 while NEVER leaving the box -2<=x<=2, -2<=y<=2?Read and solve →
- Letters under three rulesCount length-7 strings over A, B, C, D such that A occurs exactly twice, no two Bs are adjacent, and C occurs STRICTLY more often than D.Read and solve →
- Visible points on diagonal stripesHow many integer lattice points (x,y) with 1<=x<=200 and 1<=y<=250 satisfy gcd(x,y)=1 and x+2y divisible by 7?Read and solve →
- Collinear grid triplesConsider the 13x13 array of integer lattice points (x,y) with 0<=x,y<=12. How many unordered sets of THREE distinct points are collinear? Horizontal, vertical, and diagonal lines all count.Read and solve →