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
- Prime beyond the milestoneList all primes strictly greater than 1000 in ascending order. What is the 50th prime on that list? Submit the prime itself.Read and solve →
- Reversible primesA reversible prime is a prime p whose decimal digit reversal is a different prime (leading zeroes are dropped after reversal). Among reversible primes strictly greater than 1000, what is the 80th smallest?Read and solve →
- Twisted power checksumFor every integer k from 1 through 4200, calculate k^(2k+1). What is the remainder when their sum is divided by 1000003?Read and solve →
- Polynomial residuesHow many integers n with 1 <= n <= 300000 satisfy n^2 + 3n + 7 congruent to 0 modulo 997?Read and solve →
- Two threes and a checksumHow many integers from 1 through 200000 inclusive have the digit 3 occurring exactly twice in their usual decimal representation and a decimal digit sum divisible by 7?Read and solve →
- Increasing odd-ended digitsAmong five-digit positive integers whose digits are strictly increasing from left to right, sum those whose final digit is odd. Return that sum modulo 1000003.Read and solve →
- Two forbidden rectanglesCount paths from (0,0) to (20,15), taking only (x+1,y) or (x,y+1), without visiting any lattice point with 4<=x<=7 and 3<=y<=5, or 12<=x<=14 and 8<=y<=10.Read and solve →
- Constrained tricolor wordsHow many length-22 strings over A, B, C have exactly eight A characters, exactly five C characters, and no two consecutive C characters? (The other nine characters are B.)Read and solve →
- Odd-value coin changeHow many UNORDERED multisets of coins with denominations 1,4,11,23 have total value exactly 137? Any number of each coin is allowed.Read and solve →
- Exactly seven triple-jumpsHow many ordered sequences of steps from {1,3,4} sum to 38, if exactly seven of the steps must be 3? Different orders count separately.Read and solve →
- Accelerated recurrenceLet a_0=2, a_1=5, and a_n=(3*a_(n-1)+2*a_(n-2)) mod 1000003 for n>=2. Find a_50000.Read and solve →
- First zero in a coupled recurrenceDefine a_0=1, a_1=3, and a_n=(3*a_(n-1)+7*a_(n-2)) mod 1009 for n>=2. Find the smallest n>=2 for which a_n=0. If no such n<=100000 exists, submit -1.Read and solve →