MathGrit
ProblemsTechniquesPricing
Sign inGet started
Back to problems

Functions With Exactly One Inverse Condition

2175ExpertCombinatoricsFunctions

Harvard-MIT Mathematics Tournament

For what positive integers $n$ do there exist functions $f, g:\{1,2, \ldots, n\} \rightarrow \{1,2, \ldots, n\}$ such that for each $1 \leq i \leq n$, either $f(g(i))=i$ or $g(f(i))=i$, but not both?
0 students attempted0% solvedRating 2175

Related practice paths

AIME PracticeInteger-answer practice for deeper multi-step problems.How to Qualify for AIMEScore goals, contest choice, and prep habits for AIME hopefuls.AIME Practice StrategyHow to improve accuracy on high-difficulty problems.

Ready to check your answer?

Create an account to submit answers, save history, and track your rating.

Progressive Hints

Unlock hints one at a time — each reveals a little more without spoiling the solution.

Step-by-Step Solutions1

Multiple solution approaches with detailed walkthroughs, unlocked after you solve the problem.

AI-Powered Grading

Instant feedback on your answer — handles fractions, decimals, and equivalent forms.

Curated problem bank

Supported tracks for AMC, AIME, MATHCOUNTS, and olympiad-style training, plus global problem sources like UKMT, Euclid, and Kangaroo.