返回题库

AIME 2026 I · 第 4 题

AIME 2026 I — Problem 4

专题
Contest Math
难度
L4
来源
AIME

题目详情

Problem

Find the number of integers less than or equal to 100100 that are equal to a+b+aba + b + ab for some choice of distinct positive integers aa and bb.

解析

Solution 1

Let xx be equal to a+b+aba+b+ab. Adding 1 to both sides, we get a+b+ab+1=(a+1)(b+1)=x+1a+b+ab+1=(a+1)(b+1)=x+1. Because we know aa and bb have to be positive, this means that x+1x+1 cannot be prime. We have 2525 primes less than 100100, but we have to also count 101101 since x=100x=100 is still in the range of 11 to 100100. Another thing we can notice is that perfect squares of primes don’t work either. The primes whose squares are less than 100100 are 22,33,55, and 77. Therefore, the answer is 100264=070100-26-4=\boxed{070}.

- ChickensEatGrass

Solution 2 (Basically equivalent to solution 1, but a little more explanation)

Rewrite the expression as a+b+ab=(a+1)(b+1)1a + b + ab = (a + 1)(b + 1)-1.

Let x=a+1x = a + 1 and y=b+1y = b + 1. Then xx and yy are integers at least 22, and since aa and bb are distinct, xyx \neq y. The expression becomes xy1xy - 1, and the condition that the value be at most 100100 is equivalent to xy101xy \leq 101.

Thus we are counting the integers of the form xy1xy-1 with xx and yy distinct integers at least 22 and product at most 101101. Different choices of xx and yy that give the same product produce the same value, so this reduces to counting integers m=xy101m = xy \neq 101 that can be written as a product of two distinct integers at least 22.

The number mm cannot be 11 or a prime. Most composite numbers work, but the exception is when mm is a perfect square whose only factorization uses equal factors, since that would force x=yx = y, which is not allowed. The only such squares at most 101101 are 44, 99, 2525, and 4949. Every other composite number at most 101101 has a factorization with two distinct factors at least 22.

There are 101101 integers from 11 to 101101. Removing 11 leaves 100100. Among these, 2626 are prime, so there are 7474 composite numbers. Excluding the four squares 44, 99, 2525, and 4949 leaves 7070 valid values of mm. Each gives a distinct integer m1m - 1 at most 100100.

Therefore, the number of integers less than or equal to 100100 that can be written in the specified form is 070\boxed{070}.

~Gray_Wolf

~ LaTeX\LaTeX by Logibyte

Solution 3 (Bash)

We take inspiration from the Sieve of Eratosthenes

Case 1: a=1a=1 and b>11+2bb>1 \rightarrow 1+2b

We can do two things (and more generally for a=2,3,a=2, 3, etc) 1. We find the smallest value that satisfies the expression 1+2b1+2b, and use the period of 22 to box numbers that are 22 more than that minimum 2. Cross out any number below 1+2b1+2b that is not circled. Boxing 55 and crossing out 1,2,3,41,2,3,4 and circling all 5,7,9,,97,995,7,9, \dots, 97, 99 gives us the following:

\begin{array}{|c|c|c|c|c|c|c|c|c|c|} \hline \cancel{1} & \cancel{2} & \cancel{3} & \cancel{4} & \boxed{5} & 6 & \boxed{7} & 8 & \boxed{9} & 10 \\ \hline \boxed{11} & 12 & \boxed{13} & 14 & \boxed{15} & 16 & \boxed{17} & 18 & \boxed{19} & 20 \\ \hline \boxed{21} & 22 & \boxed{23} & 24 & \boxed{25} & 26 & \boxed{27} & 28 & \boxed{29} & 30 \\ \hline \boxed{31} & 32 & \boxed{33} & 34 & \boxed{35} & 36 & \boxed{37} & 38 & \boxed{39} & 40 \\ \hline \boxed{41} & 42 & \boxed{43} & 44 & \boxed{45} & 46 & \boxed{47} & 48 & \boxed{49} & 50 \\ \hline \boxed{51} & 52 & \boxed{53} & 54 & \boxed{55} & 56 & \boxed{57} & 58 & \boxed{59} & 60 \\ \hline \boxed{61} & 62 & \boxed{63} & 64 & \boxed{65} & 66 & \boxed{67} & 68 & \boxed{69} & 70 \\ \hline \boxed{71} & 72 & \boxed{73} & 74 & \boxed{75} & 76 & \boxed{77} & 78 & \boxed{79} & 80 \\ \hline \boxed{81} & 82 & \boxed{83} & 84 & \boxed{85} & 86 & \boxed{87} & 88 & \boxed{89} & 90 \\ \hline \boxed{91} & 92 & \boxed{93} & 94 & \boxed{95} & 96 & \boxed{97} & 98 & \boxed{99} & 100 \\ \hline \end{array}

Case 2: we have a=2,b>22+3ba=2, b>2 \rightarrow 2+3b

1. minimum is b=311.b=3 \rightarrow 11.

2. we cross out 6,8,10.6, 8, 10.

3 we add 14,20,2614, 20, 26 \dots etc.

\begin{array}{|c|c|c|c|c|c|c|c|c|c|} \hline \cancel{1} & \cancel{2} & \cancel{3} & \cancel{4} & \boxed{5} & \cancel{6} & \boxed{7} & \cancel{8} & \boxed{9} & \cancel{10} \\ \hline \boxed{11} & 12 & \boxed{13} & \boxed{14} & \boxed{15} & 16 & \boxed{17} & 18 & \boxed{19} & \boxed{20} \\ \hline \boxed{21} & 22 & \boxed{23} & 24 & \boxed{25} & \boxed{26} & \boxed{27} & 28 & \boxed{29} & 30 \\ \hline \boxed{31} & \boxed{32} & \boxed{33} & 34 & \boxed{35} & 36 & \boxed{37} & \boxed{38} & \boxed{39} & 40 \\ \hline \boxed{41} & 42 & \boxed{43} & \boxed{44} & \boxed{45} & 46 & \boxed{47} & 48 & \boxed{49} & \boxed{50} \\ \hline \boxed{51} & 52 & \boxed{53} & 54 & \boxed{55} & \boxed{56} & \boxed{57} & 58 & \boxed{59} & 60 \\ \hline \boxed{61} & \boxed{62} & \boxed{63} & 64 & \boxed{65} & 66 & \boxed{67} & \boxed{68} & \boxed{69} & 70 \\ \hline \boxed{71} & 72 & \boxed{73} & \boxed{74} & \boxed{75} & 76 & \boxed{77} & 78 & \boxed{79} & \boxed{80} \\ \hline \boxed{81} & 82 & \boxed{83} & 84 & \boxed{85} & \boxed{86} & \boxed{87} & 88 & \boxed{89} & 90 \\ \hline \boxed{91} & \boxed{92} & \boxed{93} & 94 & \boxed{95} & 96 & \boxed{97} & \boxed{98} & \boxed{99} & 100 \\ \hline \end{array}

Case 3: 3+4b.3+4b.

1. minimum is 19.19.

2. note nothing extra gets boxed (odd).

\begin{array}{|c|c|c|c|c|c|c|c|c|c|} \hline \cancel{1} & \cancel{2} & \cancel{3} & \cancel{4} & \boxed{5} & \cancel{6} & \boxed{7} & \cancel{8} & \boxed{9} & \cancel{10} \\ \hline \boxed{11} & 12 & \boxed{13} & \boxed{14} & \boxed{15} & \cancel{16} & \boxed{17} & \cancel{18} & \boxed{19} & \boxed{20} \\ \hline \boxed{21} & 22 & \boxed{23} & 24 & \boxed{25} & \boxed{26} & \boxed{27} & 28 & \boxed{29} & 30 \\ \hline \boxed{31} & \boxed{32} & \boxed{33} & 34 & \boxed{35} & 36 & \boxed{37} & \boxed{38} & \boxed{39} & 40 \\ \hline \boxed{41} & 42 & \boxed{43} & \boxed{44} & \boxed{45} & 46 & \boxed{47} & 48 & \boxed{49} & \boxed{50} \\ \hline \boxed{51} & 52 & \boxed{53} & 54 & \boxed{55} & \boxed{56} & \boxed{57} & 58 & \boxed{59} & 60 \\ \hline \boxed{61} & \boxed{62} & \boxed{63} & 64 & \boxed{65} & 66 & \boxed{67} & \boxed{68} & \boxed{69} & 70 \\ \hline \boxed{71} & 72 & \boxed{73} & \boxed{74} & \boxed{75} & 76 & \boxed{77} & 78 & \boxed{79} & \boxed{80} \\ \hline \boxed{81} & 82 & \boxed{83} & 84 & \boxed{85} & \boxed{86} & \boxed{87} & 88 & \boxed{89} & 90 \\ \hline \boxed{91} & \boxed{92} & \boxed{93} & 94 & \boxed{95} & 96 & \boxed{97} & \boxed{98} & \boxed{99} & 100 \\ \hline \end{array}

Case 4: 4+5b.4+5b.

1. minimum is 29.29.

2. column of 44 gets boxed.

\begin{array}{|c|c|c|c|c|c|c|c|c|c|} \hline \cancel{1} & \cancel{2} & \cancel{3} & \cancel{4} & \boxed{5} & \cancel{6} & \boxed{7} & \cancel{8} & \boxed{9} & \cancel{10} \\ \hline \boxed{11} & \cancel{12} & \boxed{13} & \boxed{14} & \boxed{15} & \cancel{16} & \boxed{17} & \cancel{18} & \boxed{19} & \boxed{20} \\ \hline \boxed{21} & \cancel{22} & \boxed{23} & \cancel{24} & \boxed{25} & \boxed{26} & \boxed{27} & \cancel{28} & \boxed{29} & 30 \\ \hline \boxed{31} & \boxed{32} & \boxed{33} & \boxed{34} & \boxed{35} & 36 & \boxed{37} & \boxed{38} & \boxed{39} & 40 \\ \hline \boxed{41} & 42 & \boxed{43} & \boxed{44} & \boxed{45} & 46 & \boxed{47} & 48 & \boxed{49} & \boxed{50} \\ \hline \boxed{51} & 52 & \boxed{53} & \boxed{54} & \boxed{55} & \boxed{56} & \boxed{57} & 58 & \boxed{59} & 60 \\ \hline \boxed{61} & \boxed{62} & \boxed{63} & \boxed{64} & \boxed{65} & 66 & \boxed{67} & \boxed{68} & \boxed{69} & 70 \\ \hline \boxed{71} & 72 & \boxed{73} & \boxed{74} & \boxed{75} & 76 & \boxed{77} & 78 & \boxed{79} & \boxed{80} \\ \hline \boxed{81} & 82 & \boxed{83} & \boxed{84} & \boxed{85} & \boxed{86} & \boxed{87} & 88 & \boxed{89} & 90 \\ \hline \boxed{91} & \boxed{92} & \boxed{93} & \boxed{94} & \boxed{95} & 96 & \boxed{97} & \boxed{98} & \boxed{99} & 100 \\ \hline \end{array}

Case 5: 5+6b.5+6b.

1. minimum is 41.41.

2. no boxes (odd).

\begin{array}{|c|c|c|c|c|c|c|c|c|c|} \hline \cancel{1} & \cancel{2} & \cancel{3} & \cancel{4} & \boxed{5} & \cancel{6} & \boxed{7} & \cancel{8} & \boxed{9} & \cancel{10} \\ \hline \boxed{11} & \cancel{12} & \boxed{13} & \boxed{14} & \boxed{15} & \cancel{16} & \boxed{17} & \cancel{18} & \boxed{19} & \boxed{20} \\ \hline \boxed{21} & \cancel{22} & \boxed{23} & \cancel{24} & \boxed{25} & \boxed{26} & \boxed{27} & \cancel{28} & \boxed{29} & \cancel{30} \\ \hline \boxed{31} & \boxed{32} & \boxed{33} & \boxed{34} & \boxed{35} & \cancel{36} & \boxed{37} & \boxed{38} & \boxed{39} & \cancel{40} \\ \hline \boxed{41} & 42 & \boxed{43} & \boxed{44} & \boxed{45} & 46 & \boxed{47} & 48 & \boxed{49} & \boxed{50} \\ \hline \boxed{51} & 52 & \boxed{53} & \boxed{54} & \boxed{55} & \boxed{56} & \boxed{57} & 58 & \boxed{59} & 60 \\ \hline \boxed{61} & \boxed{62} & \boxed{63} & \boxed{64} & \boxed{65} & 66 & \boxed{67} & \boxed{68} & \boxed{69} & 70 \\ \hline \boxed{71} & 72 & \boxed{73} & \boxed{74} & \boxed{75} & 76 & \boxed{77} & 78 & \boxed{79} & \boxed{80} \\ \hline \boxed{81} & 82 & \boxed{83} & \boxed{84} & \boxed{85} & \boxed{86} & \boxed{87} & 88 & \boxed{89} & 90 \\ \hline \boxed{91} & \boxed{92} & \boxed{93} & \boxed{94} & \boxed{95} & 96 & \boxed{97} & \boxed{98} & \boxed{99} & 100 \\ \hline \end{array}

Case 6: 6+7b.6+7b.

1. minimum is 55.55.

2. no trick here (it's a bash what do you expect).

\begin{array}{|c|c|c|c|c|c|c|c|c|c|} \hline \cancel{1} & \cancel{2} & \cancel{3} & \cancel{4} & \boxed{5} & \cancel{6} & \boxed{7} & \cancel{8} & \boxed{9} & \cancel{10} \\ \hline \boxed{11} & \cancel{12} & \boxed{13} & \boxed{14} & \boxed{15} & \cancel{16} & \boxed{17} & \cancel{18} & \boxed{19} & \boxed{20} \\ \hline \boxed{21} & \cancel{22} & \boxed{23} & \cancel{24} & \boxed{25} & \boxed{26} & \boxed{27} & \cancel{28} & \boxed{29} & \cancel{30} \\ \hline \boxed{31} & \boxed{32} & \boxed{33} & \boxed{34} & \boxed{35} & \cancel{36} & \boxed{37} & \boxed{38} & \boxed{39} & \cancel{40} \\ \hline \boxed{41} & \cancel{42} & \boxed{43} & \boxed{44} & \boxed{45} & \cancel{46} & \boxed{47} & \cancel{48} & \boxed{49} & \boxed{50} \\ \hline \boxed{51} & \cancel{52} & \boxed{53} & \boxed{54} & \boxed{55} & \boxed{56} & \boxed{57} & 58 & \boxed{59} & 60 \\ \hline \boxed{61} & \boxed{62} & \boxed{63} & \boxed{64} & \boxed{65} & 66 & \boxed{67} & \boxed{68} & \boxed{69} & 70 \\ \hline \boxed{71} & 72 & \boxed{73} & \boxed{74} & \boxed{75} & \boxed{76} & \boxed{77} & 78 & \boxed{79} & \boxed{80} \\ \hline \boxed{81} & 82 & \boxed{83} & \boxed{84} & \boxed{85} & \boxed{86} & \boxed{87} & 88 & \boxed{89} & \boxed{90} \\ \hline \boxed{91} & \boxed{92} & \boxed{93} & \boxed{94} & \boxed{95} & 96 & \boxed{97} & \boxed{98} & \boxed{99} & 100 \\ \hline \end{array}

Case 7: 7+8b.7+8b.

1. minimum is 71.71.

2. no box (odd).

\begin{array}{|c|c|c|c|c|c|c|c|c|c|} \hline \cancel{1} & \cancel{2} & \cancel{3} & \cancel{4} & \boxed{5} & \cancel{6} & \boxed{7} & \cancel{8} & \boxed{9} & \cancel{10} \\ \hline \boxed{11} & \cancel{12} & \boxed{13} & \boxed{14} & \boxed{15} & \cancel{16} & \boxed{17} & \cancel{18} & \boxed{19} & \boxed{20} \\ \hline \boxed{21} & \cancel{22} & \boxed{23} & \cancel{24} & \boxed{25} & \boxed{26} & \boxed{27} & \cancel{28} & \boxed{29} & \cancel{30} \\ \hline \boxed{31} & \boxed{32} & \boxed{33} & \boxed{34} & \boxed{35} & \cancel{36} & \boxed{37} & \boxed{38} & \boxed{39} & \cancel{40} \\ \hline \boxed{41} & \cancel{42} & \boxed{43} & \boxed{44} & \boxed{45} & \cancel{46} & \boxed{47} & \cancel{48} & \boxed{49} & \boxed{50} \\ \hline \boxed{51} & \cancel{52} & \boxed{53} & \boxed{54} & \boxed{55} & \boxed{56} & \boxed{57} & \cancel{58} & \boxed{59} & \cancel{60} \\ \hline \boxed{61} & \boxed{62} & \boxed{63} & \boxed{64} & \boxed{65} & \cancel{66} & \boxed{67} & \boxed{68} & \boxed{69} & \cancel{70} \\ \hline \boxed{71} & 72 & \boxed{73} & \boxed{74} & \boxed{75} & \boxed{76} & \boxed{77} & 78 & \boxed{79} & \boxed{80} \\ \hline \boxed{81} & 82 & \boxed{83} & \boxed{84} & \boxed{85} & \boxed{86} & \boxed{87} & 88 & \boxed{89} & \boxed{90} \\ \hline \boxed{91} & \boxed{92} & \boxed{93} & \boxed{94} & \boxed{95} & 96 & \boxed{97} & \boxed{98} & \boxed{99} & 100 \\ \hline \end{array}

Case 8: 8+9b.8+9b.

1. minimum 89.89.

2. (case 9 exceeds 100) so we can cross everything out now.

\begin{array}{|c|c|c|c|c|c|c|c|c|c|} \hline \cancel{1} & \cancel{2} & \cancel{3} & \cancel{4} & \boxed{5} & \cancel{6} & \boxed{7} & \cancel{8} & \boxed{9} & \cancel{10} \\ \hline \boxed{11} & \cancel{12} & \boxed{13} & \boxed{14} & \boxed{15} & \cancel{16} & \boxed{17} & \cancel{18} & \boxed{19} & \boxed{20} \\ \hline \boxed{21} & \cancel{22} & \boxed{23} & \cancel{24} & \boxed{25} & \boxed{26} & \boxed{27} & \cancel{28} & \boxed{29} & \cancel{30} \\ \hline \boxed{31} & \boxed{32} & \boxed{33} & \boxed{34} & \boxed{35} & \cancel{36} & \boxed{37} & \boxed{38} & \boxed{39} & \cancel{40} \\ \hline \boxed{41} & \cancel{42} & \boxed{43} & \boxed{44} & \boxed{45} & \cancel{46} & \boxed{47} & \cancel{48} & \boxed{49} & \boxed{50} \\ \hline \boxed{51} & \cancel{52} & \boxed{53} & \boxed{54} & \boxed{55} & \boxed{56} & \boxed{57} & \cancel{58} & \boxed{59} & \cancel{60} \\ \hline \boxed{61} & \boxed{62} & \boxed{63} & \boxed{64} & \boxed{65} & \cancel{66} & \boxed{67} & \boxed{68} & \boxed{69} & \cancel{70} \\ \hline \boxed{71} & \cancel{72} & \boxed{73} & \boxed{74} & \boxed{75} & \boxed{76} & \boxed{77} & \cancel{78} & \boxed{79} & \boxed{80} \\ \hline \boxed{81} & \cancel{82} & \boxed{83} & \boxed{84} & \boxed{85} & \boxed{86} & \boxed{87} & \cancel{88} & \boxed{89} & \boxed{90} \\ \hline \boxed{91} & \boxed{92} & \boxed{93} & \boxed{94} & \boxed{95} & \cancel{96} & \boxed{97} & \boxed{98} & \boxed{99} & \cancel{100} \\ \hline \end{array}

Counting the ones that are boxed we get 070\boxed{070} numbers.

~Soccerstar9

~arushkrisp

Solution 4 (Simon's favorite factoring trick!)

Using Simon's favorite factoring trick, a+b+ab+1101a+b+ab+1\leq 101, or (a+1)(b+1)101(a+1)(b+1)\leq 101. Because a,ba, b are distinct, all squares that don't have a non square representation, which at or below 100100 are removed from the set, which are only five of them (12,22,32,52,72)(1^2, 2^2, 3^2, 5^2, 7^2). This means 9595 remain.

More can be removed, such as primes, that cannot be factorized into a number less than or equal to 101101. By beast academy memorization, there are 25 primes less than or equal to 101. 9525=7095 - 25 = \fbox{70}, which is the answer.

~minor LaTeX\LaTeX formatting by yvz2900 (who did not write the original solution)

Video Solution (Fast and Easy 🔥🚀)

2026 AIME I #4

By piacademyus.org

Video Solution (Logic)

https://www.youtube.com/watch?v=iCKaduIZu5Q - Continuum Math