Solving a congruence

Join Trial or Access Free Resources
[et_pb_section fb_built="1" _builder_version="3.22.4" fb_built="1" _i="0" _address="0"][et_pb_row _builder_version="3.25" _i="0" _address="0.0"][et_pb_column type="4_4" _builder_version="3.25" custom_padding="|||" custom_padding__hover="|||" _i="0" _address="0.0.0"][et_pb_text _builder_version="3.22.4" text_font="Raleway|300|||||||" text_text_color="#ffffff" header_font="Raleway|300|||||||" header_text_color="#e2e2e2" background_color="#0c71c3" border_radii="on|5px|5px|5px|5px" box_shadow_style="preset3" custom_padding="20px|20px|20px|20px" _i="0" _address="0.0.0.0"]

Understand the problem

[/et_pb_text][et_pb_text _builder_version="3.27" text_font="Raleway||||||||" background_color="#f4f4f4" box_shadow_style="preset2" custom_margin="10px||10px" custom_padding="10px|20px|10px|20px" hover_enabled="0" _i="1" _address="0.0.0.1"]Prove that the number of ordered triples $(x, y, z)$  in the set of residues of $latex p$ such that $(x+y+z)^2  \equiv axyz \mod{p}$, where $gcd(a, p) = 1$ and $p$ is prime is $p^2 + 1$. [/et_pb_text][/et_pb_column][/et_pb_row][et_pb_row _builder_version="3.25" _i="1" _address="0.1"][et_pb_column type="4_4" _builder_version="3.25" custom_padding="|||" custom_padding__hover="|||" _i="0" _address="0.1.0"][et_pb_accordion open_toggle_text_color="#0c71c3" _builder_version="3.27" toggle_font="||||||||" body_font="Raleway||||||||" text_orientation="center" custom_margin="10px||10px" hover_enabled="0" _i="0" _address="0.1.0.0"][et_pb_accordion_item title="Source of the problem" open="on" _builder_version="3.27" _i="0" _address="0.1.0.0.0" hover_enabled="0"]Brazilian Olympiad Revenge 2010 [/et_pb_accordion_item][et_pb_accordion_item title="Topic" _builder_version="3.27" _i="1" _address="0.1.0.0.1" open="off" hover_enabled="0"]Number Theory [/et_pb_accordion_item][et_pb_accordion_item title="Difficulty Level" _builder_version="3.27" _i="2" _address="0.1.0.0.2" open="off" hover_enabled="0"]Medium [/et_pb_accordion_item][et_pb_accordion_item title="Suggested Book" _builder_version="3.27" _i="3" _address="0.1.0.0.3" open="off" hover_enabled="0"]Elementary Number Theory by David Burton [/et_pb_accordion_item][/et_pb_accordion][et_pb_text _builder_version="3.22.4" text_font="Raleway|300|||||||" text_text_color="#ffffff" header_font="Raleway|300|||||||" header_text_color="#e2e2e2" background_color="#0c71c3" border_radii="on|5px|5px|5px|5px" box_shadow_style="preset3" custom_margin="48px||48px" custom_padding="20px|20px|20px|20px" _i="1" _address="0.1.0.1"]

Start with hints

[/et_pb_text][et_pb_tabs active_tab_background_color="#0c71c3" inactive_tab_background_color="#000000" _builder_version="3.27" tab_text_color="#ffffff" tab_font="||||||||" background_color="#ffffff" hover_enabled="0" _i="2" _address="0.1.0.2"][et_pb_tab title="Hint 0" _builder_version="3.22.4" _i="0" _address="0.1.0.2.0"]Do you really need a hint? Try it first!

[/et_pb_tab][et_pb_tab title="Hint 1" _builder_version="3.27" _i="1" _address="0.1.0.2.1" hover_enabled="0"]First, assume that at least one of $latex x,y,z$ is zero. Show that there are $latex 3p-2$ solutions in this case. Next we need to consider the case where none of them is zero.

[/et_pb_tab][et_pb_tab title="Hint 2" _builder_version="3.27" _i="2" _address="0.1.0.2.2" hover_enabled="0"]

Let us denote the residue class of $latex p$ by $latex \mathbb{Z}_p$. Show that, there exist non-zero $latex b,c$ in $latex \mathbb{Z}_p$ such that $latex y\equiv bx\;\text{mod}\; p$ and $latex z\equiv cy\;\text{mod}\; p$.

[/et_pb_tab][et_pb_tab title="Hint 3" _builder_version="3.27" _i="3" _address="0.1.0.2.3" hover_enabled="0"]

From hint 2, show that $latex (1+b+bc)^2\equiv ab^2cx\;\text{mod}\;p$. This means that $latex x\equiv a^{-1}c^{-1}(1+b^{-1}+c)^2\;\text{mod}\;p$ (you need to convince yourself that the inverses exist).  Now it becomes a matter of simply choosing $latex b,c$. [/et_pb_tab][et_pb_tab title="Hint 4" _builder_version="3.27" _i="4" _address="0.1.0.2.4" hover_enabled="0"]

Note that, $latex 1+b^{-1}+c$ cannot be zero. Given any $latex b\neq p-1$, there exists exactly one non-zero $latex c$ such that $latex 1+b^{-1}+c$ is 0 modulo $latex p$. Hence, in this case there are $latex (p-2)^2$ choices. For $latex b=p-1$, this special $latex c$ is actually 0. Hence in this case there are $latex p-1$ choices. Thus, the total number of choices is $latex (p-2)^2+(p-1)=p^2-4p+4+(p-1)=p^2-3p+3$. Adding to this the $latex 3p-1$ cases considered in hint 1, we get $latex p^2+1$ as the answer.

[/et_pb_tab][/et_pb_tabs][et_pb_text _builder_version="3.26.4" text_font="Raleway|300|||||||" text_text_color="#ffffff" header_font="Raleway|300|||||||" header_text_color="#e2e2e2" background_color="#0c71c3" border_radii="on|5px|5px|5px|5px" box_shadow_style="preset3" custom_margin="48px||48px" custom_padding="20px|20px|20px|20px" _i="3" _address="0.1.0.3"]

Watch video

[/et_pb_text][et_pb_code _builder_version="3.26.4" _i="4" _address="0.1.0.4"]
[/et_pb_code][et_pb_text _builder_version="3.22.4" text_font="Raleway|300|||||||" text_text_color="#ffffff" header_font="Raleway|300|||||||" header_text_color="#e2e2e2" background_color="#0c71c3" border_radii="on|5px|5px|5px|5px" box_shadow_style="preset3" min_height="12px" custom_margin="50px||50px" custom_padding="20px|20px|20px|20px" _i="5" _address="0.1.0.5"]

Connected Program at Cheenta

[/et_pb_text][et_pb_blurb title="Math Olympiad Program" url="https://cheenta.com/matholympiad/" url_new_window="on" image="https://cheenta.com/wp-content/uploads/2018/03/matholympiad.png" _builder_version="3.23.3" header_font="||||||||" header_text_color="#e02b20" header_font_size="48px" link_option_url="https://cheenta.com/matholympiad/" link_option_url_new_window="on" _i="6" _address="0.1.0.6"]

Math Olympiad is the greatest and most challenging academic contest for school students. Brilliant school students from over 100 countries participate in it every year.Cheenta works with small groups of gifted students through an intense training program. It is a deeply personalized journey toward intellectual prowess and technical sophistication.[/et_pb_blurb][et_pb_button button_url="https://cheenta.com/matholympiad/" url_new_window="on" button_text="Learn More" button_alignment="center" _builder_version="3.23.3" custom_button="on" button_bg_color="#0c71c3" button_border_color="#0c71c3" button_border_radius="0px" button_font="Raleway||||||||" button_icon="%%3%%" button_text_shadow_style="preset1" box_shadow_style="preset1" box_shadow_color="#0c71c3" background_layout="dark" _i="7" _address="0.1.0.7"][/et_pb_button][et_pb_text _builder_version="3.22.4" text_font="Raleway|300|||||||" text_text_color="#ffffff" header_font="Raleway|300|||||||" header_text_color="#e2e2e2" background_color="#0c71c3" border_radii="on|5px|5px|5px|5px" box_shadow_style="preset3" custom_margin="50px||50px" custom_padding="20px|20px|20px|20px" _i="8" _address="0.1.0.8"]

Similar Problems

[/et_pb_text][et_pb_post_slider include_categories="9" _builder_version="3.22.4" _i="9" _address="0.1.0.9"][/et_pb_post_slider][et_pb_divider _builder_version="3.22.4" background_color="#0c71c3" _i="10" _address="0.1.0.10"][/et_pb_divider][/et_pb_column][/et_pb_row][/et_pb_section]
More Posts
ISI BStat-BMath and CMI BSc. Math Entrance Success Story 2026

ISI BStat-BMath and CMI BSc. Math Entrance Success Story 2026

June 27, 2026

In 2026, the following Cheenta students have been successful for Indian Statistical Institute's B.Stat Entrance and Chennai Mathematical Institute's B.Sc. Math Entrance. They ranked within the first 200 in the entire country in these entrances. Most of these students attended the problem solving workshops regularly, which happen 5 days every week. CMI B.Sc. Math Entrance […]

Read More
8 Cheenta students cracked the Regional Math Olympiad 2025 

8 Cheenta students cracked the Regional Math Olympiad 2025 

December 26, 2025

In 2025, 8 students from Cheenta Academy cracked the prestigious Regional Math Olympiad. In this post, we will share some of their success stories and learning strategies. The Regional Mathematics Olympiad (RMO) and the Indian National Mathematics Olympiad (INMO) are two most important mathematics contests in India.These two contests are for the students who are […]

Read More
Cheenta Students Shine at IOQM 2025

Cheenta Students Shine at IOQM 2025

October 26, 2025

Cheenta Academy proudly celebrates the success of 27 current and former students who qualified for the Indian Olympiad Qualifier in Mathematics (IOQM) 2025, advancing to the next stage — RMO. This accomplishment highlights their perseverance and Cheenta’s ongoing mission to nurture mathematical excellence and research-oriented learning.

Read More
Cheenta Shines in Purple Comet Math Meet 2025

Cheenta Shines in Purple Comet Math Meet 2025

June 26, 2025

Cheenta students shine at the Purple Comet Math Meet 2025 organized by Titu Andreescu and Jonathan Kanewith top national and global ranks.

Read More

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

© 2010 - 2025, Cheenta Academy. All rights reserved.
linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram