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
- Alternating parity milestoneA positive integer is parity-alternating if its first (most significant) digit is odd and every following digit has parity opposite to the digit before it. What is the 500th smallest parity-alternating positive integer?Read and solve →
- Two-base mirrors with a checksumCount positive integers n < 1000000 that are palindromes both in base 10 and in binary (without leading zeroes) AND whose decimal digit sum is divisible by 3.Read and solve →
- Far-apart decimal neighborsCount seven-digit positive integers in which neighboring digits differ in value by at least 3 and the sum of the seven digits is divisible by 9.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 →
- Seven-number target subsetsHow many distinct seven-element subsets of {1,2,...,24} have elements summing to exactly 100? Order within each subset does not matter.Read and solve →
- Zero-pair access codesHow many six-digit sequences over digits 0,1,2,3,4 have a nonzero first digit, exactly two occurrences of 0, and no equal adjacent digits? Leading zeroes are not allowed.Read and solve →
- Balanced runs without fourCount binary strings of length 35 containing exactly seventeen 1s, with no occurrence of 0000 or 1111. Strings may begin with 0.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 →
- Separated triomino tilingsTile a row of 50 unit cells with tiles of lengths 1, 2, or 3. Count tilings containing at least one length-3 tile in which no two length-3 tiles are consecutive (there must be at least one other tile between them).Read and solve →
- Distinct square-sum portfoliosHow many ways can 500 be written as a sum of exactly five DISTINCT positive perfect squares? Different orders of the same five squares count once.Read and solve →