Stay ahead of learning milestones! Enroll in a class over the summer!

G
Topic
First Poster
Last Poster
k a May Highlights and 2025 AoPS Online Class Information
jlacosta   0
May 1, 2025
May is an exciting month! National MATHCOUNTS is the second week of May in Washington D.C. and our Founder, Richard Rusczyk will be presenting a seminar, Preparing Strong Math Students for College and Careers, on May 11th.

Are you interested in working towards MATHCOUNTS and don’t know where to start? We have you covered! If you have taken Prealgebra, then you are ready for MATHCOUNTS/AMC 8 Basics. Already aiming for State or National MATHCOUNTS and harder AMC 8 problems? Then our MATHCOUNTS/AMC 8 Advanced course is for you.

Summer camps are starting next month at the Virtual Campus in math and language arts that are 2 - to 4 - weeks in duration. Spaces are still available - don’t miss your chance to have an enriching summer experience. There are middle and high school competition math camps as well as Math Beasts camps that review key topics coupled with fun explorations covering areas such as graph theory (Math Beasts Camp 6), cryptography (Math Beasts Camp 7-8), and topology (Math Beasts Camp 8-9)!

Be sure to mark your calendars for the following upcoming events:
[list][*]May 9th, 4:30pm PT/7:30pm ET, Casework 2: Overwhelming Evidence — A Text Adventure, a game where participants will work together to navigate the map, solve puzzles, and win! All are welcome.
[*]May 19th, 4:30pm PT/7:30pm ET, What's Next After Beast Academy?, designed for students finishing Beast Academy and ready for Prealgebra 1.
[*]May 20th, 4:00pm PT/7:00pm ET, Mathcamp 2025 Qualifying Quiz Part 1 Math Jam, Problems 1 to 4, join the Canada/USA Mathcamp staff for this exciting Math Jam, where they discuss solutions to Problems 1 to 4 of the 2025 Mathcamp Qualifying Quiz!
[*]May 21st, 4:00pm PT/7:00pm ET, Mathcamp 2025 Qualifying Quiz Part 2 Math Jam, Problems 5 and 6, Canada/USA Mathcamp staff will discuss solutions to Problems 5 and 6 of the 2025 Mathcamp Qualifying Quiz![/list]
Our full course list for upcoming classes is below:
All classes run 7:30pm-8:45pm ET/4:30pm - 5:45pm PT unless otherwise noted.

Introductory: Grades 5-10

Prealgebra 1 Self-Paced

Prealgebra 1
Tuesday, May 13 - Aug 26
Thursday, May 29 - Sep 11
Sunday, Jun 15 - Oct 12
Monday, Jun 30 - Oct 20
Wednesday, Jul 16 - Oct 29

Prealgebra 2 Self-Paced

Prealgebra 2
Wednesday, May 7 - Aug 20
Monday, Jun 2 - Sep 22
Sunday, Jun 29 - Oct 26
Friday, Jul 25 - Nov 21

Introduction to Algebra A Self-Paced

Introduction to Algebra A
Sunday, May 11 - Sep 14 (1:00 - 2:30 pm ET/10:00 - 11:30 am PT)
Wednesday, May 14 - Aug 27
Friday, May 30 - Sep 26
Monday, Jun 2 - Sep 22
Sunday, Jun 15 - Oct 12
Thursday, Jun 26 - Oct 9
Tuesday, Jul 15 - Oct 28

Introduction to Counting & Probability Self-Paced

Introduction to Counting & Probability
Thursday, May 15 - Jul 31
Sunday, Jun 1 - Aug 24
Thursday, Jun 12 - Aug 28
Wednesday, Jul 9 - Sep 24
Sunday, Jul 27 - Oct 19

Introduction to Number Theory
Friday, May 9 - Aug 1
Wednesday, May 21 - Aug 6
Monday, Jun 9 - Aug 25
Sunday, Jun 15 - Sep 14
Tuesday, Jul 15 - Sep 30

Introduction to Algebra B Self-Paced

Introduction to Algebra B
Tuesday, May 6 - Aug 19
Wednesday, Jun 4 - Sep 17
Sunday, Jun 22 - Oct 19
Friday, Jul 18 - Nov 14

Introduction to Geometry
Sunday, May 11 - Nov 9
Tuesday, May 20 - Oct 28
Monday, Jun 16 - Dec 8
Friday, Jun 20 - Jan 9
Sunday, Jun 29 - Jan 11
Monday, Jul 14 - Jan 19

Paradoxes and Infinity
Mon, Tue, Wed, & Thurs, Jul 14 - Jul 16 (meets every day of the week!)

Intermediate: Grades 8-12

Intermediate Algebra
Sunday, Jun 1 - Nov 23
Tuesday, Jun 10 - Nov 18
Wednesday, Jun 25 - Dec 10
Sunday, Jul 13 - Jan 18
Thursday, Jul 24 - Jan 22

Intermediate Counting & Probability
Wednesday, May 21 - Sep 17
Sunday, Jun 22 - Nov 2

Intermediate Number Theory
Sunday, Jun 1 - Aug 24
Wednesday, Jun 18 - Sep 3

Precalculus
Friday, May 16 - Oct 24
Sunday, Jun 1 - Nov 9
Monday, Jun 30 - Dec 8

Advanced: Grades 9-12

Olympiad Geometry
Tuesday, Jun 10 - Aug 26

Calculus
Tuesday, May 27 - Nov 11
Wednesday, Jun 25 - Dec 17

Group Theory
Thursday, Jun 12 - Sep 11

Contest Preparation: Grades 6-12

MATHCOUNTS/AMC 8 Basics
Friday, May 23 - Aug 15
Monday, Jun 2 - Aug 18
Thursday, Jun 12 - Aug 28
Sunday, Jun 22 - Sep 21
Tues & Thurs, Jul 8 - Aug 14 (meets twice a week!)

MATHCOUNTS/AMC 8 Advanced
Sunday, May 11 - Aug 10
Tuesday, May 27 - Aug 12
Wednesday, Jun 11 - Aug 27
Sunday, Jun 22 - Sep 21
Tues & Thurs, Jul 8 - Aug 14 (meets twice a week!)

AMC 10 Problem Series
Friday, May 9 - Aug 1
Sunday, Jun 1 - Aug 24
Thursday, Jun 12 - Aug 28
Tuesday, Jun 17 - Sep 2
Sunday, Jun 22 - Sep 21 (1:00 - 2:30 pm ET/10:00 - 11:30 am PT)
Monday, Jun 23 - Sep 15
Tues & Thurs, Jul 8 - Aug 14 (meets twice a week!)

AMC 10 Final Fives
Sunday, May 11 - Jun 8
Tuesday, May 27 - Jun 17
Monday, Jun 30 - Jul 21

AMC 12 Problem Series
Tuesday, May 27 - Aug 12
Thursday, Jun 12 - Aug 28
Sunday, Jun 22 - Sep 21
Wednesday, Aug 6 - Oct 22

AMC 12 Final Fives
Sunday, May 18 - Jun 15

AIME Problem Series A
Thursday, May 22 - Jul 31

AIME Problem Series B
Sunday, Jun 22 - Sep 21

F=ma Problem Series
Wednesday, Jun 11 - Aug 27

WOOT Programs
Visit the pages linked for full schedule details for each of these programs!


MathWOOT Level 1
MathWOOT Level 2
ChemWOOT
CodeWOOT
PhysicsWOOT

Programming

Introduction to Programming with Python
Thursday, May 22 - Aug 7
Sunday, Jun 15 - Sep 14 (1:00 - 2:30 pm ET/10:00 - 11:30 am PT)
Tuesday, Jun 17 - Sep 2
Monday, Jun 30 - Sep 22

Intermediate Programming with Python
Sunday, Jun 1 - Aug 24
Monday, Jun 30 - Sep 22

USACO Bronze Problem Series
Tuesday, May 13 - Jul 29
Sunday, Jun 22 - Sep 1

Physics

Introduction to Physics
Wednesday, May 21 - Aug 6
Sunday, Jun 15 - Sep 14
Monday, Jun 23 - Sep 15

Physics 1: Mechanics
Thursday, May 22 - Oct 30
Monday, Jun 23 - Dec 15

Relativity
Mon, Tue, Wed & Thurs, Jun 23 - Jun 26 (meets every day of the week!)
0 replies
jlacosta
May 1, 2025
0 replies
k i Adding contests to the Contest Collections
dcouchman   1
N Apr 5, 2023 by v_Enhance
Want to help AoPS remain a valuable Olympiad resource? Help us add contests to AoPS's Contest Collections.

Find instructions and a list of contests to add here: https://artofproblemsolving.com/community/c40244h1064480_contests_to_add
1 reply
dcouchman
Sep 9, 2019
v_Enhance
Apr 5, 2023
k i Zero tolerance
ZetaX   49
N May 4, 2019 by NoDealsHere
Source: Use your common sense! (enough is enough)
Some users don't want to learn, some other simply ignore advises.
But please follow the following guideline:


To make it short: ALWAYS USE YOUR COMMON SENSE IF POSTING!
If you don't have common sense, don't post.


More specifically:

For new threads:


a) Good, meaningful title:
The title has to say what the problem is about in best way possible.
If that title occured already, it's definitely bad. And contest names aren't good either.
That's in fact a requirement for being able to search old problems.

Examples:
Bad titles:
- "Hard"/"Medium"/"Easy" (if you find it so cool how hard/easy it is, tell it in the post and use a title that tells us the problem)
- "Number Theory" (hey guy, guess why this forum's named that way¿ and is it the only such problem on earth¿)
- "Fibonacci" (there are millions of Fibonacci problems out there, all posted and named the same...)
- "Chinese TST 2003" (does this say anything about the problem¿)
Good titles:
- "On divisors of a³+2b³+4c³-6abc"
- "Number of solutions to x²+y²=6z²"
- "Fibonacci numbers are never squares"


b) Use search function:
Before posting a "new" problem spend at least two, better five, minutes to look if this problem was posted before. If it was, don't repost it. If you have anything important to say on topic, post it in one of the older threads.
If the thread is locked cause of this, use search function.

Update (by Amir Hossein). The best way to search for two keywords in AoPS is to input
[code]+"first keyword" +"second keyword"[/code]
so that any post containing both strings "first word" and "second form".


c) Good problem statement:
Some recent really bad post was:
[quote]$lim_{n\to 1}^{+\infty}\frac{1}{n}-lnn$[/quote]
It contains no question and no answer.
If you do this, too, you are on the best way to get your thread deleted. Write everything clearly, define where your variables come from (and define the "natural" numbers if used). Additionally read your post at least twice before submitting. After you sent it, read it again and use the Edit-Button if necessary to correct errors.


For answers to already existing threads:


d) Of any interest and with content:
Don't post things that are more trivial than completely obvious. For example, if the question is to solve $x^{3}+y^{3}=z^{3}$, do not answer with "$x=y=z=0$ is a solution" only. Either you post any kind of proof or at least something unexpected (like "$x=1337, y=481, z=42$ is the smallest solution). Someone that does not see that $x=y=z=0$ is a solution of the above without your post is completely wrong here, this is an IMO-level forum.
Similar, posting "I have solved this problem" but not posting anything else is not welcome; it even looks that you just want to show off what a genius you are.

e) Well written and checked answers:
Like c) for new threads, check your solutions at least twice for mistakes. And after sending, read it again and use the Edit-Button if necessary to correct errors.



To repeat it: ALWAYS USE YOUR COMMON SENSE IF POSTING!


Everything definitely out of range of common sense will be locked or deleted (exept for new users having less than about 42 posts, they are newbies and need/get some time to learn).

The above rules will be applied from next monday (5. march of 2007).
Feel free to discuss on this here.
49 replies
ZetaX
Feb 27, 2007
NoDealsHere
May 4, 2019
Taking antipode on isosceles triangle's circumcenter
Nuran2010   1
N 6 minutes ago by Sadigly
Source: Azerbaijan Al-Khwarizmi IJMO TST 2025
In isosceles triangle, the condition $AB=AC>BC$ is satisfied. Point $D$ is taken on the circumcircle of $ABC$ such that $\angle CAD=90^{\circ}$.A line parallel to $AC$ which passes from $D$ intersects $AB$ and $BC$ respectively at $E$ and $F$.Show that circumcircle of $ADE$ passes from circumcenter of $DFC$.
1 reply
Nuran2010
May 11, 2025
Sadigly
6 minutes ago
Problem 3 (First Day)
Valentin Vornicu   48
N 9 minutes ago by holidayinn
Define a "hook" to be a figure made up of six unit squares as shown below in the picture, or any of the figures obtained by applying rotations and reflections to this figure.

IMAGE
Determine all $ m\times n$ rectangles that can be covered without gaps and without overlaps with hooks such that

- the rectangle is covered without gaps and without overlaps
- no part of a hook covers area outside the rectangle.
48 replies
1 viewing
Valentin Vornicu
Jul 12, 2004
holidayinn
9 minutes ago
Proving ZA=ZB
nAalniaOMliO   7
N 18 minutes ago by nAalniaOMliO
Source: Belarusian National Olympiad 2025
Point $H$ is the foot of the altitude from $A$ of triangle $ABC$. On the lines $AB$ and $AC$ points $X$ and $Y$ are marked such that the circumcircles of triangles $BXH$ and $CYH$ are tangent, call this circles $w_B$ and $w_C$ respectively. Tangent lines to circles $w_B$ and $w_C$ at $X$ and $Y$ intersect at $Z$.
Prove that $ZA=ZH$.
Vadzim Kamianetski
7 replies
1 viewing
nAalniaOMliO
Mar 28, 2025
nAalniaOMliO
18 minutes ago
Solve the equation x^3y^2(2y - x) = x^2y^4-36
Eukleidis   10
N 18 minutes ago by itsmathtime123
Source: Greek Mathematical Olympiad 2011 - P1
Solve in integers the equation
\[{x^3}{y^2}\left( {2y - x} \right) = {x^2}{y^4} - 36\]
10 replies
Eukleidis
May 13, 2011
itsmathtime123
18 minutes ago
Tangents involving a centroid with an isosceles triangle result
pithon_with_an_i   2
N 36 minutes ago by Funcshun840
Source: Revenge JOM 2025 Problem 5, Revenge JOMSL 2025 G5, Own
A triangle $ABC$ has centroid $G$. A line parallel to $BC$ passing through $G$ intersects the circumcircle of $ABC$ at a point $D$. Let lines $AD$ and $BC$ intersect at $E$. Suppose a point $P$ is chosen on $BC$ such that the tangent of the circumcircle of $DEP$ at $D$, the tangent of the circumcircle of $ABC$ at $A$ and $BC$ concur. Prove that $GP = PD$.

Remark 1
Remark 2
2 replies
pithon_with_an_i
3 hours ago
Funcshun840
36 minutes ago
orthocenter on sus circle
DVDTSB   1
N an hour ago by Double07
Source: Romania TST 2025 Day 2 P1
Let \( ABC \) be an acute triangle with \( AB < AC \), and let \( O \) be the center of its circumcircle. Let \( A' \) be the reflection of \( A \) with respect to \( BC \). The line through \( O \) parallel to \( BC \) intersects \( AC \) at \( F \), and the tangent at \( F \) to the circle \( \odot(BFC) \) intersects the line through \( A' \) parallel to \( BC \) at point \( M \). Let \( K \) be a point on the ray \( AB \), starting at \( A \), such that \( AK = 4AB \).
Show that the orthocenter of triangle \( ABC \) lies on the circle with diameter \( KM \).

Proposed by Radu Lecoiu

1 reply
1 viewing
DVDTSB
Today at 12:18 PM
Double07
an hour ago
Maximum number of pairs adding to powers of n
MathMystic33   0
an hour ago
Source: 2025 Macedonian Team Selection Test P6
Let $n>2$ be an even integer, and let $V$ be an arbitrary set of $8$ distinct integers. Define
\[
E(V,n)
\;=\;
\bigl\{(u,v)\in V\times V : u < v,\ u+v = n^k\text{ for some }k\in\mathbb{N}\bigr\}.
\]For each even $n>2$, determine the maximum possible size of the set $E(V,n)$.

0 replies
MathMystic33
an hour ago
0 replies
Incircle triangles inequality
MathMystic33   0
an hour ago
Source: 2025 Macedonian Team Selection Test P5
Let $\triangle ABC$ be a triangle with side‐lengths $a,b,c$, incenter $I$, and circumradius $R$. Denote by $P$ the area of $\triangle ABC$, and let $P_1,\;P_2,\;P_3$ be the areas of triangles $\triangle ABI$, $\triangle BCI$, and $\triangle CAI$, respectively. Prove that
\[
\frac{abc}{12R}
\;\le\;
\frac{P_1^2 + P_2^2 + P_3^2}{P}
\;\le\;
\frac{3R^3}{4\sqrt[3]{abc}}.
\]
0 replies
MathMystic33
an hour ago
0 replies
Functional equation with extra divisibility condition
MathMystic33   0
an hour ago
Source: 2025 Macedonian Team Selection Test P4
Find all functions $f:\mathbb{N}_0\to\mathbb{N}$ such that
1) \(f(a)\) divides \(a\) for every \(a\in\mathbb{N}_0\), and
2) for all \(a,b,k\in\mathbb{N}_0\) we have
\[
    f\bigl(f(a)+kb\bigr)\;=\;f\bigl(a + k\,f(b)\bigr).
  \]
0 replies
MathMystic33
an hour ago
0 replies
Cyclic inequality with rational functions
MathMystic33   0
an hour ago
Source: 2025 Macedonian Team Selection Test P3
Let \(x_1,x_2,x_3,x_4\) be positive real numbers. Prove the inequality
\[
\frac{x_1 + 3x_2}{x_2 + x_3}
\;+\;
\frac{x_2 + 3x_3}{x_3 + x_4}
\;+\;
\frac{x_3 + 3x_4}{x_4 + x_1}
\;+\;
\frac{x_4 + 3x_1}{x_1 + x_2}
\;\ge\;8.
\]
0 replies
MathMystic33
an hour ago
0 replies
Hexagonal lotus leaves
MathMystic33   0
an hour ago
Source: 2025 Macedonian Team Selection Test P2
A lake is in the shape of a regular hexagon of side length \(1\). Initially there is a single lotus leaf somewhere in the lake, sufficiently far from the shore. Each day, from every existing leaf a new leaf may grow at distance \(\sqrt{3}\) (measured between centers), provided it does not overlap any other leaf. If the lake is large enough that edge effects never interfere, what is the least number of days required to have \(2025\) leaves in the lake?
0 replies
MathMystic33
an hour ago
0 replies
Collinearity of intersection points in a triangle
MathMystic33   0
an hour ago
Source: 2025 Macedonian Team Selection Test P1
On the sides of the triangle \(\triangle ABC\) lie the following points: \(K\) and \(L\) on \(AB\), \(M\) on \(BC\), and \(N\) on \(CA\). Let
\[
P = AM\cap BN,\quad
R = KM\cap LN,\quad
S = KN\cap LM,
\]and let the line \(CS\) meet \(AB\) at \(Q\). Prove that the points \(P\), \(Q\), and \(R\) are collinear.
0 replies
MathMystic33
an hour ago
0 replies
3 variable FE with divisibility condition
pithon_with_an_i   2
N an hour ago by ATM_
Source: Revenge JOM 2025 Problem 1, Revenge JOMSL 2025 N2, Own
Find all functions $f:\mathbb{N} \rightarrow \mathbb{N}$ such that $$f(a)+f(b)+f(c) \mid a^2 + af(b) + cf(a)$$for all $a,b,c \in \mathbb{N}$.
2 replies
pithon_with_an_i
3 hours ago
ATM_
an hour ago
Dissection into equal‐area pieces using diagonals
MathMystic33   0
an hour ago
Source: Macedonian Mathematical Olympiad 2025 Problem 5
Let \(n>1\) be a natural number, and let \(K\) be the square of side length \(n\) subdivided into \(n^2\) unit squares. Determine for which values of \(n\) it is possible to dissect \(K\) into \(n\) connected regions of equal area using only the diagonals of those unit squares, subject to the condition that from each unit square at most one of its diagonals is used (some unit squares may have neither diagonal).
0 replies
MathMystic33
an hour ago
0 replies
Parity and sets
betongblander   7
N Apr 22, 2025 by ihategeo_1969
Source: Brazil National Olympiad 2020 5 Level 3
Let $n$ and $k$ be positive integers with $k$ $\le$ $n$. In a group of $n$ people, each one or always
speak the truth or always lie. Arnaldo can ask questions for any of these people
provided these questions are of the type: “In set $A$, what is the parity of people who speak to
true? ”, where $A$ is a subset of size $ k$ of the set of $n$ people. The answer can only
be $even$ or $odd$.
a) For which values of $n$ and $k$ is it possible to determine which people speak the truth and
which people always lie?
b) What is the minimum number of questions required to determine which people
speak the truth and which people always lie, when that number is finite?
7 replies
betongblander
Mar 18, 2021
ihategeo_1969
Apr 22, 2025
Parity and sets
G H J
G H BBookmark kLocked kLocked NReply
Source: Brazil National Olympiad 2020 5 Level 3
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
betongblander
144 posts
#1
Y by
Let $n$ and $k$ be positive integers with $k$ $\le$ $n$. In a group of $n$ people, each one or always
speak the truth or always lie. Arnaldo can ask questions for any of these people
provided these questions are of the type: “In set $A$, what is the parity of people who speak to
true? ”, where $A$ is a subset of size $ k$ of the set of $n$ people. The answer can only
be $even$ or $odd$.
a) For which values of $n$ and $k$ is it possible to determine which people speak the truth and
which people always lie?
b) What is the minimum number of questions required to determine which people
speak the truth and which people always lie, when that number is finite?
This post has been edited 14 times. Last edited by betongblander, Jun 7, 2021, 8:08 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
v_Enhance
6877 posts
#3 • 3 Y
Y by HamstPan38825, Yuuhhuuuuuuu, PHSH
The answer is that the task is possible exactly when $k$ is even in which case exactly $n$ questions are needed.
Treat each person as an element in ${\mathbb F}_2$, where $1$ for truth and $0$ for liar.
If you ask person $p$ about the set $A$, their response is \[ (p+1) + \sum_{a \in A} \pmod 2. \]So in other words, a query amounts to sampling a set of either $k-1$ elements ($p \in A$) or $k+1$ elements $(p \notin A$), and taking the sum.
Now, if $k$ is odd, the task is impossible, because replacing every $x \mapsto x+1$ changes no responses.
On the other hand, when $k$ is even, the following $n$ queries suffice:
  • Query $(x_1 + \dots + x_k) - x_i$ for $i=1,\dots,k$ By summing, one gets the value of $(k-1)(x_1 + \dots + x_k)$, and hence knows $x_i $ for $1 \le i \le k$.
  • Query $(x_1 + \dots + x_{k-2}) + x_i$ for $i = k+1, \dots, n$. This gets $x_i$ for $i \ge n$.
Moreover, at least $n$ queries are necessary because there are $2^n$ possible final answers for Arnaldo, and each query has two possible responses.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
john0512
4187 posts
#5
Y by
The answer is that it is not possible when $k$ is odd, and it takes $n$ turns when $k$ is even.

When $k$ is odd, he cannot distinguish between everyone telling the truth and everyone lying (since in both cases, all queries will result in the answer being "odd").

There are $2^n$ possible configurations, so if he asks at most $n-1$ questions, by Pidgeonhole there exists some string of answers that corresponds to more than one possible configuration, hence he cannot determine the configuration, which shows the lower bound.

When $k$ is even, we claim that he can simply query the same set $A$ each time and ask each person once. First, he asks each person in $A$ about $A$ and record the number of "even" responses and "odd" responses. These are the numbers of truth-tellers and liars in $A$ in some order. However, since $|A|$ is even, these two numbers are either both odd or both even. If they are both odd, then the people that said odd are truth-tellers and the people that said even are liars, and vice versa for the both even case. In both cases, he can determine the type of each person in $A$. Furthermore, he knows the true answer to his question at this point, so he can simply ask the same question to the remaining $n-k$ people to determine their type, hence done.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
bryanguo
1032 posts
#6
Y by
Hmm...this problem hurts my head

For odd $k,$ the process is impossible. For even $k,$ the process requires $n$ queries.

For odd $k,$ observe that a string of all $T$'s and all $F$'s cannot be distinguished, since every query results with the answer ``odd."

For even $k,$ we first observe that $n$ operations are necessary: At each step, we at most determine if a set of $k$ people has an odd number of $T$'s or $F$'s, which halves our possibilities. Thus, to get from $2^n$ possibilities to $1$ unique string, we require at least $n$ queries.

For upper bound, since $k$ is even, in any arbitrary set of $k$ people, the parity of the truthtellers and liars must be the same. Querying everyone in the set of $k$ people, we count number of ``evens" and ``odds" we obtain as answers. If the parity of the number of people who said ``odd" lines up with the number of ``odds" we counted, then these people are the truthtellers (similarly for even), and we know the rest are liars. Arnaldo can continue this process until there are $q<k$ people remaining, from which $q$ queries is sufficient to determine who are liars and truthtellers--by taking a set of $k$ people and querying the $q$ people of which we don't know who are truthtellers or liars.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
HamstPan38825
8866 posts
#7
Y by
For odd $k$, Arnaldo cannot distinguish between all truth-tellers or all liars, as he will receive an answer of ``odd" every time.

For even $k$, I claim that at least $n$ queries are required. $n$ queries are sufficient because Arnaldo may fix a group of $k$ people and ask all $n$ people the same question for those $k$ people. Among the $k$ people themselves, suppose $a$ people reply ``odd" and $b$ people reply ``even". Then $a$ and $b$ must be the same parity, and whichever response matches that common parity comes from truth-tellers. Correspondingly Arnaldo may determine the truthfulness of all $n$ people.

To see that $n-1$ questions cannot work, notice that upon asking $n$ questions, one to every member of the group, we receive $2^n$ possible combinations of responses. By the above discussion, every response corresponds to a unique distribution of truth-tellers and liars, and every distribution of truth-tellers and liars yields a unique set of responses. Hence, upon only asking $n-1$ questions, there will be at least $2$ possibilities for the distribution of liars.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
cursed_tangent1434
634 posts
#8 • 1 Y
Y by mathematical717
Solved with mathematical717. Very interesting problem. We faced some unnecessary difficulty with the bound, but we were just clowning around. Let a positive integer $k$ be called $n$-detectable if it possible to determine which people speak the truth and which people always lie. Further, the type of a person is whether he speaks the truth or lies.

(a) We claim that the answer is all even integers $k$ (and all $n\ge k$ for each $k$). First of all note that if $k$ is odd and all the $n$ people are of the same type, Arnaldo has no way of knowing which type it is since irrespective of which set of $k$ people and which person Arnaldo selects to question, the reply will always be 'even'. So he gains no new information, and will never know the liars and truth-tellers exactly.

(b) We now show that all even integers $k$ are $n$-detectable for all $n\ge k$ with $n$ being the minimum number of moves required to determine which people speak the truth and which people lie. Our algorithm for detecting the liars and the truth-tellers exactly within $n$ moves is as follows.

Consider a random set of $k$ people among the available $n$. Now, ask each and every person of this group the question concerning this group of $k$ people. Then, each person will answer 'even' or 'odd'. Arnaldo then separates them into two groups based on there response. It is easy to see that all the people in each group are of the same type, and two people from the two separate groups must be of different types. Now, after separating into groups, both the groups are of even size, or both groups are of odd size (since $k$ is even). Thus, Arnaldo knows the parity of the size of the set of truth-tellers among this set of $k$ people. Hence, he can exactly distinguish (based on which answer they provided) which group among the separated two consists of only truth-tellers. Now, if this group has atleast one truth-teller Arnaldo picks one of them as his buddy. If all of them are liars he picks one of them as his anti-buddy and negates what ever answer he provides to a question Arnaldo asks and considered him as his buddy.

Using a buddy, Arnaldo can determine the type of all the other people as follows. Arnaldo selects the $k-1$ non-buddy people in his initial set of people. Then, he considers the set of people formed by adding each new person among the available $n$ in turn. Then, he asks from his buddy how many people speak the truth. Since Arnaldo knows the type of all but one person in this group, Arnaldo can then determine the type of the additional temporary member of the group. He repeats this process with each of the $n-k$ left over people, and finishes his task in exactly $n$ steps.

To see why Arnaldo needs $n$ steps, note that if Arnaldo can finish in at most $n-1$ steps, Arnaldo has to uniquely distinguish a set of $2^n$ possible states (each person has two possible types) using $2^{n-1}$ answer sequences. Since $2^n > 2^{n-1}$ there exists atleast two possible states for some answer sequence for $n-1$ queries, making it impossible for Arnaldo to distinguish between the two. Thus, he will always need atleast $n$ queries to determine which people speak the truth and which people always lie, and we are done.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
quantam13
113 posts
#9
Y by
I claim that the task is only possible when $k$ is even and in that case, the minimum number of questions is $n$.

When $k$ is odd, to see that the desired task is impssible, notice that we cant differentiate between all people being truth tellers and all people being liars.

Now when $k$ is even, I give a strategy with $n$ questions which is clearly the minimum as there are $2^n$ possible asignements of truth tellers/liars to the $n$ people.

Firstly take $k$ players and use $k$ queries on each of them about the set of those $k$ players. Some work mod 2 can give that this reveals the identity of all $k$ of the players. Now for the rest of the $n-k$ players, to figure them out within $n-k$ queries, we find out the players one by one by asking them about the $k$ players whose status we already know which tells us the identity of that player.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
ihategeo_1969
235 posts
#10
Y by
Nice? Oh god pls make me better at combo. Let $f(n,k)$ denote our required (with $\infty$ meaning it ain't possible). Then \[\boxed{f(n,k) = \begin{cases} \infty \text{ if $k$ is  odd} \\ n \text{ if $k$ is even} \end{cases}}\]To see why $k$ is odd fails, see that atmost we can just make $2$ groups and we know one group are liars and one group are truth tellers (just ask everyone the same question on some set of $k$ people). But since $k$ is odd, the parity of wise truth seekers and devilish liars are always different so we can never know for sure, which is which.

For $k$ even, we atleast need $n$ questions as there are $2^n$ possiblities and each question just ``halves" the ones into possible sequences and not at all possible sequences atmost hence we need $\log_2(2^n)=n$ questions atleast.

To see why it is all we need, just fix some group of $k$ people and ask everyone the same question. Now the parity of wise truth seekers and devilish liars in the $k$ set of people is same, and based on what answers the $k$ people gave we know what that parity is and hence whichever people are saying that parity are the truth seekers and others are naughty liars and so done.
Z K Y
N Quick Reply
G
H
=
a