Skip to content
m·amathatlas
ExploreAboutOpen problemsCited authorsMy libraryFeedback
Sign in
FRENES
Loading views…Recent views only, across all languages. Vercel history is unavailable for this page. Repeat visits in the same tab are grouped for 30 minutes.
ShareLinkedInXFacebookWhatsApp
← All open problems
Unanswered question

Interpolating a degree ddd polynomial over Fp\mathbb F_pFp​ to avoid sets of size ddd

Number theoryCombinatorics

Imported on November 28, 2026

The forum classified this question as unanswered when collected. This does not certify an open research problem; check the answers and revision history at the source.

Read the question with its definitions and background below. The source provides the full formulation and further discussion; the glossary and Wikipedia links offer additional reading aids.

Problem statement

Let ppp be a prime and d<pd<pd<p be a nonnegative integer. Is it true that for any sets A1,…,Ap⊆FpA_1,\ldots,A_p\subseteq\mathbb F_pA1​,…,Ap​⊆Fp​ of size ddd, there exists a polynomial f∈Fp[x]f\in\mathbb F_p[x]f∈Fp​[x] of degree at most ddd such that f(i)∉Aif(i)\notin A_if(i)∈/Ai​ for all i∈Fpi\in\mathbb F_pi∈Fp​? If so, is ddd the lowest possible degree bound?

This is a question that I came up with maybe eight or so years ago and every once in a while I've come back to think about it. It's not very related, as far as I know, to any research questions, but I find it appealing because it says something about how expressive polynomials are over Fp\mathbb F_pFp​ as functions if you restrict their degree. Also the special cases I've done so far have some nice arguments involved, and I hope that the general case could lead to other cool ideas. Unfortunately I've been pretty stuck and don't have time to think about it anymore these days, but recently a friend suggested I make a MO account and ask it here. I think it falls under the scope of MO, but if not I will delete and ask elsewhere.

I'll now describe some special cases and ideas I've had, some of which suggest that the answer to the question should be yes.

For d=0d=0d=0, there is nothing to do, I guess except to argue about what the degree of f(x)=0f(x)=0f(x)=0 is. For convenience, let's say for this problem that it is 000.

For d=1d=1d=1, suppose that Ai={ai}A_i=\{a_i\}Ai​={ai​}. Then each point (i,ai)(i,a_i)(i,ai​) lies on at most one line of the form f(x)=bx+ap+1f(x)=bx+a_p+1f(x)=bx+ap​+1 for some b∈Fpb\in\mathbb F_pb∈Fp​, and (0,ap)(0,a_p)(0,ap​) lies on none of them. There are p−1p-1p−1 other bad points (i,ai)(i,a_i)(i,ai​) to avoid, so some value of bbb works. Here, the degree bound can be seen to be sharp by considering Ai={i}A_i=\{i\}Ai​={i}.

For d=p−1d=p-1d=p−1, the result and the sharpness of the degree bound follows from Lagrange interpolation: any function on Fp\mathbb F_pFp​ can be uniquely expressed as a polynomial of degree at most p−1p-1p−1.

For d=p−2d=p-2d=p−2, we appeal to the following classical fact: the coefficient of xp−1x^{p-1}xp−1 of a polynomial P∈Fp[x]P\in\mathbb F_p[x]P∈Fp​[x] of degree at most p−1p-1p−1 is −∑i∈FpP(i)-\sum_{i\in\mathbb F_p}P(i)−∑i∈Fp​​P(i). Thus, we must choose f(i)∈Bi=Fp∖Aif(i)\in B_i=\mathbb F_p\setminus A_if(i)∈Bi​=Fp​∖Ai​ such that ∑i∈Fpf(i)=0\sum_{i\in\mathbb F_p}f(i)=0∑i∈Fp​​f(i)=0. Since ∣Bi∣=2|B_i|=2∣Bi​∣=2 for all iii, the Cauchy-Davenport theorem tells us that ∣B1+⋯+Bp∣=p|B_1+\cdots+B_p|=p∣B1​+⋯+Bp​∣=p, so this is always possible. It's also easy to show this manually without appealing to Cauchy-Davenport. The degree bound can be seen to be sharp by taking Bi={g(i),g(i)+1}B_i=\{g(i),g(i)+1\}Bi​={g(i),g(i)+1} for some g∈Fp[x]g\in\mathbb F_p[x]g∈Fp​[x] of degree p−2p-2p−2. Then ∑i∈Fpg(i)=0\sum_{i\in\mathbb F_p}g(i)=0∑i∈Fp​​g(i)=0 and the only way to interpolate fff through BiB_iBi​ so that ∑i∈Fpg(i)=0\sum_{i\in\mathbb F_p}g(i)=0∑i∈Fp​​g(i)=0 is to take f(i)=g(i)f(i)=g(i)f(i)=g(i) for all iii or f(i)=g(i)+1f(i)=g(i)+1f(i)=g(i)+1 for all iii.

For d=2d=2d=2, we can use a probabilistic argument. Choose f(x)=ax2+bx+cf(x)=ax^2+bx+cf(x)=ax2+bx+c where a,b,ca,b,ca,b,c are independent uniform random elements of Fp\mathbb F_pFp​, and let X=∣{i∈Fp:f(i)∈Ai}∣X=|\{i\in\mathbb F_p:f(i)\in A_i\}|X=∣{i∈Fp​:f(i)∈Ai​}∣ be the number of bad points that fff hits. Lagrange interpolation tells us that given points (i1,ai1),…,(ik,aik)∈Fp2(i_1,a_{i_1}),\ldots,(i_k,a_{i_k})\in\mathbb F_p^2(i1​,ai1​​),…,(ik​,aik​​)∈Fp2​ with i1,…,iki_1,\ldots,i_ki1​,…,ik​ distinct, the probability that a uniform random polynomial P∈Fp[x]P\in\mathbb F_p[x]P∈Fp​[x] of degree d≥k−1d\ge k-1d≥k−1 passes through all of the given points is p−kp^{-k}p−k. A double counting argument gives E(Xk)=2k(pk)p−k\mathbb E\binom Xk=2^k\binom pkp^{-k}E(kX​)=2k(kp​)p−k for k≤3k\le 3k≤3 by summing over the possible sets of bad points (i1,ai1),…,(ik,aik)(i_1,a_{i_1}),\ldots,(i_k,a_{i_k})(i1​,ai1​​),…,(ik​,aik​​) for fff to pass through. Using (t−1)(t−3)(t−4)=−12+12(t1)−10(t2)+6(t3)(t-1)(t-3)(t-4)=-12+12\binom t1-10\binom t2+6\binom t3(t−1)(t−3)(t−4)=−12+12(1t​)−10(2t​)+6(3t​), we can compute E(X−1)(X−3)(X−4)=−4p+16p2<0\mathbb E(X-1)(X-3)(X-4)=-\frac4p+\frac{16}{p^2}<0E(X−1)(X−3)(X−4)=−p4​+p216​<0 for p>4p>4p>4. Since (t−1)(t−3)(t−4)≥0(t-1)(t-3)(t-4)\ge0(t−1)(t−3)(t−4)≥0 for positive integers ttt, this implies that there is a positive chance of X=0X=0X=0 for p≥5p\ge5p≥5, which is what we want. The cases of p=2,3p=2,3p=2,3 are easy to dispose of manually. (Side note that a special case of this problem for d=2d=2d=2 appeared in problem N6 of the 2024 IMO Shortlist, and I have reproduced here the solution I found while serving on the IMO Problem Selection Committee that year.) The degree bound is sharp in this case as well by considering Ai={0,i}A_i=\{0,i\}Ai​={0,i} for i<pi<pi<p and Ap={0,1}A_p=\{0,1\}Ap​={0,1}. The 000 in each set ensures that non-constant linear functions can't avoid all of the AiA_iAi​ and the iii's in the sets ensure that constant linear functions can't avoid all of the AiA_iAi​.

The last two cases suggest more general approaches to the question. Unfortunately, the probabilistic argument from the d=2d=2d=2 case fails for d≥3d\ge3d≥3. I worked this out at some point but don't have the details on me anymore.

The d=p−2d=p-2d=p−2 case suggests working with the following characterization of polynomials P∈Fp[x]P\in\mathbb F_p[x]P∈Fp​[x] of degree at most ddd: the degree of PPP is at most ddd if and only if ∑i∈FpijP(i)=0\sum_{i\in\mathbb F_p}i^jP(i)=0∑i∈Fp​​ijP(i)=0 for all 0≤j<p−1−d0\le j<p-1-d0≤j<p−1−d, with the convention that 00=10^0=100=1. It is then natural to encode this condition as the non-vanishing of the polynomial F(x1,…,xp)=∏j=0p−2−d((∑i∈Fpijxi)p−1−1)F(x_1,\ldots,x_p)=\prod_{j=0}^{p-2-d}\left(\left(\sum_{i\in\mathbb F_p}i^jx_i\right)^{p-1}-1\right)F(x1​,…,xp​)=∏j=0p−2−d​((∑i∈Fp​​ijxi​)p−1−1) at xi=P(i)x_i=P(i)xi​=P(i) and apply the combinatorial nullstellensatz with the sets Bi=Fp∖AiB_i=\mathbb F_p\setminus A_iBi​=Fp​∖Ai​ of size p−dp-dp−d. We then need to show that for some e1,…,ep<p−de_1,\ldots,e_p<p-de1​,…,ep​<p−d with e1+⋯+ep=deg⁡F=(p−1)(p−d−1)e_1+\cdots+e_p=\deg F=(p-1)(p-d-1)e1​+⋯+ep​=degF=(p−1)(p−d−1), the coefficient of x1e1⋯xpepx_1^{e_1}\cdots x_p^{e_p}x1e1​​⋯xpep​​ in FFF is nonzero. Taking ei=p−d−1−ei′e_i=p-d-1-e_i'ei​=p−d−1−ei′​ for ei′≥0e_i'\ge0ei′​≥0, we have that e1′+⋯+ep′=p(p−d−1)−deg⁡F=p−d−1e_1'+\cdots+e_p'=p(p-d-1)-\deg F=p-d-1e1′​+⋯+ep′​=p(p−d−1)−degF=p−d−1, so there are (2p−d−2p−1)\binom{2p-d-2}{p-1}(p−12p−d−2​) choices for which coefficient of FFF to consider. Unfortunately from some computer calculations it is possible for these coefficients to vanish, and it seems hopeless to evaluate coefficients of FFF explicitly in general. But it would be pretty weird if all of these many coefficients vanished. We might be able to say something if we replace ∑i∈Fpijxi\sum_{i\in\mathbb F_p}i^jx_i∑i∈Fp​​ijxi​ with generic/typical linear functions, but it seems much harder to say something about specific linear functions. It doesn't seem like the algebraic structure in the coefficients would give rise to any obstructions, but formalizing this intuition feels pretty out of reach. In any case, it strongly suggests, at least to me, that the answer to the question should be yes.

Note that this strategy would not work if the degree bound was d−1d-1d−1 instead of ddd: then we would have deg⁡F=(p−1)(p−d)=e1+⋯+ep≤p(p−d−1)=(p−1)(p−d)−d\deg F=(p-1)(p-d)=e_1+\cdots+e_p\le p(p-d-1)=(p-1)(p-d)-ddegF=(p−1)(p−d)=e1​+⋯+ep​≤p(p−d−1)=(p−1)(p−d)−d, a contradiction. From the point of view of this approach, that the reason the property holds is because ∑i∈Fpijxi\sum_{i\in\mathbb F_p}i^jx_i∑i∈Fp​​ijxi​ are "typical" linear functions and it shouldn't be possible for all of those coefficients in FFF to vanish, this is some weak evidence that ddd is the lowest possible degree bound. It's possibly a easier question to prove this direction by constructing sets A1,…,ApA_1,\ldots,A_pA1​,…,Ap​ of size ddd so that ⋃i∈Fp({i}×Ai)\bigcup_{i\in\mathbb F_p}(\{i\}\times A_i)⋃i∈Fp​​({i}×Ai​) intersects the graph of every polynomial of degree at most d−1d-1d−1. I haven't thought too much about this direction but there could be some interesting interplay between algebraic and combinatorial ideas going into such a construction, if it exists.

If anyone has thoughts on this question or ideas to make progress, I would be very happy to hear them. In any case, I hope that this might be an interesting problem for some to think about.

Statement and context adapted from MathOverflow · Michael Ren

CC BY-SA 4.0 · Formatting adapted; mathematical formulas preserved · Source history

A few useful definitions

Prime number
An integer greater than 1 whose only positive divisors are 1 and itself. Examples include 2, 3, 5 and 7.
Graph
A set of vertices connected by edges. A vertex’s degree counts the incident edges; the statement specifies whether directions or multiple edges are allowed.

Topics : nt.number-theory · co.combinatorics

Authors listed by the source : Michael Ren

Sources and original status

  • MathOverflow Status in source : unanswered at collection

Last activity on the question : August 5, 2025

Coverage, sources and method

This count measures imported entries, including distinct variants. It is not a count of all open mathematical questions worldwide. One entry may belong to several fields and sources.

This directory is neither exhaustive nor updated in real time. “Reported open” describes the source classification observed at import; imported entries have not each undergone independent mathematical verification. The 32 explained entries were reviewed separately.

Formal Conjectures: only “research open” statements with no reported formal proof are retained; their tag is checked in a pinned repository revision. Variants remain distinct. A “sorry” placeholder is not sufficient to establish open status.

Erdős: solved or independent problems and entries with a Lean solution are excluded, including “open (Lean)”. Exact matches to the main Formal Conjectures statements are merged.

Open Problem Garden: the open index is checked against the solved index; spam, identified clones and some outdated statuses are excluded. Statements and definition context are attributed to their original pages; formulas are preserved and the content remains under the GFDL. Recognized duplicates across sources are merged; this does not resolve every mathematical equivalence.

OEIS: direct extraction of conjectural comments and formulas, one entry per sequence, excluding mentioned resolutions. MathOverflow and Math Stack Exchange: questions classified as unanswered by their API, excluding closed posts and non-research categories. They remain distinct from problems reported open. This is a partial, dated collection; every entry credits its authors and license.

Documented exclusions account for recent announcements and conflicting statuses. A stronger variant or a special case can remain open after a different statement is settled.

Attribution: The Formal Conjectures Authors; teorth/erdosproblems and contributors; Open Problem Garden and contributors. Each source retains its license.

  • Formal Conjectures · 1,924 · Apache-2.0 / CC-BY-4.0
  • Erdős Problems (teorth) · 622 · Apache-2.0
  • Open Problem Garden · 404 · GFDL (source content); only title/category/link metadata imported
  • OEIS · 18,857 · CC BY-SA 4.0
  • MathOverflow · 19,035 · CC BY-SA (version on each entry)
  • Mathematics Stack Exchange · 35 · CC BY-SA (version on each entry)
Report a development or correction
mathatlas

An independent atlas to understand, read, and question research.

The papers present claimed results at different stages of verification.
NewsletterShare feedbackAbout Data and privacy
Created by Sonny Mupfuni