Skip to main content

Questions tagged [math]

The challenge involves mathematics in some central way. Also consider using more specific tags, listed in the tag wiki info.

Filter by
Sorted by
Tagged with
22 votes
13 answers
2k views

Background In 1796, 18-year-old Carl Friedrich Gauss proved that a regular heptadecagon can be constructed with compass and straightedge — the first such discovery in over 2,000 years. The stonemason ...
Jan Popelka's user avatar
-1 votes
0 answers
99 views

I recently saw this post, and apparently, the last well-defined stage of the Strong Array Notation, the Dropping Array Notation, grows faster than D^5(k), which lead me to creating this post. Your ...
IAmNotLarry's user avatar
12 votes
3 answers
436 views

We are going to define a simple little language. A word in this language is a binary string where the longest run of consecutive \$0\$s, is shorter than every (maximal) run of \$1\$s. So for example: \...
Wheat Wizard's user avatar
  • 103k
-1 votes
1 answer
146 views

You have to code in python, and the number generated by your code must be bigger than all other current submissions. You need to make your code as small as possible, it has to terminate but you can ...
IAmNotLarry's user avatar
8 votes
4 answers
659 views

Objective Given a prime number \$p\$ and an integer \$n \geq 2\$, find a degree-\$n\$ primitive polynomial modulo \$p\$. Mathematical explanation When we perform "modular arithmetic" over ...
Dannyu NDos's user avatar
  • 7,381
14 votes
10 answers
1k views

The most common way to represent a polynomial is writing it as a linear combination of monomials, i.e., powers of the variable. For example, the polynomial \$p(x) = x^3 + 2x^2 + x + 1\$ is a linear ...
alephalpha's user avatar
  • 51.9k
18 votes
3 answers
1k views

Here is a game: Start with the set {1,2,3,...,n} of natural numbers. At any turn of the game, you may pick two numbers from this set, a and b, then replace them with their product a*b. Since it is a ...
Fabius Wiesner's user avatar
9 votes
3 answers
330 views

Divide 1 by a sum/difference of square roots Input: An expression that is a sum/difference of square roots of positive integers. You can assme it will not equal 0. The general form is \$\pm\sqrt{a_1}\...
Lucenaposition's user avatar
14 votes
17 answers
1k views

Each quarterback in the NFL is given a passer rating at the end of the game, which measures how good their forward passes were. It is not strictly a basic arithmetic formula, and is calculated as ...
Parcly Taxel's user avatar
  • 4,749
12 votes
12 answers
754 views

Challenge: Given inputs \$i\$ and \$n\$, calculate \$R_i(n)\$ where: $$R_0(n)=n \\ R_i(n)=\sum_{j=0}^nR_{i-1}(j)$$ Note that \$R_1\$ is triangular function, and \$R_2\$ is tetrahedral function. This ...
Fmbalbuena's user avatar
  • 5,105
5 votes
1 answer
348 views

Your job is to implement \$2^x\$ using polynomials, such that in a way that for all integers \$x\$ and \$y\$, $$\exists(v_0,v_1,\dots)[P_1(x,y,v_0,v_1,v_2,\cdots) = 0 \land P_2(x,y,v_0,v_1,v_2,\cdots)=...
Fmbalbuena's user avatar
  • 5,105
17 votes
6 answers
894 views

A palindromic polynomial is a polynomial whose list of coefficients is a palindrome. For example, the polynomial \$p(x) = x^4 + 2x^3 + 3x^2 + 2x + 1\$ is palindromic because its coefficients are \$[1, ...
alephalpha's user avatar
  • 51.9k
13 votes
8 answers
1k views

You will be given a decimal number n in the form of a string. You must determine if that number, when stored in standard number type ...
Ted's user avatar
  • 2,417
16 votes
7 answers
1k views

I'm surprised we don't have the crossed ladders problem as a task here yet. Two ladders of lengths a and b lie oppositely across an alley, as shown in the figure. The ladders cross at a height of h ...
Parcly Taxel's user avatar
  • 4,749
15 votes
17 answers
2k views

Problem 4 of the 2025 International Mathematical Olympiad asked (paraphrased): Let \$f(n)\$ be the sum of the largest three proper divisors of \$n\$, that is divisors excluding \$n\$ itself. For ...
xnor's user avatar
  • 150k

15 30 50 per page
1
2 3 4 5
126