Różnica pomiędzy stronami "Ciągi liczbowe" i "Liczby kwadratowe i niekwadratowe modulo. Wybrane zagadnienia"

Z Henryk Dąbrowski
(Różnica między stronami)
Przejdź do nawigacji Przejdź do wyszukiwania
 
 
Linia 1: Linia 1:
<div style="text-align:right; font-size: 130%; font-style: italic; font-weight: bold;">12.03.2022</div>
+
<div style="text-align:right; font-size: 130%; font-style: italic; font-weight: bold;">22.04.2023</div>
  
 
__FORCETOC__
 
__FORCETOC__
Linia 5: Linia 5:
  
  
== Ciągi nieskończone ==
+
== Przykłady sum symboli Legendre'a ==
  
<span style="font-size: 110%; font-weight: bold;">Definicja C1</span><br/>
+
<span style="font-size: 110%; font-weight: bold;">Twierdzenie K1</span><br/>
Niech <math>n \in \mathbb{Z}_+</math>. Jeżeli każdej liczbie <math>n</math> przypiszemy pewną liczbę rzeczywistą <math>a_n</math>, to powiemy, że liczby <math>a_1, a_2, \ldots, a_n, \ldots</math> tworzą ciąg nieskończony.
+
Niech <math>p</math> będzie liczbą pierwszą nieparzystą, <math>a, d \in \mathbb{Z}</math> i <math>p \nmid d</math>. Pokazać, że
  
 +
::<math>\sum_{k = 1}^{p - 1} \left( {\small\frac{k}{p}} \right)_{\small{\!\! L}} = \sum_{k = 0}^{p - 1} \left( {\small\frac{k}{p}} \right)_{\small{\!\! L}} = 0</math>
  
 +
::<math>\sum_{k = 1}^{p - 1} \left( {\small\frac{k^2}{p}} \right)_{\small{\!\! L}} = \sum_{k = 0}^{p - 1} \left( {\small\frac{k^2}{p}} \right)_{\small{\!\! L}} = p - 1</math>
  
<span style="font-size: 110%; font-weight: bold;">Uwaga C2</span><br/>
+
::<math>\sum_{k = 0}^{p - 1} \left( {\small\frac{a + k d}{p}} \right)_{\small{\!\! L}} = 0</math>
Ciąg nieskończony <math>a_1, a_2, \ldots, a_n, \ldots</math> będziemy oznaczać <math>(a_n)</math>. Często, o&nbsp;ile nie będzie prowadziło to do nieporozumień, ciąg nieskończony będziemy nazywać po prostu ciągiem.
 
  
 +
{{Spoiler|Style = font-style: italic; font-weight: bold; color: olive; text-decoration: underline;|Show=Dowód|Hide=Ukryj dowód}}
  
 +
'''Punkt 1.'''
  
<span style="font-size: 110%; font-weight: bold;">Definicja C3</span><br/>
+
Wystarczy zauważyć, że wśród liczb <math>1, 2, \ldots, p - 1</math> jest <math>{\small\frac{p - 1}{2}}</math> liczb kwadratowych modulo <math>p</math> i <math>{\small\frac{p - 1}{2}}</math> liczb niekwadratowych modulo <math>p</math>. Zatem
Niech <math>n \in \mathbb{Z}_+</math>. Ciąg <math>(a_n)</math> będziemy nazywali
 
::* ciągiem rosnącym, jeżeli dla każdego <math>n</math> jest <math>a_{n + 1} \geqslant a_n</math>
 
::* ciągiem malejącym, jeżeli dla każdego <math>n</math> jest <math>a_{n + 1} \leqslant a_n</math>
 
  
Ciągi rosnące dzielimy na
+
::<math>\sum_{k = 1}^{p - 1} \left( {\small\frac{k}{p}} \right)_{\small{\!\! L}} = {\small\frac{p - 1}{2}} \cdot 1 + {\small\frac{p - 1}{2}} \cdot (- 1) = 0</math>
:::* ciągi silnie rosnące, jeżeli dla każdego <math>n</math> jest <math>a_{n + 1} > a_n</math>
 
:::* ciągi słabo rosnące, jeżeli istnieją takie <math>n</math>, że <math>a_{n + 1} = a_n</math>
 
  
Ciągi malejące dzielimy na
+
'''Punkt 2.'''
:::* ciągi silnie malejące, jeżeli dla każdego <math>n</math> jest <math>a_{n + 1} < a_n</math>
 
:::* ciągi słabo malejące, jeżeli istnieją takie <math>n</math>, że <math>a_{n + 1} = a_n</math>
 
  
 +
Wystarczy zauważyć, że
  
 +
::<math>\left( {\small\frac{k^2}{p}} \right)_{\small{\!\! L}} = \left( {\small\frac{k}{p}} \right)_{\small{\!\! L}}^{\! 2}</math>
  
<span style="font-size: 110%; font-weight: bold;">Definicja C4</span><br/>
+
oraz że wśród liczb <math>1, 2, \ldots, p - 1</math> jest <math>{\small\frac{p - 1}{2}}</math> liczb kwadratowych modulo <math>p</math> i <math>{\small\frac{p - 1}{2}}</math> liczb niekwadratowych modulo <math>p</math>. Zatem
Niech <math>\varepsilon \in \mathbb{R}_+</math>. Liczbę <math>a</math> będziemy nazywali granicą ciągu <math>(a_n)</math>, jeżeli dla dowolnego <math>\varepsilon</math> w&nbsp;przedziale <math>(a - \varepsilon, a + \varepsilon)</math> znajdują się '''prawie wszystkie wyrazy ciągu''' <math>(a_n)</math> (to znaczy wszystkie poza co najwyżej skończoną ilością).
 
  
 +
::<math>\sum_{k = 1}^{p - 1} \left( {\small\frac{k}{p}} \right)_{\small{\!\! L}} = {\small\frac{p - 1}{2}} \cdot 1^2 + {\small\frac{p - 1}{2}} \cdot (- 1)^2 = p - 1</math>
  
 +
'''Punkt 3.'''
  
<span style="font-size: 110%; font-weight: bold;">Uwaga C5</span><br/>
+
Z założenia liczby <math>p</math> i <math>d</math> są względnie pierwsze. Z&nbsp;twierdzenia C57 wiemy, że reszty <math>r_1, r_2, \ldots, r_p</math> z&nbsp;dzielenia <math>p</math> kolejnych liczb postaci
1) sens definicji jest taki: jeżeli liczba <math>a</math> jest granicą ciągu <math>(a_n)</math>, to dla dowolnie małego <math>\varepsilon > 0</math>, poza przedziałem <math>(a - \varepsilon, a + \varepsilon)</math> może się znaleźć co najwyżej skończona ilość wyrazów ciągu <math>(a_n)</math>
 
  
2) słabsze żądanie, aby w&nbsp;przedziale <math>(a - \varepsilon, a + \varepsilon)</math> znajdowała się nieskończona ilość wyrazów ciągu nie prowadzi do poprawnej definicji granicy. Przykładowo, w&nbsp;przedziale <math>(1 - \varepsilon, 1 + \varepsilon)</math> znajduje się nieskończenie wiele wyrazów ciągu <math>a_n = (-1)^n</math>, ale ani liczba <math>1</math>, ani liczba <math>- 1</math> nie są granicami tego ciągu. O&nbsp;ciągu <math>a_n = (- 1)^n</math> mówimy, że nie ma granicy.
+
::<math>x_k = a + k d</math>
  
3) ze względu na równoważność warunków
+
przez liczbę <math>p</math> są wszystkie różne i&nbsp;tworzą zbiór <math>S = \{ 0, 1, \ldots, p - 1 \}</math>. Czyli wśród reszt <math>r_1, r_2, \ldots, r_p</math> jest <math>{\small\frac{p - 1}{2}}</math> liczb kwadratowych modulo <math>p</math>, tyle samo liczb niekwadratowych modulo <math>p</math>, a&nbsp;jedna z&nbsp;tych reszt jest podzielna przez <math>p</math>. Z&nbsp;własności symbolu Legendre'a wiemy, że licznik wpływa na wartość symbolu jedynie modulo mianownik (zobacz J33 p. 2). Zatem możemy napisać
  
::* <math>\quad a_n \in (a - \varepsilon, a + \varepsilon)</math>
+
::<math>\sum_{k = 0}^{p - 1} \left( {\small\frac{a + k d}{p}} \right)_{\small{\!\! L}}
::* <math>\quad a - \varepsilon < a_n < a + \varepsilon</math>
+
= \sum_{j = 0}^{p - 1} \left( {\small\frac{r_j}{p}} \right)_{\small{\!\! L}}
::* <math>\quad - \varepsilon < a_n - a < \varepsilon</math>
+
= {\small\frac{p - 1}{2}} \cdot 1 + {\small\frac{p - 1}{2}} \cdot (- 1) + 0
::* <math>\quad | a_n - a | < \varepsilon</math>
+
= 0</math>
  
definicja C4 może być wypowiedziana następująco
+
Co należało pokazać.<br/>
 +
&#9633;
 +
{{\Spoiler}}
  
  
  
<span style="font-size: 110%; font-weight: bold;">Definicja C6</span><br/>
+
<span style="font-size: 110%; font-weight: bold;">Twierdzenie K2* (George Pólya, Iwan Winogradow, 1918)</span><br/>
Liczbę <math>a</math> będziemy nazywali granicą ciągu <math>(a_n)</math>, jeżeli dla dowolnego <math>\varepsilon > 0</math> '''prawie wszystkie wyrazy ciągu''' <math>(a_n)</math> spełniają warunek <math>|a_n - a| < \varepsilon</math>.
+
Jeżeli <math>p</math> jest liczbą pierwszą nieparzystą i <math>m, n \in \mathbb{N}_0</math>, to prawdziwe jest oszacowanie
  
 +
::<math>\left| \sum_{t = m}^{m + n} \left( {\small\frac{t}{p}} \right)_{\small{\!\! L}} \right| < \sqrt{p} \log p</math>
  
  
<span style="font-size: 110%; font-weight: bold;">Definicja C7</span><br/>
 
Ciąg <math>(a_n)</math> mający granicę (w rozumieniu definicji C4 lub C6) będziemy nazywali ciągiem zbieżnym, a&nbsp;fakt ten zapisujemy symbolicznie następująco
 
  
::<math>\lim_{n \to \infty} a_n = a</math>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;lub&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<math>a_n \longrightarrow a</math>
+
<span style="font-size: 110%; font-weight: bold;">Twierdzenie K3</span><br/>
 +
Jeżeli <math>p</math> jest liczbą pierwszą nieparzystą i <math>a, b \in \mathbb{Z}</math>, to
  
(od łacińskiego słowa ''limes'' oznaczającego granicę).
+
::<math>\sum_{k = 0}^{p - 1} \left( {\small\frac{k + a}{p}} \right)_{\small{\!\! L}} \left( {\small\frac{k + b}{p}} \right)_{\small{\!\! L}}
 +
= \begin{cases}
 +
\;\;\:\,      - 1 & \text{gdy } \, p \nmid (a - b) \\
 +
    p - 1 & \text{gdy } \, p \mid (a - b) \\
 +
\end{cases}</math>
  
 +
{{Spoiler|Style = font-style: italic; font-weight: bold; color: olive; text-decoration: underline;|Show=Dowód|Hide=Ukryj dowód}}
  
 +
'''1. Przypadek, gdy <math>\boldsymbol{p \mid (a - b)}</math>'''
  
Zauważmy jeszcze, że wprost z&nbsp;definicji granicy wynika</br>
+
Z założenia <math>b \equiv a \!\! \pmod{p}</math>
<span style="font-size: 110%; font-weight: bold;">Twierdzenie C8</span><br/>
 
  
::1. <math>\quad \lim_{n \to \infty} a_n = a \qquad \iff \qquad \lim_{n \to \infty} (a_n - a) = 0 \qquad \iff \qquad \lim_{n \to \infty} | a_n - a | = 0</math>
+
::<math>\sum_{k = 0}^{p - 1} \left( {\small\frac{k + a}{p}} \right)_{\small{\!\! L}} \left( {\small\frac{k + b}{p}} \right)_{\small{\!\! L}}
 +
= \sum_{k = 0}^{p - 1} \left( {\small\frac{k + a}{p}} \right)_{\small{\!\! L}} \left( {\small\frac{k + a}{p}} \right)_{\small{\!\! L}}
 +
= \sum_{k = 0}^{p - 1} \left( {\small\frac{k + a}{p}} \right)_{\small{\!\! L}}^{\! 2}</math>
  
::2. <math>\quad \lim_{n \to \infty} a_n = 0 \qquad \iff \qquad \lim_{n \to \infty} | a_n | = 0</math>
+
Z&nbsp;twierdzenia C57 wiemy, że reszty <math>r_1, r_2, \ldots, r_p</math> z&nbsp;dzielenia <math>p</math> kolejnych liczb postaci
  
::3. <math>\quad \lim_{n \to \infty} a_n = a \qquad \implies \qquad \lim_{n \to \infty} | a_n | = | a |</math>
+
::<math>x_k = a + k</math>
  
{{Spoiler|Style = font-style: italic; font-weight: bold; color: olive; text-decoration: underline;|Show=Dowód|Hide=Ukryj dowód}}
+
przez liczbę <math>p</math> są wszystkie różne i&nbsp;tworzą zbiór <math>S = \{ 0, 1, \ldots, p - 1 \}</math>. Czyli wśród reszt <math>r_1, r_2, \ldots, r_p</math> jest <math>{\small\frac{p - 1}{2}}</math> liczb kwadratowych modulo <math>p</math>, tyle samo liczb niekwadratowych modulo <math>p</math>, a&nbsp;jedna z&nbsp;tych reszt jest podzielna przez <math>p</math>. Z&nbsp;własności symbolu Legendre'a wiemy, że licznik wpływa na wartość symbolu jedynie modulo mianownik (zobacz J33 p. 2). Zatem możemy napisać
'''Punkt 1.'''<br/>
 
Prawdziwość twierdzenia wynika ze względu na identyczność warunków, które muszą spełniać prawie wszystkie wyrazy ciągu
 
  
::<math>| a_n - a | < \varepsilon \qquad \iff \qquad | (a_n - a) - 0 | < \varepsilon \qquad \iff \qquad \big|| a_n - a | - 0 \big| < \varepsilon</math>
+
::<math>\sum_{k = 0}^{p - 1} \left( {\small\frac{k + a}{p}} \right)_{\small{\!\! L}}^{\! 2}
 +
= \sum_{k = 0}^{p - 1} \left( {\small\frac{r_k}{p}} \right)_{\small{\!\! L}}^{\! 2}
 +
= p - 1</math>
  
'''Punkt 2.'''<br/>
+
Co należało pokazać.
Jest to jedynie szczególny przypadek punktu 1. dla <math>a = 0</math>.
 
  
'''Punkt 3.'''<br/>
+
'''2. Przypadek, gdy <math>\boldsymbol{p \nmid (a - b)}</math>'''
Dla dowolnych liczb <math>x, y \in \mathbb{R}</math> prawdziwa jest nierówność
 
  
::<math>\big|| x | - | y | \big| \leqslant |x - y|</math>
+
Kładąc <math>j = k + a</math> i&nbsp;sumując od <math>a</math> do <math>p - 1 + a</math>, otrzymujemy
  
Wynika stąd, że jeżeli dla prawie wszystkich wyrazów ciągu <math>(a_n)</math> spełniona jest nierówność <math>|a_n - a| < \varepsilon</math>, to tym bardziej prawdą jest, że <math>\big|| a_n | - | a |\big| < \varepsilon</math><br/>
+
::<math>\sum_{k = 0}^{p - 1} \left( {\small\frac{k + a}{p}} \right)_{\small{\!\! L}} \left( {\small\frac{k + b}{p}} \right)_{\small{\!\! L}}
&#9633;
+
= \sum_{j = a}^{p - 1 + a} \left( {\small\frac{j}{p}} \right)_{\small{\!\! L}} \left( {\small\frac{j + b - a}{p}} \right)_{\small{\!\! L}}</math>
{{\Spoiler}}
 
  
 +
Wśród <math>p</math> kolejnych liczb <math>a, a + 1, \ldots, p - 1 + a</math> istnieje dokładnie jedna liczba podzielna przez <math>p</math>. Możemy ją pominąć, bo nie wnosi ona wkładu do wyliczanej sumy.
  
 +
::<math>\sum_{k = 0}^{p - 1} \left( {\small\frac{k + a}{p}} \right)_{\small{\!\! L}} \left( {\small\frac{k + b}{p}} \right)_{\small{\!\! L}}
 +
= \underset{p \nmid j}{\sum_{j = a}^{p - 1 + a}} \left( {\small\frac{j}{p}} \right)_{\small{\!\! L}} \left( {\small\frac{j + b - a}{p}} \right)_{\small{\!\! L}}</math>
  
<span style="font-size: 110%; font-weight: bold;">Twierdzenie C9 (twierdzenie o&nbsp;trzech ciągach)</span><br/>
+
::::::::<math>\;\;\, = \underset{p \nmid j}{\sum_{j = a}^{p - 1 + a}} \left( {\small\frac{j}{p}} \right)_{\small{\!\! L}} \left( {\small\frac{j + (b - a) j j^{- 1}}{p}} \right)_{\small{\!\! L}}</math>
Jeżeli istnieje taka liczba całkowita <math>N_0</math>, że dla każdego <math>n > N_0</math> jest spełniony warunek
 
  
::<math>a_n \leqslant x_n \leqslant b_n</math>
+
::::::::<math>\;\;\, = \underset{p \nmid j}{\sum_{j = a}^{p - 1 + a}} \left( {\small\frac{j^2}{p}} \right)_{\small{\!\! L}} \left( {\small\frac{1 + (b - a) j^{- 1}}{p}} \right)_{\small{\!\! L}}</math>
  
oraz
+
::::::::<math>\;\;\, = \underset{p \nmid j}{\sum_{j = a}^{p - 1 + a}} \left( {\small\frac{1 + (b - a) j^{- 1}}{p}} \right)_{\small{\!\! L}}</math>
  
::<math>\lim_{n \to \infty} a_n = \lim_{n \to \infty} b_n = g</math>
+
Z własności symbolu Legendre'a wiemy, że licznik wpływa na wartość symbolu jedynie modulo mianownik. Liczby <math>j = k + a</math>, gdzie <math>k = 0, 1, \ldots, p - 1</math>, są wszystkie różne modulo <math>p</math> (zobacz H20). Niech zbiór <math>S</math> będzie zbiorem wszystkich liczb <math>j = k + a</math>, które nie są podzielne przez <math>p</math>. Na mocy twierdzenia H25 zbiory <math>R = \{ 1, \ldots, p - 1 \}</math>, <math>S</math> oraz <math>T = \{ s^{- 1}_1, \ldots, s^{- 1}_{p - 1} \}</math>, gdzie <math>s_k \in S</math>, są równe modulo <math>p</math>. Zatem od sumowania po <math>j</math> możemy przejść do sumowania po <math>r \in R</math>.
  
to <math>\lim_{n \to \infty} x_n = g</math>.
+
::<math>\sum_{k = 0}^{p - 1} \left( {\small\frac{k + a}{p}} \right)_{\small{\!\! L}} \left( {\small\frac{k + b}{p}} \right)_{\small{\!\! L}}  
 +
= \sum_{r = 1}^{p - 1} \left( {\small\frac{1 + (b - a) r}{p}} \right)_{\small{\!\! L}}</math>
  
{{Spoiler|Style = font-style: italic; font-weight: bold; color: olive; text-decoration: underline;|Show=Dowód|Hide=Ukryj dowód}}
+
::::::::<math>\;\;\, = - \left( {\small\frac{1}{p}} \right)_{\small{\!\! L}} + \sum_{r = 0}^{p - 1} \left( {\small\frac{1 + (b - a) r}{p}} \right)_{\small{\!\! L}}</math>
Niech <math>\varepsilon</math> będzie dowolną, ustaloną liczbą większą od <math>0</math>. Z&nbsp;założenia prawie wszystkie wyrazy ciągu <math>(a_n)</math> spełniają warunek <math>|a_n - g| < \varepsilon</math>. Możemy założyć, że są to wszystkie wyrazy, poczynając od wyrazu <math>N_a</math>. Podobnie prawie wszystkie wyrazy ciągu <math>(b_n)</math> spełniają warunek <math>|b_n - g| < \varepsilon</math> i&nbsp;podobnie możemy założyć, że są to wszystkie wyrazy, poczynając od wyrazu <math>N_b</math>
 
  
Nierówność <math>a_n \leqslant x_n \leqslant b_n</math> jest spełniona dla wszystkich wyrazów, poczynając od <math>N_0</math>, zatem oznaczając przez <math>M</math> największą z&nbsp;liczb <math>N_a</math>, <math>N_b</math>, <math>N_0</math>, możemy napisać, że o&nbsp;ile <math>n > M</math>, to spełnione są jednocześnie nierówności
+
::::::::<math>\;\;\, = - 1</math>
  
::* <math>\quad g - \varepsilon < a_n < g + \varepsilon\</math>
+
Ostatnia z&nbsp;wypisanych sum jest równa zero, co wynika z&nbsp;trzeciego wzoru twierdzenia K1 i&nbsp;faktu, że <math>p \nmid (b - a)</math>. Co należało pokazać.<br/>
::* <math>\quad g - \varepsilon < b_n < g + \varepsilon\</math>
+
&#9633;
::* <math>\quad a_n \leqslant x_n \leqslant b_n</math>
+
{{\Spoiler}}
  
Z powyższych nierówności wynika natychmiast następujący ciąg nierówności
 
  
::<math>g - \varepsilon < a_n \leqslant x_n \leqslant b_n < g + \varepsilon</math>
 
  
Co oznacza, że dla <math>n > M</math> zachodzi
+
<span style="font-size: 110%; font-weight: bold;">Twierdzenie K4</span><br/>
 +
Jeżeli <math>p</math> jest liczbą pierwszą nieparzystą i <math>n \in \mathbb{Z}</math>, to
  
::<math>g - \varepsilon < x_n < g + \varepsilon</math>
+
::<math>\sum_{k = 0}^{p - 1} \left( {\small\frac{k^2 + n}{p}} \right)_{\small{\!\! L}} =
 +
\begin{cases}
 +
\;\;\:\,      - 1 & \text{gdy } \, p \nmid n \\
 +
    p - 1 & \text{gdy } \, p \mid n \\
 +
\end{cases}</math>
  
Czyli prawie wszystkie wyrazy ciągu <math>(x_n)</math> spełniają warunek <math>|x_n - g| < \varepsilon</math>. Co kończy dowód.<br/>
+
{{Spoiler|Style = font-style: italic; font-weight: bold; color: olive; text-decoration: underline;|Show=Dowód|Hide=Ukryj dowód}}
&#9633;
+
 
{{\Spoiler}}
+
'''Przypadek, gdy <math>\boldsymbol{p \mid n}</math>
  
 +
Z drugiego wzoru twierdzenia K1 otrzymujemy
  
 +
::<math>\sum_{k = 0}^{p - 1} \left( {\small\frac{k^2 + n}{p}} \right)_{\small{\!\! L}} = \sum_{k = 0}^{p - 1} \left( {\small\frac{k^2}{p}} \right)_{\small{\!\! L}} = p - 1</math>
  
Bez dowodu podamy kilka ważnych twierdzeń.<br>
+
'''Przypadek, gdy <math>\boldsymbol{p \nmid n}</math>
<span style="font-size: 110%; font-weight: bold;">Twierdzenie C10*</span><br/>
 
Jeżeli istnieje taka liczba całkowita <math>n</math> i&nbsp;rzeczywista <math>M</math>, że dla każdego <math>k > n</math> jest
 
  
::<math>a_{k + 1}\geqslant a_k \qquad</math> oraz <math>\qquad a_k \leqslant M</math>
+
Jeżeli liczby <math>a, b</math> są obie liczbami kwadratowymi lub obie liczbami niekwadratowymi modulo <math>p</math>, to istnieje taka liczba <math>r</math>, że
  
to ciąg <math>(a_k)</math> jest zbieżny.<br/>
+
::<math>a \equiv b r^2 \!\! \pmod{p}</math>
'''Inaczej mówiąc: ciąg rosnący i&nbsp;ograniczony od góry jest zbieżny.'''
 
  
 +
(zobacz J34). Zatem
  
 +
::<math>S(a) = \sum_{k = 0}^{p - 1} \left( {\small\frac{k^2 + a}{p}} \right)_{\small{\!\! L}}</math>
  
<span style="font-size: 110%; font-weight: bold;">Twierdzenie C11*</span><br/>
+
:::<math>\;\;\; = \sum^{p - 1}_{k = 0} \left( {\small\frac{k^2 + b r^2}{p}} \right)_{\small{\!\! L}}</math>
Jeżeli istnieje taka liczba całkowita <math>n</math> i&nbsp;rzeczywista <math>M</math>, że dla każdego <math>k > n</math> jest
 
  
::<math>a_{k + 1} \leqslant a_k \qquad</math> oraz <math>\qquad a_k \geqslant M</math>
+
:::<math>\;\;\; = \sum_{k = 0}^{p - 1} \left( {\small\frac{r^2 \left[ (k r^{- 1})^2 + b \right] }{p}} \right)_{\small{\!\! L}}</math>
  
to ciąg <math>(a_k)</math> jest zbieżny.<br/>
+
:::<math>\;\;\; = \left( {\small\frac{r^2}{p}} \right)_{\small{\!\! L}} \sum_{k = 0}^{p - 1} \left( {\small\frac{(k r^{- 1})^2 + b}{p}} \right)_{\small{\!\! L}}</math>
'''Inaczej mówiąc: ciąg malejący i&nbsp;ograniczony od dołu jest zbieżny.'''
 
  
 +
:::<math>\;\;\; = \sum_{k = 0}^{p - 1} \left( {\small\frac{(k r^{- 1})^2 + b}{p}} \right)_{\small{\!\! L}}</math>
  
 +
Z twierdzenia C57 wiemy, że gdy <math>k</math> przebiega zbiór <math>T = \{ 0, 1, \ldots, p - 1 \}</math>, to <math>k r^{- 1}</math> przebiega zbiór <math>T'</math> identyczny ze zbiorem <math>T</math> modulo <math>p</math>. Zatem
  
<span style="font-size: 110%; font-weight: bold;">Twierdzenie C12*</span><br/>
+
::<math>S(a) = \sum_{x = 0}^{p - 1} \left( {\small\frac{x^2 + b}{p}} \right)_{\small{\!\! L}} = S (b)</math>
Jeżeli <math>\lim_{n \to \infty} a_n = a</math> oraz <math>\lim_{n \to \infty} b_n = b</math>, gdzie <math>a, b</math> są dowolnymi liczbami rzeczywistymi, to
 
  
# <math>\quad \lim_{n \to \infty} (a_n \pm b_n) = a \pm b</math>
 
# <math>\quad \lim_{n \to \infty} (a_n \cdot b_n) = a \cdot b</math>
 
  
Jeżeli dodatkowo dla każdego <math>n</math> jest <math>b_n \neq 0</math> i <math>b \neq 0</math>, to
+
Wynika stąd, że dla wszystkich liczb kwadratowych (odpowiednio niekwadratowych) modulo <math>p</math> wyrażenie <math>S(n)</math> ma taką samą wartość i&nbsp;jeśli wybierzemy liczby <math>a, b</math> tak, aby jedna była liczbą kwadratową, a&nbsp;druga liczbą niekwadratową modulo <math>p</math>, to możemy napisać
  
:&nbsp;&nbsp;3. <math>\quad \lim_{n \to \infty} \frac{a_n}{b_n} = \frac{a}{b}</math>
+
::<math>\sum_{n = 1}^{p - 1} S (n) = {\small\frac{p - 1}{2}} (S (a) + S (b))</math>
  
  
 +
Z drugiej strony
  
<span style="font-size: 110%; font-weight: bold;">Twierdzenie C13</span><br/>
+
::<math>\sum_{n = 1}^{p - 1} S (n) = \sum_{n = 1}^{p - 1} \sum_{k = 0}^{p - 1} \left( {\small\frac{k^2 + n}{p}} \right)_{\small{\!\! L}}</math>
Jeżeli <math>\lim_{n \to \infty} a_n = 0</math>, zaś ciąg <math>(x_n)</math> jest ograniczony, czyli istnieje taka liczba <math>M > 0</math>, że dla każdej wartości <math>n</math> prawdziwa jest nierówność <math>| x_n | < M</math>, to
 
  
::<math>\lim_{n \to \infty} (x_n \cdot a_n) = 0</math>
+
::::<math>\;\;\;\: = \sum_{k = 0}^{p - 1} \sum_{n = 1}^{p - 1} \left( {\small\frac{k^2 + n}{p}} \right)_{\small{\!\! L}}</math>
  
{{Spoiler|Style = font-style: italic; font-weight: bold; color: olive; text-decoration: underline;|Show=Dowód|Hide=Ukryj dowód}}
+
::::<math>\;\;\;\: = \sum_{k = 0}^{p - 1} \left[ - \left( {\small\frac{k^2}{p}} \right)_{\small{\!\! L}} + \sum_{n = 0}^{p - 1} \left( {\small\frac{k^2 + n}{p}} \right)_{\small{\!\! L}} \right]</math>
Wystarczy pokazać, że (zobacz twierdzenie C8 p.2)
 
  
::<math>\lim_{n \to \infty} |x_n \cdot a_n| = 0</math>
+
::::<math>\;\;\;\: = - \sum_{k = 0}^{p - 1} \left( {\small\frac{k}{p}} \right)_{\small{\!\! L}}^{\! 2}</math>
  
Z założenia prawdziwe jest oszacowanie
+
::::<math>\;\;\;\: = - (p - 1)</math>
  
::<math>0 \leqslant |x_n \cdot a_n| \leqslant |a_n| \cdot M</math>
+
bo z&nbsp;twierdzenia K1 wiemy, że
  
Zatem z twierdzenia o trzech ciągach otrzymujemy natychmiast, że
+
::<math>\sum_{n = 0}^{p - 1} \left( {\small\frac{n + k^2}{p}} \right)_{\small{\!\! L}} = 0</math>
  
::<math>\lim_{n \to \infty} |x_n \cdot a_n| = 0</math>
 
  
Co kończy dowód.<br/>
+
Łącząc uzyskane rezultaty, dostajemy
&#9633;
 
{{\Spoiler}}
 
  
 +
::<math>- (p - 1) = {\small\frac{p - 1}{2}} (S (a) + S (b))</math>
  
 +
Zatem
  
<span style="font-size: 110%; font-weight: bold;">Twierdzenie C14</span><br/>
+
::<math>S(a) + S (b) = - 2</math>
Dla <math>a \geqslant 0</math> i <math>n \geqslant 1</math> prawdziwa jest nierówność
 
  
::<math>(1 + a)^{1 / n} \leqslant 1 + \frac{a}{n}</math>
 
  
{{Spoiler|Style = font-style: italic; font-weight: bold; color: olive; text-decoration: underline;|Show=Dowód|Hide=Ukryj dowód}}
+
Z twierdzenia K3 mamy
Wzór jest prawdziwy dla <math>a = 0</math>. Zakładając, że <math>a > 0</math> i&nbsp;korzystając ze wzoru dwumianowego, mamy dla <math>n \geqslant 1</math>
 
  
::<math>\left( 1 + \frac{a}{n} \right)^n = \sum_{k=0}^{n}\left [\binom{n}{k} \cdot \left ( \frac{a}{n} \right )^k \right ] \geqslant</math>
+
::<math>S(- 1) = \sum_{k = 0}^{p - 1} \left( {\small\frac{k^2 - 1}{p}} \right)_{\small{\!\! L}}
:::::<math>\;\; \geqslant \sum_{k=0}^{1}\left [\binom{n}{k} \cdot \left ( \frac{a}{n} \right )^k \right ] =</math>
+
= \sum^{p - 1}_{k = 0} \left( {\small\frac{k - 1}{p}} \right)_{\small{\!\! L}} \left( {\small\frac{k + 1}{p}} \right)_{\small{\!\! L}}
:::::<math>\;\; = 1 + n \cdot \frac{a}{n} =</math>
+
= - 1</math>
:::::<math>\;\; = 1 + a</math>
 
  
Co należało pokazać.<br/>
+
bo <math>p \nmid 2</math>. Dla ustalenia uwagi przyjmijmy, że <math>a</math> jest liczbą kwadratową, a <math>b</math> jest liczbą niekwadratową modulo <math>p</math>. Jeżeli <math>- 1</math> jest liczbą kwadratową modulo <math>p</math>, to <math>S(a) = - 1</math> i&nbsp;natychmiast otrzymujemy, że <math>S(b) = - 1</math>. Jeżeli <math>- 1</math> jest liczbą niekwadratową modulo <math>p</math>, to <math>S(b) = - 1</math> i&nbsp;natychmiast otrzymujemy, że <math>S(a) = - 1</math>. Zatem bez względu na to, czy <math>n</math> jest liczbą kwadratową, czy liczbą niekwadratową modulo <math>p</math>, musi być <math>S(n) = - 1</math>. Co należało pokazać.<br/>
 
&#9633;
 
&#9633;
 
{{\Spoiler}}
 
{{\Spoiler}}
Linia 206: Linia 207:
  
  
<span style="font-size: 110%; font-weight: bold;">Twierdzenie C15</span><br/>
+
<span style="font-size: 110%; font-weight: bold;">Zadanie K5</span><br/>
Jeżeli <math>A > 0</math>, to <math>\lim_{n \to \infty} \sqrt[n]{A} = 1</math>.
+
Pokazać, że jeżeli <math>p</math> jest liczbą pierwszą nieparzystą i <math>r , s \in \mathbb{Z}</math>, to
  
{{Spoiler|Style = font-style: italic; font-weight: bold; color: olive; text-decoration: underline;|Show=Dowód|Hide=Ukryj dowód}}
+
::<math>\sum_{k = 0}^{p - 1} \left( {\small\frac{k^2 + r k + s}{p}} \right)_{\small{\!\! L}} =
Dla <math>A > 1</math> możemy napisać <math>A = 1 + a</math>, gdzie <math>a > 0</math>, wtedy z&nbsp;twierdzenia C14 otrzymujemy
+
\begin{cases}
 +
\;\;\:\,      - 1 & \text{gdy } \, p \nmid (r^2 - 4 s) \\
 +
    p - 1 & \text{gdy } \, p \mid (r^2 - 4 s) \\
 +
\end{cases}</math>
  
::<math>1 < \sqrt[n]{A} = (1 + a)^{1 / n} \leqslant 1 + \frac{a}{n}</math>
+
{{Spoiler|Style = font-style: italic; font-weight: bold; color: olive; text-decoration: underline;|Show=Rozwiązanie|Hide=Ukryj rozwiązanie}}
  
Z twierdzenia o&nbsp;trzech ciągach dostajemy natychmiast (dla <math>A > 1</math>)
+
::<math>\sum_{k = 0}^{p - 1} \left( {\small\frac{k^2 + r k + s}{p}} \right)_{\small{\!\! L}} = \sum_{k = 0}^{p - 1} \left( {\small\frac{2^2}{p}} \right)_{\small{\!\! L}} \left( {\small\frac{k^2 + r k + s}{p}} \right)_{\small{\!\! L}}</math>
  
::<math>\lim_{n \to \infty} \sqrt[n]{A} = 1</math>
+
:::::::<math>\;\;\;\, = \sum_{k = 0}^{p - 1} \left( {\small\frac{4 k^2 + 4 r k + 4 s}{p}} \right)_{\small{\!\! L}}</math>
  
W przypadku gdy <math>0 < A < 1</math>, możemy napisać <math>A = \frac{1}{B}</math>, gdzie <math>B > 1</math>, wtedy ze względu na udowodniony wyżej rezultat <math>\lim_{n \to \infty} \sqrt[n]{B} = 1</math>
+
:::::::<math>\;\;\;\, = \sum^{p - 1}_{k = 0} \left( {\small\frac{(2 k + r)^2 + 4 s - r^2}{p}} \right)_{\small{\!\! L}}</math>
  
::<math>\lim_{n \to \infty} \sqrt[n]{A} = \lim_{n \to \infty} \frac{1}{\sqrt[n]{B}} = \frac{1}{\underset{n \rightarrow \infty}{\lim} \sqrt[n]{B}} = 1</math>
+
Z twierdzenia C57 wiemy, że gdy <math>k</math> przebiega zbiór <math>T = \{ 0, 1, \ldots, p - 1 \}</math>, to <math>2 k + r</math> przebiega zbiór <math>T'</math> identyczny ze zbiorem <math>T</math> modulo <math>p</math>. Zatem
  
Jeżeli <math>A = 1</math>, to <math>\sqrt[n]{A} = 1</math> dla każdego <math>n \geqslant 1</math>. Co kończy dowód.<br/>
+
::<math>\sum_{k = 0}^{p - 1} \left( {\small\frac{k^2 + r k + s}{p}} \right)_{\small{\!\! L}} = \sum_{x = 0}^{p - 1} \left( {\small\frac{x^2 + 4 s - r^2}{p}} \right)_{\small{\!\! L}}</math>
 +
 
 +
Z twierdzenia K4 wynika natychmiast teza dowodzonego twierdzenia.<br/>
 
&#9633;
 
&#9633;
 
{{\Spoiler}}
 
{{\Spoiler}}
Linia 228: Linia 234:
  
  
<span style="font-size: 110%; font-weight: bold;">Twierdzenie C16</span><br/>
+
<span style="font-size: 110%; font-weight: bold;">Twierdzenie K6</span><br/>
Jeżeli prawie wszystkie wyrazy ciągu ciągu <math>(a_n)</math> spełniają warunek <math>0 < m < a_n < M</math>, to <math>\lim_{n \to \infty} \sqrt[n]{a_n} = 1</math>
+
Jeżeli <math>p</math> jest liczbą pierwszą nieparzystą i <math>n \in \mathbb{Z}</math>, to dla sumy
  
{{Spoiler|Style = font-style: italic; font-weight: bold; color: olive; text-decoration: underline;|Show=Dowód|Hide=Ukryj dowód}}
+
::<math>S(n) = \sum_{k = 0}^{p - 1} \left( {\small\frac{k (k^2 + n)}{p}} \right)_{\small{\!\! L}}</math>
Z założenia dla prawie wszystkich wyrazów ciągu <math>(a_n)</math> jest
 
  
::<math>0 < m \leqslant a_n \leqslant M</math>
+
prawdziwe są następujące wzory
  
Zatem dla prawie wszystkich wyrazów ciągu <math>a_n</math> mamy
+
::(a) <math>\;\; S(n) = 0 \qquad \qquad \text{gdy } \; p = 4 k + 3</math>
  
::<math>\sqrt[n]{m} \leqslant \sqrt[n]{a_n} \leqslant \sqrt[n]{M}</math>
+
::(b) <math>\;\; | S (n) | < 2 \sqrt{p} \qquad \text{gdy } \; p = 4 k + 1</math>
  
Z twierdzenia C15 wiemy, że <math>\lim_{n \to \infty} \sqrt[n]{m} = \lim_{n \to \infty} \sqrt[n]{M} = 1</math>, zatem na podstawie twierdzenia o&nbsp;trzech ciągach otrzymujemy natychmiast <math>\lim_{n \to \infty} \sqrt[n]{a_n} = 1</math><br/>
+
{{Spoiler|Style = font-style: italic; font-weight: bold; color: olive; text-decoration: underline;|Show=Dowód|Hide=Ukryj dowód}}
&#9633;
 
{{\Spoiler}}
 
  
 +
'''Punkt (a)'''
  
 +
Zauważmy, że zbiory <math>R = \{ 0, 1, 2, \ldots, p - 1 \}</math> oraz <math>T = \{ - p + 1, - p + 2, \ldots, - p + (p - 1), 0 \}</math> są identyczne modulo <math>p</math>. Z&nbsp;własności symbolu Legendre'a wiemy, że licznik wpływa na wartość symbolu jedynie modulo mianownik (zobacz J33 p.2). Zatem możemy sumowanie po <math>k \in R</math> zastąpić sumowaniem po <math>j \in T .</math> Otrzymujemy
  
<span style="font-size: 110%; font-weight: bold;">Twierdzenie C17</span><br/>
+
::<math>S(n) = \sum_{j = - p + 1}^{0} \left( {\small\frac{j (j^2 + n)}{p}} \right)_{\small{\!\! L}}</math>
Następujące ciągi są silnie rosnące i&nbsp;zbieżne
 
  
::{| class="wikitable plainlinks"  style="font-size: 100%; text-align: center; margin-right: auto;"
+
Kładąc <math>j = - r</math> i&nbsp;sumując po <math>r</math> od <math>0</math> do <math>p - 1</math>, dostajemy
|- style=height:4em
 
| <math>\quad 1. \quad</math> || <math>\lim_{n \to \infty} \left( 1 + \frac{1}{n} \right)^n = e = 2.718281828 \ldots</math>
 
|- style=height:4em
 
| <math>\quad 2. \quad</math> || <math>\lim_{n \to \infty} \left( 1 - \frac{1}{n} \right)^n = \frac{1}{e} = 0.367879441 \ldots</math>
 
|}
 
  
{{Spoiler|Style = font-style: italic; font-weight: bold; color: olive; text-decoration: underline;|Show=Dowód|Hide=Ukryj dowód}}
+
::<math>S(n) = \sum_{r = 0}^{p - 1} \left( {\small\frac{- r}{p}} \right)_{\small{\!\! L}} \left( {\small\frac{(- r)^2 + n}{p}} \right)_{\small{\!\! L}}
'''Punkt 1'''<br/>
+
= \sum_{r = 0}^{p - 1} \left( {\small\frac{- 1}{p}} \right)_{\small{\!\! L}} \left( {\small\frac{r}{p}} \right)_{\small{\!\! L}} \left( {\small\frac{r^2 + n}{p}} \right)_{\small{\!\! L}} 
W twierdzeniu A6 pokazaliśmy, że ciąg
+
= \left( {\small\frac{- 1}{p}} \right)_{\small{\!\! L}} S (n)</math>
  
::<math>a_n = \left( 1 + \frac{1}{n} \right)^n</math>
+
Jeżeli <math>p = 4 k + 3</math>, to <math>S (n) = - S (n)</math>, czyli <math>S(n) = 0</math>.
  
jest silnie rosnący i&nbsp;ograniczony od góry. Zatem z&nbsp;twierdzenia C10 wynika, że jest zbieżny. Liczbę będącą granicą tego ciągu oznaczamy literą <math>e</math>, jest ona podstawą logarytmu naturalnego.
+
'''Punkt (b)'''
  
'''Punkt 2'''<br/>
+
Pomysł dowodu zaczerpnęliśmy z materiałów szkoleniowych Międzynarodowej Olimpiady Matematycznej<ref name="Dukic1"/>.
Pokażemy najpierw, że ciąg <math>\left( 1 - \frac{1}{n} \right)^n</math> jest silnie rosnący. Musimy pokazać, że prawdziwa jest nierówność
 
  
::<math>\left( 1 - \frac{1}{n + 1} \right)^{n + 1} > \left( 1 - \frac{1}{n} \right)^n</math>
+
Jeżeli liczby <math>a, b</math> są obie liczbami kwadratowymi lub obie liczbami niekwadratowymi modulo <math>p</math>, to istnieje taka liczba <math>r</math>, że
  
Łatwo sprawdzamy prawdziwość nierówności dla <math>n = 1</math>. Załóżmy teraz, że <math>n \geqslant 2</math>. Przekształcając,
+
::<math>a \equiv b r^2 \!\! \pmod{p}</math>
  
::<math>\left( \frac{n}{n + 1} \right)^{n + 1} > \left( \frac{n - 1}{n} \right)^n</math>
+
(zobacz J34). Zatem
  
::<math>\frac{n}{n + 1} \cdot \left( \frac{n}{n + 1} \right)^n \cdot \left( \frac{n}{n - 1} \right)^n > 1</math>
+
::<math>S(a) = S (b r^2) = \sum_{k = 0}^{p - 1} \left( {\small\frac{k (k^2 + b r^2)}{p}} \right)_{\small{\!\! L}}</math>
  
::<math>\left( \frac{n^2}{n^2 - 1} \right)^n > \frac{n + 1}{n}</math>
+
::::::<math>\;\:\, = \sum_{k = 0}^{p - 1} \left( {\small\frac{r^3 (k r^{- 1}) \left[ (k r^{- 1})^2 + b \right] }{p}} \right)_{\small{\!\! L}}</math>
  
otrzymujemy nierówność równoważną,
+
::::::<math>\;\:\, = \left( {\small\frac{r^3}{p}} \right)_{\small{\!\! L}} \sum_{k = 0}^{p - 1} \left( {\small\frac{(k r^{- 1}) \left[ (k r^{- 1})^2 + b \right] }{p}} \right)_{\small{\!\! L}}</math>
  
::<math>\left( 1 + \frac{1}{n^2 - 1} \right)^n > 1 + \frac{1}{n}</math>
+
::::::<math>\;\:\, = \left( {\small\frac{r}{p}} \right)_{\small{\!\! L}} \sum_{k = 0}^{p - 1} \left( {\small\frac{(k r^{- 1}) \left[ (k r^{- 1})^2 + b \right] }{p}} \right)_{\small{\!\! L}}</math>
  
którą już łatwo udowodnić, bo
+
Z twierdzenia C57 wiemy, że gdy <math>k</math> przebiega zbiór <math>T = \{ 0, 1, \ldots, p - 1 \}</math>, to <math>k r^{- 1}</math> przebiega zbiór <math>T'</math> identyczny ze zbiorem <math>T</math> modulo <math>p</math>. Zatem
  
::<math>\left( 1 + \frac{1}{n^2 - 1} \right)^n > \left( 1 + \frac{1}{n^2} \right)^n = \sum_{k = 0}^{n} \binom{n}{k} \cdot \left( \frac{1}{n^2} \right)^k > \sum_{k = 0}^{1} \binom{n}{k} \cdot \frac{1}{n^{2k}} = 1 + \frac{1}{n}</math>
+
::<math>S(a) = \left( {\small\frac{r}{p}} \right)_{\small{\!\! L}} \sum_{x = 0}^{p - 1} \left( {\small\frac{x (x^2 + b)}{p}} \right)_{\small{\!\! L}} = \left( {\small\frac{r}{p}} \right)_{\small{\!\! L}} S (b)</math>
  
Ponieważ dla każdego <math>n \geqslant 1</math> jest <math>\left( 1 - \frac{1}{n} \right)^n \leqslant 1</math> (bo iloczyn liczb mniejszych od <math>1</math> nie może być liczbą większą do jedności), to z&nbsp;twierdzenia C10 wynika, że ciąg ten jest zbieżny. Zatem możemy napisać
+
Czyli <math>S (a)^2 = S (b)^2</math>. Wynika stąd, że dla wszystkich liczb kwadratowych (odpowiednio niekwadratowych) modulo <math>p</math> wyrażenie <math>S (n)^2</math> ma taką samą wartość i&nbsp;jeśli wybierzemy liczby <math>a, b</math> tak, aby jedna była liczbą kwadratową, a&nbsp;druga liczbą niekwadratową modulo <math>p</math>, to prawdziwa jest równość
  
::<math>\underset{n \rightarrow \infty}{\lim} \left( 1 - \frac{1}{n} \right)^n = g</math>
+
::<math>\sum_{n = 1}^{p - 1} S (n)^2 = {\small\frac{p - 1}{2}} (S (a)^2 + S (b)^2)</math>
  
Rozważmy teraz iloczyn wypisanych w&nbsp;twierdzeniu ciągów
+
Jak łatwo zauważyć <math>S(0) = 0</math>, zatem możemy napisać
  
::<math>\left( 1 + \frac{1}{n} \right)^n \cdot \left( 1 - \frac{1}{n} \right)^n = \left( 1 - \frac{1}{n^2} \right)^n = \left[ \left( 1 - \frac{1}{n^2} \right)^{n^2} \right]^{1 / n}</math>
+
::<math>\sum_{n = 0}^{p - 1} S (n)^2 = {\small\frac{p - 1}{2}} (S (a)^2 + S (b)^2)</math>
  
Łatwo widzimy, że ciąg <math>\left( 1 - \frac{1}{n^2} \right)^{n^2}</math> jest podciągiem ciągu <math>\left( 1 - \frac{1}{n} \right)^n</math>, zatem jest ograniczony i&nbsp;dla <math>n \geqslant 2</math> spełniony jest układ nierówności
+
Z drugiej strony
  
::<math>0 < \left( \frac{3}{4} \right)^4 \leqslant \left( 1 - \frac{1}{n^2} \right)^{n^2} \leqslant 1</math>
+
::<math>S (n)^2 = \sum_{k = 1}^{p - 1} \left( {\small\frac{k (k^2 + n)}{p}} \right)_{\small{\!\! L}} \sum^{p - 1}_{j = 1} \left( {\small\frac{j (j^2 + n)}{p}} \right)_{\small{\!\! L}}</math>
  
Z twierdzenia C16 dostajemy
+
:::<math>\quad \,\, = \sum_{k = 1}^{p - 1} \sum_{j = 1}^{p - 1} \left( {\small\frac{k (k^2 + n)}{p}} \right)_{\small{\!\! L}} \left( {\small\frac{j (j^2 + n)}{p}} \right)_{\small{\!\! L}}</math>
  
::<math>\lim_{n \to \infty} \left[ \left( 1 - \frac{1}{n^2} \right)^{n^2} \right]^{1 / n} = 1</math>
+
:::<math>\quad \,\, = \sum_{k = 1}^{p - 1} \sum_{j = 1}^{p - 1} \left( {\small\frac{k j (k^2 + n) (j^2 + n)}{p}} \right)_{\small{\!\! L}}</math>
  
Z twierdzenia C12 p. 2 wynika natychmiast, że
+
Zatem
  
::<math>e \cdot g = \lim_{n \to \infty} \left[ \left( 1 + \frac{1}{n} \right)^n \cdot \left( 1 - \frac{1}{n} \right)^n \right] = \lim_{n \to \infty} \left[ \left( 1 - \frac{1}{n^2} \right)^{n^2} \right]^{1 / n} = 1</math>
+
::<math>\sum_{n = 0}^{p - 1} S (n)^2 = \sum_{n = 0}^{p - 1} \sum_{k = 1}^{p - 1} \sum_{j = 1}^{p - 1} \left( {\small\frac{k j (k^2 + n) (j^2 + n)}{p}} \right)_{\small{\!\! L}}</math>
  
Zatem <math>g = \frac{1}{e}</math>.<br/>
+
:::::<math>\;\! = \sum_{k = 1}^{p - 1} \sum_{j = 1}^{p - 1} \left( {\small\frac{k j}{p}} \right)_{\small{\!\! L}} \sum_{n = 0}^{p - 1} \left( {\small\frac{(n + k^2) (n + j^2)}{p}} \right)_{\small{\!\! L}}</math>
&#9633;
 
{{\Spoiler}}
 
  
  
 +
Z twierdzenia K3 wiemy, że
  
<span style="font-size: 110%; font-weight: bold;">Twierdzenie C18</span><br/>
+
::<math>\sum_{n = 0}^{p - 1} \left( {\small\frac{(n + k^2) (n + j^2)}{p}} \right)_{\small{\!\! L}} =
Dla <math>n \geqslant 2</math> prawdziwe są następujące nierówności
+
\begin{cases}
 +
\;\;\:\,      - 1 & \text{gdy } \, p \nmid (k^2 - j^2) \\
 +
    p - 1 & \text{gdy } \, p \mid (k^2 - j^2) \\
 +
\end{cases}</math>
  
::{| class="wikitable plainlinks"  style="font-size: 100%; text-align: center; margin-right: auto;"
 
|- style=height:4em
 
| <math>\quad 1. \quad</math> || <math> \frac{1}{n + 1} < \log \left( 1 + \frac{1}{n} \right) < \frac{1}{n}</math>
 
|- style=height:4em
 
| <math>\quad 2. \quad</math> || <math>- \frac{1}{n - 1} < \log \left( 1 - \frac{1}{n} \right) < - \frac{1}{n}</math>
 
|}
 
  
{{Spoiler|Style = font-style: italic; font-weight: bold; color: olive; text-decoration: underline;|Show=Dowód|Hide=Ukryj dowód}}
+
Zbadajmy, kiedy <math>p \mid (k^2 - j^2)</math>, czyli kiedy <math>p \mid [(k - j) (k + j)]</math>. Mamy
Ponieważ ciąg <math>\left( 1 + \frac{1}{n} \right)^n</math> jest silnie rosnący, to
 
  
::<math>\left( 1 + \frac{1}{n} \right)^n < e</math>
+
::* <math>\; 0 \leqslant | k - j | \leqslant p - 2</math>
  
Logarytmując powyższą nierówność, mamy
+
::* <math>\; 2 \leqslant k + j \leqslant 2 p - 2</math>
  
::<math>n \cdot \log \left( 1 + \frac{1}{n} \right) < 1</math>
+
Zatem <math>p \mid [(k - j) (k + j)]</math> gdy
  
Stąd wynika natychmiast, że
+
::* <math>\; j = k</math>
  
::<math>\log \left( 1 + \frac{1}{n} \right) < \frac{1}{n}</math>
+
::* <math>\; j = p - k</math>
  
  
Ponieważ ciąg <math>\left( 1 - \frac{1}{n} \right)^n</math> również jest silnie rosnący, to postępując analogicznie, dostajemy
+
Pozwala to zapisać rozpatrywaną sumę w&nbsp;postaci
  
::<math>\left( 1 - \frac{1}{n} \right)^n < \frac{1}{e}</math>
+
::<math>\sum_{n = 0}^{p - 1} S (n)^2 = \sum_{k = 1}^{p - 1} \sum_{j = 1}^{p - 1} \left( {\small\frac{k j}{p}} \right)_{\small{\!\! L}} \cdot
 +
\left\{ \begin{array}{rll}
 +
  - 1   & \text{gdy } \; j \neq k \;\;\;\; \text{ i } \;\;\;\; j \neq p - k \\
 +
  p - 1 & \text{gdy } \; j = k \;\; \text{ lub } \;\; j = p - k \\
 +
\end{array} \right\}</math>
  
::<math>n \cdot \log \left( 1 - \frac{1}{n} \right) < - 1</math>
+
<div style="margin-top: 1em; margin-bottom: 1em;">
 +
:::::<math>\:\! = (p - 1) \underset{j = k \; \text{ lub } \; j = p - k}{\sum^{p - 1}_{k = 1} \sum_{j = 1}^{p - 1}} \left( {\small\frac{k j}{p}} \right)_{\small{\!\! L}} - \underset{j \neq k \; \text{ i } \; j \neq p - k}{\sum_{k = 1}^{p - 1} \sum_{j = 1}^{p - 1}} \left( {\small\frac{k j}{p}} \right)_{\small{\!\! L}}</math>
 +
</div>
  
::<math>\log \left( 1 - \frac{1}{n} \right) < - \frac{1}{n}</math>
+
<div style="margin-top: 1em; margin-bottom: 1em;">
 +
:::::<math>\:\! = (p - 1) \underset{j = k \; \text{ lub } \; j = p - k}{\sum^{p - 1}_{k = 1} \sum_{j = 1}^{p - 1}} \left( {\small\frac{k j}{p}} \right)_{\small{\!\! L}} - \sum_{k = 1}^{p - 1} \sum_{j = 1}^{p - 1} \left( {\small\frac{k j}{p}} \right)_{\small{\!\! L}} + \underset{j = k \; \text{ lub } \; j = p - k}{\sum_{k = 1}^{p - 1} \sum_{j = 1}^{p - 1}} \left( {\small\frac{k j}{p}} \right)_{\small{\!\! L}}</math>
 +
</div>
  
 +
<div style="margin-top: 1em; margin-bottom: 1em;">
 +
:::::<math>\:\! = p \underset{j = k \; \text{ lub } \; j = p - k}{\sum^{p - 1}_{k = 1} \sum_{j = 1}^{p - 1}} \left( {\small\frac{k j}{p}} \right)_{\small{\!\! L}} - \sum_{k = 1}^{p - 1} \sum_{j = 1}^{p - 1} \left( {\small\frac{k}{p}} \right)_{\small{\!\! L}} \left( {\small\frac{j}{p}} \right)_{\small{\!\! L}}</math>
 +
</div>
  
Przekształcając otrzymane wzory, otrzymujemy
+
<div style="margin-top: 1em; margin-bottom: 1em;">
 +
:::::<math>\:\! = p \left[ \sum_{k = 1}^{p - 1} \left( {\small\frac{k^2}{p}} \right)_{\small{\!\! L}} + \sum_{k = 1}^{p - 1} \left( {\small\frac{k (p - k)}{p}} \right)_{\small{\!\! L}} \right] - \sum_{k = 1}^{p - 1} \left( {\small\frac{k}{p}} \right)_{\small{\!\! L}} \sum^{p - 1}_{j = 1} \left( {\small\frac{j}{p}} \right)_{\small{\!\! L}}</math>
 +
</div>
  
::<math>- \log \left( 1 + \frac{1}{n} \right) = - \log \left( \frac{n + 1}{n} \right) = \log \left( \frac{n}{n + 1} \right) = \log \left( 1 - \frac{1}{n + 1} \right) < - \frac{1}{n + 1}</math>
+
<div style="margin-top: 1em; margin-bottom: 1em;">
 +
:::::<math>\:\! = p \left[ (p - 1) + \sum_{k = 1}^{p - 1} \left( {\small\frac{- k^2}{p}} \right)_{\small{\!\! L}} \right]</math>
 +
</div>
  
oraz
+
<div style="margin-top: 1em; margin-bottom: 1em;">
 +
:::::<math>\:\! = p \left[ (p - 1) + \left( {\small\frac{-1}{p}} \right)_{\small{\!\! L}} \sum_{k = 1}^{p - 1} \left( {\small\frac{k^2}{p}} \right)_{\small{\!\! L}} \right]</math>
 +
</div>
  
::<math>- \log \left( 1 - \frac{1}{n} \right) = - \log \left( \frac{n - 1}{n} \right) = \log \left( \frac{n}{n - 1} \right) = \log \left( 1 + \frac{1}{n - 1} \right) < \frac{1}{n - 1}</math><br/>
+
:::::<math>\:\! = 2 p (p - 1)</math>
&#9633;
 
{{\Spoiler}}
 
  
 +
Zauważmy, że <math>\left( {\small\frac{- 1}{p}} \right)_{\small{\!\! L}} = 1</math>, bo <math>p = 4 k + 1</math>.
  
  
 +
Ponieważ wcześniej pokazaliśmy, że
  
 +
::<math>\sum_{n = 0}^{p - 1} S (n)^2 = {\small\frac{p - 1}{2}} (S (a)^2 + S (b)^2)</math>
  
== Liczby pierwsze w&nbsp;ciągach arytmetycznych ==
+
to otrzymujemy
  
<span style="font-size: 110%; font-weight: bold;">Twierdzenie C19</span><br/>
+
::<math>{\small\frac{p - 1}{2}} (S (a)^2 + S (b)^2) = 2 p (p - 1)</math>
Każda liczba naturalna <math>n \geqslant 2</math> jest liczbą pierwszą lub iloczynem liczb pierwszych.
 
  
{{Spoiler|Style = font-style: italic; font-weight: bold; color: olive; text-decoration: underline;|Show=Dowód|Hide=Ukryj dowód}}
+
Czyli
<span style="border-bottom-style: double;">Pierwszy sposób</span><br/><br/>
 
Przypuśćmy, że istnieją liczby naturalne większe od <math>1</math>, które nie są liczbami pierwszymi ani nie są iloczynami liczb pierwszych. Niech <math>m</math> oznacza najmniejszą<ref name="WellOrdering"/> z&nbsp;takich liczb. Z&nbsp;założenia <math>m</math> nie jest liczbą pierwszą, zatem <math>m</math> może być zapisana w&nbsp;postaci <math>m = a \cdot b</math>, gdzie liczby <math>a, b</math> są liczbami naturalnymi mniejszymi od <math>m</math>.
 
  
Ponieważ <math>m</math> jest najmniejszą liczbą naturalną, która nie jest liczbą pierwszą ani nie jest iloczynem liczb pierwszych, to liczby <math>a</math> i <math>b</math> muszą być liczbami złożonymi, ale jako mniejsze od <math>m</math> są one iloczynami liczb pierwszych, zatem i&nbsp;liczba <math>m</math> musi być iloczynem liczb pierwszych.
+
::<math>S (a)^2 + S (b)^2 = 4 p</math>
  
Uzyskana sprzeczność dowodzi, że nasze przypuszczenie jest fałszywe.
+
Wynika stąd, że bez względu na to, czy <math>n</math> jest liczbą kwadratową, czy liczbą niekwadratową modulo <math>p</math>, prawdziwe jest oszacowanie
  
 +
::<math>| S (n) | \leqslant 2 \sqrt{p}</math>
  
<span style="border-bottom-style: double;">Drugi sposób</span><br/><br/>
+
Równość <math>S (n)^2 = 4 p</math> nie jest możliwa, bo dzielnik pierwszy <math>p</math> występuje po prawej stronie w&nbsp;potędze nieparzystej. Zatem mamy nieco silniejsze oszacowanie
Indukcja matematyczna. Twierdzenie jest oczywiście prawdziwe dla <math>n = 2</math>.
 
Zakładając, że twierdzenie jest prawdziwe dla '''wszystkich''' liczb naturalnych <math>k \in [2, n]</math>, dla liczby <math>n + 1</math> mamy dwie możliwości
 
  
* <math>n + 1</math> jest liczbą pierwszą (wtedy twierdzenie jest prawdziwe w&nbsp;sposób oczywisty)
+
::<math>| S (n) | < 2 \sqrt{p}</math>
* <math>n + 1</math> jest liczbą złożoną wtedy, <math>n + 1 = a b</math>, gdzie <math>1 < a, b < n + 1</math>; zatem na podstawie założenia indukcyjnego liczby <math>a</math> i <math>b</math> są liczbami pierwszymi lub iloczynami liczb pierwszych, czyli <math>n + 1 = a b</math> jest iloczynem liczb pierwszych.
 
  
Co należało pokazać.<br/>
+
Co kończy dowód.<br/>
 
&#9633;
 
&#9633;
 
{{\Spoiler}}
 
{{\Spoiler}}
Linia 385: Linia 391:
  
  
<span style="font-size: 110%; font-weight: bold;">Twierdzenie C20 (Euklides, IV w. p.n.e.)</span><br/>
+
<span style="font-size: 110%; font-weight: bold;">Twierdzenie K7</span><br/>
Istnieje nieskończenie wiele liczb pierwszych.
+
Jeżeli <math>p</math> jest liczbą pierwszą nieparzystą i <math>a, b \in \mathbb{Z}</math>, to dla sumy
  
{{Spoiler|Style = font-style: italic; font-weight: bold; color: olive; text-decoration: underline;|Show=Dowód|Hide=Ukryj dowód}}
+
::<math>S(a, b) = \sum_{x = 0}^{p - 1} \left( {\small\frac{x^3 + a x + b}{p}} \right)_{\small{\!\! L}}</math>
Przypuśćmy, że istnieje jedynie skończona ilość liczb pierwszych <math>p_1, p_2, \ldots, p_n</math> . Wtedy liczba <math>a = p_1 \cdot p_2 \cdot \ldots \cdot p_n + 1</math> jest większa od jedności i&nbsp;z&nbsp;twierdzenia C19 wynika, że posiada dzielnik będący liczbą pierwszą, ale jak łatwo zauważyć żadna z&nbsp;liczb pierwszych <math>p_1, p_2, \ldots, p_n</math> nie jest dzielnikiem liczby <math>a</math>. Zatem istnieje liczba pierwsza <math>p</math> będąca dzielnikiem pierwszym liczby <math>a</math> i&nbsp;różna od każdej z&nbsp;liczb <math>p_1, p_2, \ldots, p_n</math>. Co kończy dowód.<br/>
 
&#9633;
 
{{\Spoiler}}
 
  
 +
prawdziwe są następujące wzory
  
 +
:: (a) <math>\;\; S(a, b) = - \left( {\small\frac{6 b}{p}} \right)_{\small{\!\! L}} \qquad \qquad \, \text{gdy } \; p \mid (4 a^3 + 27 b^2)</math>
  
<span style="font-size: 110%; font-weight: bold;">Twierdzenie C21</span><br/>
+
:: (b) <math>\;\; | S (a, b) | < 2 \sqrt{p}  \qquad \qquad \;\;\;\; \text{gdy } \; p \nmid (4 a^3 + 27 b^2)</math>
Jeżeli liczba naturalna <math>n</math> jest postaci <math>4 k + 3</math><ref name="LiczbaJestPostaci"/>, to ma dzielnik postaci <math>4 k + 3</math> będący liczbą pierwszą.
 
  
 
{{Spoiler|Style = font-style: italic; font-weight: bold; color: olive; text-decoration: underline;|Show=Dowód|Hide=Ukryj dowód}}
 
{{Spoiler|Style = font-style: italic; font-weight: bold; color: olive; text-decoration: underline;|Show=Dowód|Hide=Ukryj dowód}}
Jeżeli <math>n</math> jest liczbą pierwszą, to twierdzenie jest dowiedzione. Zbadajmy zatem sytuację gdy <math>n</math> jest liczbą złożoną. Z&nbsp;założenia <math>n</math> jest liczbą nieparzystą, zatem możliwe są trzy typy iloczynów
+
Niech <math>p \geqslant 5</math>. W&nbsp;ogólnym przypadku interesująca nas suma ma postać
  
::<math>(4 a + 1) (4 b + 1) = 16 a b + 4 a + 4 b + 1 = 4 (4 a b + a + b) + 1</math>
+
::<math>\sum_{t = 0}^{p - 1} \left( {\small\frac{a t^3 + b t^2 + c t + d}{p}} \right)_{\small{\!\! L}}</math>
  
::<math>(4 a + 1) (4 b + 3) = 16 a b + 12 a + 4 b + 3 = 4 (4 a b + 3 a + b) + 3</math>
+
gdzie <math>p \nmid a</math>. Mnożąc licznik przez <math>a^2</math> nie zmieniamy wartości sumy
  
::<math>(4 a + 3) (4 b + 3) = 16 a b + 12 a + 12 b + 9 = 4 (4 a b + 3 a + 3 b + 2) + 1</math>
+
::<math>\sum_{t = 0}^{p - 1} \left( {\small\frac{a^3 t^3 + a^2 b t^2 + a^2 c t + a^2 d}{p}} \right)_{\small{\!\! L}}</math>
  
Widzimy, że liczba złożona postaci <math>4 k + 3</math> jest iloczynem liczb postaci <math>4 k + 1</math> i <math>4 k + 3</math>. Wynika stąd natychmiast, że liczba złożona postaci <math>4 k + 3</math> posiada dzielnik postaci <math>4 k + 3</math>. Niech <math>q</math> oznacza najmniejszy dzielnik liczby <math>n</math> postaci <math>4 k + 3</math>. Pokażemy, że <math>q</math> jest liczbą pierwszą. Istotnie, gdyby <math>q</math> była liczbą złożoną, to miałaby dzielnik <math>d</math> postaci <math>4 k + 3</math> i&nbsp;byłoby <math>d < q</math>, wbrew założeniu, że <math>q</math> jest najmniejszym dzielnikiem liczby <math>n</math> postaci <math>4 k + 3</math>. Co kończy dowód.<br/>
+
Podstawiając <math>x \equiv a t + r \!\! \pmod{p}</math>, dostajemy
&#9633;
 
{{\Spoiler}}
 
  
 +
::<math>\sum_{x = 0}^{p - 1} \left( {\small\frac{x^3 + x^2 (b - 3 r) + x [a c - r (2 b - 3 r)] + [a^2 d - a c r + r^2 (b - r)]}{p}} \right)_{\small{\!\! L}}</math>
  
 +
bo, gdy <math>t</math> przebiega zbiór <math>\{ 0, 1, \ldots, p - 1 \}</math>, to (modulo <math>p</math>) liczby <math>a t + r</math> przebiegają taki sam zbiór (zobacz C57). Ponieważ <math>p \geqslant 5</math>, to liczbę <math>r</math> możemy wybrać tak, aby było
  
<span style="font-size: 110%; font-weight: bold;">Twierdzenie C22</span><br/>
+
::<math>3 r \equiv b \!\! \pmod{p}</math>
Istnieje nieskończenie wiele liczb pierwszych postaci <math>4 k + 3</math>.
 
  
{{Spoiler|Style = font-style: italic; font-weight: bold; color: olive; text-decoration: underline;|Show=Dowód|Hide=Ukryj dowód}}
+
Ostatecznie otrzymujemy
Przypuśćmy, że istnieje tylko skończona ilość liczb pierwszych postaci <math>4 k + 3</math>. Niech będą to liczby <math>p_1, \ldots, p_s</math>. Liczba
 
  
::<math>M = 4 p_1 \cdot \ldots \cdot p_s - 1 = 4 (p_1 \cdot \ldots \cdot p_s - 1) + 3</math>
+
::<math>\sum_{x = 0}^{p - 1} \left( {\small\frac{x^3 + x (a c - 3 r^2) + (a^2 d - a c r + 2 r^3)}{p}} \right)_{\small{\!\! L}}</math>
  
jest postaci <math>4 k + 3</math> i&nbsp;jak wiemy z&nbsp;twierdzenia C21, ma dzielnik pierwszy <math>q</math> postaci <math>4 k + 3</math>. Ale jak łatwo zauważyć, żadna z&nbsp;liczb <math>p_1, \ldots, p_s</math> nie dzieli liczby <math>M</math>. Zatem istnieje liczba pierwsza <math>q</math> postaci <math>4 k + 3</math> różna od każdej z&nbsp;liczb <math>p_1, p_2, \ldots, p_s</math>. Otrzymana sprzeczność kończy dowód.<br/>
 
&#9633;
 
{{\Spoiler}}
 
  
 +
Widzimy, że bez zmniejszania ogólności, możemy ograniczyć się do badania sumy postaci
  
 +
::<math>S(a, b) = \sum_{x = 0}^{p - 1} \left( {\small\frac{x^3 + a x + b}{p}} \right)_{\small{\!\! L}}</math>
  
<span style="font-size: 110%; font-weight: bold;">Twierdzenie C23</span><br/>
+
Liczbę <math>- \left( 4 a^3 + 27 b^2 \right)</math> nazywamy wyróżnikiem wielomianu <math>x^3 + a x + b</math>.
Jeżeli liczba naturalna <math>n</math> jest postaci <math>6 k + 5</math>, to ma dzielnik postaci <math>6 k + 5</math> będący liczbą pierwszą.
 
  
{{Spoiler|Style = font-style: italic; font-weight: bold; color: olive; text-decoration: underline;|Show=Dowód|Hide=Ukryj dowód}}
+
Pokażemy, że w&nbsp;przypadku, gdy <math>4 a^3 + 27 b^2 \equiv 0 \!\! \pmod{p}</math> i <math>p \geqslant 3</math> prawdziwy jest wzór
Jeżeli <math>n</math> jest liczbą pierwszą, to twierdzenie jest dowiedzione. Zbadajmy sytuację gdy <math>n</math> jest liczbą złożoną. Z&nbsp;twierdzenia C19 wiemy, że w&nbsp;tym przypadku liczba <math>n</math> będzie iloczynem liczb pierwszych. Zauważmy, że nieparzyste liczby pierwsze mogą być jedynie postaci <math>6 k + 1</math> lub <math>6 k + 5</math> (liczba <math>6 k + 3</math> jest liczbą złożoną). Ponieważ iloczyn liczb postaci <math>6 k + 1</math>
 
  
::<math>(6 a + 1) (6 b + 1) = 36 a b + 6 a + 6 b + 1 = 6 (6 a b + a + b) + 1</math>
+
::<math>S(a, b) = \sum_{x = 0}^{p - 1} \left( {\small\frac{x^3 + a x + b}{p}} \right)_{\small{\!\! L}} = - \left( {\small\frac{6 b}{p}} \right)_{\small{\!\! L}}</math>
  
jest liczbą postaci <math>6 k + 1</math>, to w&nbsp;rozkładzie liczby <math>n</math> na czynniki pierwsze musi pojawić się przynajmniej jeden czynnik postaci <math>6 k + 5</math>. Co kończy dowód.<br/>
 
&#9633;
 
{{\Spoiler}}
 
  
 +
W przypadku, gdy <math>p = 3</math> z&nbsp;warunku <math>4 a^3 + 27 b^2 \equiv 0 \pmod{3}</math> wynika, że <math>3 \mid a</math>. Zakładając, że reszta z&nbsp;dzielenia liczby <math>b</math> przez <math>3</math> wynosi <math>r</math>, otrzymujemy
  
 +
::<math>S(a, b) = \sum_{x = 0}^{2} \left( {\small\frac{x^3 + b}{3}} \right)_{\small{\!\! L}}
 +
= \left( {\small\frac{b}{3}} \right)_{\small{\!\! L}} + \left( {\small\frac{1 + b}{3}} \right)_{\small{\!\! L}} + \left( {\small\frac{8 + b}{3}} \right)_{\small{\!\! L}}
 +
= \left( {\small\frac{r}{3}} \right)_{\small{\!\! L}} + \left( {\small\frac{r + 1}{3}} \right)_{\small{\!\! L}} + \left( {\small\frac{r + 2}{3}} \right)_{\small{\!\! L}}
 +
= \left( {\small\frac{0}{3}} \right)_{\small{\!\! L}} + \left( {\small\frac{1}{3}} \right)_{\small{\!\! L}} + \left( {\small\frac{2}{3}} \right)_{\small{\!\! L}}
 +
= 0</math>
  
<span style="font-size: 110%; font-weight: bold;">Twierdzenie C24</span><br/>
 
Istnieje nieskończenie wiele liczb pierwszych postaci <math>6 k + 5</math>.
 
  
{{Spoiler|Style = font-style: italic; font-weight: bold; color: olive; text-decoration: underline;|Show=Dowód|Hide=Ukryj dowód}}
+
Jeżeli <math>p \geqslant 5</math> i <math>p \mid a</math>, to <math>p \mid b</math> i&nbsp;łatwo znajdujemy, że
Przypuśćmy, że istnieje tylko skończona ilość liczb pierwszych postaci <math>6 k + 5</math>. Niech będą to liczby <math>p_1, \ldots, p_s</math>. Liczba
 
  
::<math>M = 6 p_1 \cdot \ldots \cdot p_s - 1 = 6 (p_1 \cdot \ldots \cdot p_s - 1) + 5</math>
+
::<math>S(a, b) = \sum_{x = 0}^{p - 1} \left( {\small\frac{x^3 + a x + b}{p}} \right)_{\small{\!\! L}}
 +
= \sum_{x = 0}^{p - 1} \left( {\small\frac{x^3}{p}} \right)_{\small{\!\! L}}
 +
= 0</math>
  
jest postaci <math>6 k + 5</math> i&nbsp;jak wiemy z&nbsp;twierdzenia C23 ma dzielnik pierwszy <math>q</math> postaci <math>6 k + 5</math>. Ale jak łatwo zauważyć żadna z&nbsp;liczb <math>p_1, \ldots, p_s</math> nie dzieli liczby <math>M</math>. Zatem istnieje liczba pierwsza <math>q</math> postaci <math>6 k + 5</math> różna od każdej z&nbsp;liczb <math>p_1, p_2, \ldots, p_s</math>. Otrzymana sprzeczność kończy dowód.<br/>
 
&#9633;
 
{{\Spoiler}}
 
  
 +
Jeżeli <math>p \geqslant 5</math> i <math>p \nmid a</math>, to
  
 +
::<math>x^3 + a x + b \equiv (x - x_1) (x - x_2)^2 \!\! \pmod{p}</math>
  
<span style="font-size: 110%; font-weight: bold;">Twierdzenie C25</span><br/>
+
gdzie
Istnieje nieskończenie wiele liczb pierwszych postaci <math>3 k + 2</math>.
 
  
{{Spoiler|Style = font-style: italic; font-weight: bold; color: olive; text-decoration: underline;|Show=Dowód|Hide=Ukryj dowód}}
+
::<math>x_1 \equiv 3 b a^{- 1} \!\! \pmod{p}</math>
Jeżeli <math>k = 2 j</math> jest liczbą parzystą, to otrzymujemy ciąg liczb parzystych
 
  
::<math>3 k + 2 = 6 j + 2</math>
+
::<math>x_2 \equiv - 3 b 2^{- 1} a^{- 1} \!\! \pmod{p}</math>
  
w którym jedynie liczba <math>2</math> jest liczbą pierwszą (dla <math>j = 0</math>).
+
Co Czytelnik może łatwo sprawdzić, pamiętając o&nbsp;tym, że <math>27 b^2 \cdot 2^{- 2} a^{- 3} \equiv - 1 \!\! \pmod{p}</math>. Mamy
  
Jeżeli <math>k = 2 j + 1</math> jest liczbą nieparzystą, to otrzymujemy ciąg liczb nieparzystych
+
::<math>S(a, b) = \sum_{x = 0}^{p - 1} \left( {\small\frac{x - x_2}{p}} \right)_{\small{\!\! L}}^{\! 2} \left( {\small\frac{x - x_1}{p}} \right)_{\small{\!\! L}}</math>
  
::<math>3 k + 2 = 3 (2 j + 1) + 2 = 6 j + 5</math>
+
Niech <math>t = x - x_2</math>. Jeżeli <math>x</math> przebiega zbiór <math>\{ 0, 1, \ldots, p - 1 \}</math>, to (modulo <math>p</math>) <math>t</math> przebiega taki sam zbiór (zobacz C57). Zatem
  
o którym wiemy, że zawiera nieskończenie wiele liczb pierwszych (zobacz twierdzenie C24). Zatem w&nbsp;ciągu arytmetycznym postaci <math>3 k + 2</math> występuje nieskończenie wiele liczb pierwszych.<br/>
+
::<math>S(a, b) = \sum_{t = 0}^{p - 1} \left( {\small\frac{t}{p}} \right)_{\small{\!\! L}}^{\! 2} \left( {\small\frac{t + x_2 - x_1}{p}} \right)_{\small{\!\! L}}
&#9633;
+
= \sum_{t = 1}^{p - 1} \left( {\small\frac{t + x_2 - x_1}{p}} \right)_{\small{\!\! L}}
{{\Spoiler}}
+
= - \left( {\small\frac{x_2 - x_1}{p}} \right)_{\small{\!\! L}} + \sum_{t = 0}^{p - 1} \left( {\small\frac{t + x_2 - x_1}{p}} \right)_{\small{\!\! L}}
 +
= - \left( {\small\frac{x_2 - x_1}{p}} \right)_{\small{\!\! L}}</math>
  
 +
Uwzględniając, że
  
 +
::<math>x_2 - x_1 \equiv - 3 b 2^{- 1} a^{- 1} - 3 b a^{- 1} \equiv - 3 b 2^{- 1} a^{- 1} - 6 b 2^{- 1} a^{- 1} \equiv - 9 b 2^{- 1} a^{- 1} \!\! \pmod{p}</math>
  
<span style="font-size: 110%; font-weight: bold;">Uwaga C26</span><br/>
+
otrzymujemy
Zauważmy, że liczby postaci <math>2 k + 1</math> to wszystkie liczby nieparzyste dodatnie. Ponieważ wszystkie liczby pierwsze (poza liczbą <math>2</math>) są liczbami nieparzystymi, to wśród liczb postaci <math>2 k + 1</math> występuje nieskończenie wiele liczb pierwszych.
 
  
Wszystkie omówione wyżej przypadki ciągów arytmetycznych: <math>2 k + 1</math>, <math>3 k + 2</math>, <math>4 k + 3</math> i <math>6 k + 5</math>, w&nbsp;których występuje nieskończona ilość liczb pierwszych są szczególnymi przypadkami udowodnionego w 1837 roku twierdzenia<br/>
+
::<math>S(a, b) = - \left( {\small\frac{x_2 - x_1}{p}} \right)_{\small{\!\! L}}
 +
= - \left( {\small\frac{- 9 b 2^{- 1} a^{- 1}}{p}} \right)_{\small{\!\! L}}
 +
= - \left( {\small\frac{- 2 a b}{p}} \right)_{\small{\!\! L}}
 +
= - \left( {\small\frac{- 8 a^3 b}{p}} \right)_{\small{\!\! L}}
 +
= - \left( {\small\frac{- 2 b \cdot (- 27 b^2)}{p}} \right)_{\small{\!\! L}}
 +
= - \left( {\small\frac{6 b}{p}} \right)_{\small{\!\! L}}</math>
  
  
 +
W przypadku, gdy <math>4 a^3 + 27 b^2 \not\equiv 0 \!\! \pmod{p}</math>, pokażemy, że wartość sumy
  
<span style="font-size: 110%; font-weight: bold;">Twierdzenie C27* (Peter Gustav Lejeune Dirichlet, 1837)</span><br/>
+
::<math>S(a, b) = \sum_{x = 0}^{p - 1} \left( {\small\frac{x^3 + a x + b}{p}} \right)_{\small{\!\! L}}</math>
Niech <math>a \in \mathbb{Z}_+</math> i <math>b \in \mathbb{Z}</math>. Jeżeli liczby <math>a</math> i <math>b</math> są względnie pierwsze, to w&nbsp;ciągu arytmetycznym <math>a k + b</math> występuje nieskończenie wiele liczb pierwszych.
 
  
 +
jest ściśle związana z&nbsp;ilością rozwiązań kongruencji
  
 +
::<math>y^2 \equiv x^3 + a x + b \!\! \pmod{p}</math>
  
<span style="font-size: 110%; font-weight: bold;">Uwaga C28</span><br/>
 
Dowód twierdzenia Dirichleta jest bardzo trudny. Natomiast bardzo łatwo można pokazać, że dowolny ciąg arytmetyczny <math>a k + b</math> zawiera nieskończenie wiele liczb złożonych. Istotnie, jeżeli liczby <math>a, b</math> nie są względnie pierwsze, to wszystkie wyrazy ciągu są liczbami złożonymi. Jeżeli <math>a, b</math> są względnie pierwsze i <math>b > 1 ,</math> to wystarczy przyjąć <math>k = b t</math>. Jeżeli są względnie pierwsze i <math>b = 1</math>, to wystarczy przyjąć <math>k = a t^2 + 2 t</math>, wtedy
 
  
::<math>a k + 1 = a^2 t^2 + 2 a t + 1 = (a t + 1)^2</math>
+
Niech <math>N_p</math> oznacza ilość rozwiązań powyższej kongruencji i&nbsp;niech <math>N_+, N_0, N_-</math> oznaczają ilości liczb <math>k \in \{ 0, 1, \ldots, p - 1 \}</math>, dla których symbol Legendre'a <math>\left( {\small\frac{x^3 + a x + b}{p}} \right)_{\small{\!\! L}}</math> jest równy odpowiednio <math>+ 1, 0, - 1</math>. Oczywiście
  
 +
::<math>N_+ + N_0 + N_- = p</math>
  
 +
::<math>S(a, b) = N_+ - N_-</math>
  
<span style="font-size: 110%; font-weight: bold;">Uwaga C29</span><br/>
+
Zauważmy, że jeżeli dla pewnego <math>x</math> jest <math>p \mid (x^3 + a x + b)</math>, to <math>\left( {\small\frac{x^3 + a x + b}{p}} \right)_{\small{\!\! L}} = 0</math> i&nbsp;mamy dokładnie jedno rozwiązanie rozważanej kongruencji
Wiemy już, że w przypadku gdy liczby <math>a</math> i <math>b</math> są względnie pierwsze, to w ciągu arytmetycznym <math>a k + b</math> występuje nieskończenie wiele liczb pierwszych. Pojawia się pytanie o to, czy możliwe jest oszacowanie najmniejszej liczby pierwszej <math>p</math> w takim ciągu. Jakkolwiek przypuszczamy, że prawdziwe jest oszacowanie <math>p < a^2</math>, to stan naszej obecnej wiedzy ujmuje twierdzenie Linnika<ref name="Linnik1"/><ref name="Linnik2"/><ref name="Linnik3"/><ref name="Linnik4"/>, które podajemy niżej. Trzeba było ponad pół wieku wysiłku wielu matematyków, aby pokazać, że w twierdzeniu Linnika możemy przyjąć <math>L = 5</math><ref name="Xylouris1"/>. Bombieri, Friedlander i Iwaniec udowodnili<ref name="Bombieri1"/>, że dla prawie wszystkich liczb <math>a</math> prawdziwe jest oszacowanie <math>L \leqslant 2</math>.
 
  
 +
::<math>0^2 \equiv x^3 + a x + b \!\! \pmod{p}</math>
  
 +
Jeżeli dla pewnego <math>x</math> jest <math>\left( {\small\frac{x^3 + a x + b}{p}} \right)_{\small{\!\! L}} = + 1</math>, to <math>p \nmid (x^3 + a x + b)</math>, a&nbsp;liczba <math>x^3 + a x + b</math> jest liczbą kwadratową modulo <math>p</math>, czyli istnieje taka liczba <math>y \in \mathbb{Z}</math>, że
  
<span style="font-size: 110%; font-weight: bold;">Twierdzenie C30* (Jurij Linnik, 1944)</span><br/> Niech <math>a, b \in \mathbb{Z}_+</math> i <math>p_{\min} (a, b)</math> oznacza najmniejszą liczbę pierwszą w ciągu arytmetycznym <math>a k + b</math>, gdzie <math>k \in \mathbb{Z}_+</math>. Jeżeli <math>\gcd (a, b) = 1</math> i <math>b \in [1, a - 1]</math>, to istnieją takie stałe <math>L > 0</math> i <math>a_0 \geqslant 2</math>, że dla wszystkich <math>a > a_0</math> prawdziwe jest oszacowanie
+
::<math>y^2 \equiv x^3 + a x + b \!\! \pmod{p}</math>
  
::<math>p_{\min} (a, b) < a^L</math>
+
i mamy dwa rozwiązania rozpatrywanej kongruencji: jedno stanowi para <math>(x, y)</math>, a&nbsp;drugie para <math>(x, - y)</math>. Zatem
  
 +
::<math>N_p = 2 N_+ + N_0</math>
  
 +
Łatwo zauważamy, że
  
<span style="font-size: 110%; font-weight: bold;">Zadanie C31</span><br/>
+
::<math>N_p - p = (2 N_+ + N_0) - (N_+ + N_0 + N_-) = N_+ - N_- = S (a, b)</math>
Pokazać, że z twierdzenia Linnika wynika istnienie takich stałych <math>c, L > 0</math>, że dla każdego <math>a \geqslant 2</math> prawdziwe jest oszacowanie
 
  
::<math>p(a) < c a^L</math>
 
  
gdzie
+
W 1936 roku Helmut Hasse<ref name="Hasse1"/><ref name="Hasse2"/> udowodnił, że
  
::<math>p(a) = \underset{\gcd (a, b) = 1}{\max_{1 \leqslant b < a}} p_{\min} (a, b)</math>
+
::<math>| N_p - p | < 2 \sqrt{p}</math>
  
{{Spoiler|Style = font-style: italic; font-weight: bold; color: olive; text-decoration: underline;|Show=Rozwiązanie|Hide=Ukryj rozwiązanie}}
+
Elementarny dowód tego twierdzenia podał Jurij Manin<ref name="Manin1"/>.
Oszacowanie podane w twierdzeniu Linnika
 
  
::<math>p_{\min} (a, b) < a^L</math>
 
  
jest prawdziwe dla dowolnej liczby <math>b \in [1, a - 1]</math> względnie pierwszej z <math>a</math>. Jeżeli zdefiniujemy funkcję
+
Wynika stąd, że w&nbsp;przypadku, gdy <math>4 a^3 + 27 b^2 \not\equiv 0 \!\! \pmod{p}</math> prawdziwe jest oszacowanie
  
::<math>p(a) = \underset{\gcd (a, b) = 1}{\max_{1 \leqslant b < a}} p_{\min} (a, b)</math>
+
::<math>| S (a, b) | = \left| \sum_{x = 0}^{p - 1} \left( {\small\frac{x^3 + a x + b}{p}} \right)_{\small{\!\! L}} \right| < 2 \sqrt{p}</math>
  
to możemy zapisać twierdzenie Linnika tak, aby po lewej stronie nie występowała liczba <math>b</math>, co czyni zapis bardziej przejrzystym. Mamy
+
Co należało pokazać.<br/>
 
 
::<math>p(a) < a^L</math>
 
 
 
dla wszystkich <math>a > a_0</math>. Ponieważ dla <math>a \in [2, a_0]</math> funkcja <math>p(a)</math> przyjmuje wartości skończone, a dla <math>a > a_0</math> jest <math>p(a) < a^L</math>, to funkcja <math>{\small\frac{p (a)}{a^L}}</math> jest ograniczona od góry, czyli istnieje taka stała <math>c</math>, że
 
 
 
::<math>{\small\frac{p (a)}{a^L}} < c</math>
 
 
 
dla dowolnego <math>a \geqslant 2</math>. Co należało pokazać.<br/>
 
 
&#9633;
 
&#9633;
 
{{\Spoiler}}
 
{{\Spoiler}}
Linia 537: Linia 535:
  
  
<span style="font-size: 110%; font-weight: bold;">Przykład C32</span><br/>
+
<span style="font-size: 110%; font-weight: bold;">Zadanie K8</span><br/>
Pokazaliśmy (zobacz C31), że istnieją takie stałe <math>c, L > 0</math>, że dla każdego <math>a \geqslant 2</math> prawdziwe jest oszacowanie
+
Pokazać, że jeżeli <math>p \geqslant 7</math> jest liczbą pierwszą, to wśród liczb <math>1, 2, \ldots, p - 1</math> istnieją:
  
::<math>p(a) < c a^L</math>
+
:* dwie kolejne liczby będące liczbami kwadratowymi modulo <math>p</math>
 +
:* dwie kolejne liczby będące liczbami niekwadratowymi modulo <math>p</math>
  
gdzie
+
{{Spoiler|Style = font-style: italic; font-weight: bold; color: olive; text-decoration: underline;|Show=Rozwiązanie|Hide=Ukryj rozwiązanie}}
 +
Dla <math>p = 7</math> łatwo sprawdzamy, że twierdzenie jest prawdziwe.
  
::<math>p(a) = \underset{\gcd (a, b) = 1}{\max_{1 \leqslant b < a}} p_{\min} (a, b)</math>
+
'''Punkt 1.'''
  
 +
Zauważmy, że przynajmniej jedna z&nbsp;liczb <math>2, 5, 10</math> jest liczbą kwadratową. Zakładając, że tak nie jest, otrzymujemy natychmiast sprzeczność
  
Ponieważ <math>p(a) > a</math>, to prawdziwy jest ciąg nierówności
+
::<math> -1 = \left( {\small\frac{10}{p}} \right)_{\small{\!\! L}} = \left( {\small\frac{2}{p}} \right)_{\small{\!\! L}} \cdot \left( {\small\frac{5}{p}} \right)_{\small{\!\! L}} = (- 1) \cdot (- 1) = 1</math>
  
::<math>1 < {\small\frac{\log p (a)}{\log a}} < {\small\frac{\log c}{\log a}} + L \leqslant \left| {\small\frac{\log c}{\log a}} \right| +
+
W zależności od tego, która z&nbsp;liczb <math>2, 5, 10</math> jest liczbą kwadratową, mamy następujące pary kolejnych liczb kwadratowych
  
L \leqslant {\small\frac{\left| \log c \right|}{\log 2}} + L</math>
+
::{| class="wikitable plainlinks"  style="font-size: 90%; text-align: center; margin-right: auto;"
 +
|-
 +
| <math>2</math> || <math>1, 2 \; \text{ oraz } \; 8, 9</math>
 +
|-
 +
| <math>5</math> || <math>4, 5</math>
 +
|-
 +
| <math>10</math> || <math>9, 10</math>
 +
|}
  
Wynika stąd, że dla <math>a \geqslant 2</math> funkcja <math>{\small\frac{\log p (a)}{\log a}}</math> jest ograniczona.
+
'''Punkt 2.'''
  
 +
Rozważmy wszystkie możliwe wartości <math>\left( {\small\frac{k}{p}} \right)_{\small{\!\! L}}</math> dla <math>k = 1, 2, 3, 4</math> i <math>p \geqslant 11</math>. Zauważmy, że <math>\left( {\small\frac{6}{p}} \right)_{\small{\!\! L}} = \left( {\small\frac{2}{p}} \right)_{\small{\!\! L}} \cdot \left( {\small\frac{3}{p}} \right)_{\small{\!\! L}}</math>.
  
Na zamieszczonym niżej obrazku przedstawiono pierwszych czternaście punktów funkcji <math>{\small\frac{\log p (a)}{\log a}}</math>. Ze względu na skokowy charakter zmian tej funkcji najwygodniej będzie przedstawić jej wykres, pokazując jedynie jej maksymalne i minimalne wartości w wybranych podprzedziałach <math>\mathbb{Z}_+</math>. Mówiąc precyzyjnie, zamieszczone zostały wykresy funkcji
+
::{| class="wikitable plainlinks"  style="font-size: 90%; text-align: center; margin-right: auto;"
 
 
::<math>f(t) = \max_{2^t \leqslant a < 2^{t + 1}} {\small\frac{\log p (a)}{\log a}} \qquad \qquad \qquad \qquad g(t) = \min_{2^t \leqslant a < 2^{t + 1}} {\small\frac{\log p (a)}{\log a}} \qquad \qquad \qquad \qquad h(a) = 1 + {\small\frac{2 \log \log a}{\log a}}</math>
 
 
 
gdzie <math>t \in \mathbb{Z}_+</math>.
 
 
 
::[[File: Linnik-22.png|950px|none]]
 
 
 
{{Spoiler|Style = font-style: italic; font-weight: bold; color: olive; text-decoration: underline;|Show=Pokaż kod i dane do wykresu|Hide=Ukryj kod i dane do wykresu}}
 
W tabeli przedstawiamy dane, na podstawie których sporządziliśmy zamieszczony wyżej wykres. Mamy kolejno
 
:* przedział <math>U</math>
 
:* minimalną wartość <math>\small{\frac{\log p(a)}{\log a}}</math> w przedziale <math>U</math>
 
:* liczbę <math>a</math>, która odpowiada minimalnej wartości <math>\small{\frac{\log p(a)}{\log a}}</math>
 
:* wartość <math>p(a) = \underset{\gcd (a, b) = 1}{\max_{1 \leqslant b < a}} p_{\min} (a, b)</math>
 
:* liczbę <math>b</math> taką, że najmniejsza liczba pierwsza w ciągu <math>a k + b</math> jest równa <math>p ( a )</math>
 
 
 
Następnie podajemy analogiczne wartości dla maksymalnej wartości <math>\small{\frac{\log p(a)}{\log a}}</math> w przedziale <math>U</math>. Pominęliśmy dane dla początkowych przedziałów <math>[2^{n},2^{n + 1})</math>, ponieważ Czytelnik z łatwością policzy je samodzielnie. Prosty kod do obliczeń w PARI/GP zamieściliśmy pod tabelą.
 
 
 
::{| class="wikitable plainlinks"  style="font-size: 85%; text-align: right; margin-right: auto;"
 
|-
 
! <math>\boldsymbol{U}</math> || <math>\boldsymbol{\min_{a \in U} \small{\frac{\log p(a)}{\log a}}}</math> || <math>\boldsymbol{a}</math> || <math>\boldsymbol{p(a)}</math> || <math>\boldsymbol{b}</math> || <math>\boldsymbol{\max_{a \in U} \small{\frac{\log p(a)}{\log a}}}</math> || <math>\boldsymbol{a}</math> || <math>\boldsymbol{p(a)}</math> || <math>\boldsymbol{b}</math>
 
|-
 
| <math>[2^{12},2^{13})</math> || <math>1.273691</math> || <math>6840</math> || <math>76679</math> || <math>1439</math> || <math>1.574826</math> || <math>4177</math> || <math>503771</math> || <math>2531</math>
 
|-
 
| <math>[2^{13},2^{14})</math> || <math>1.265227</math> || <math>14490</math> || <math>183949</math> || <math>10069</math> || <math>1.551307</math> || <math>8941</math> || <math>1348387</math> || <math>7237</math>
 
|-
 
| <math>[2^{14},2^{15})</math> || <math>1.257880</math> || <math>20790</math> || <math>269987</math> || <math>20507</math> || <math>1.519764</math> || <math>22133</math> || <math>4012709</math> || <math>6636</math>
 
 
|-
 
|-
| <math>[2^{15},2^{16})</math> || <math>1.247285</math> || <math>39270</math> || <math>537157</math> || <math>26647</math> || <math>1.500736</math> || <math>40951</math> || <math>8352037</math> || <math>38984</math>
+
! <math>\boldsymbol{k}</math> || <math>\,\, \boldsymbol{1} \,\,</math> || <math>\boldsymbol{2}</math> || <math>\boldsymbol{3}</math> || <math>\,\, \boldsymbol{4} \,\,</math> || <math>\,\, \boldsymbol{5} \,\,</math> || <math>\boldsymbol{6}</math> || <math>\boldsymbol{(…)}</math> || <math>\boldsymbol{p-1}</math>
 
|-
 
|-
| <math>[2^{16},2^{17})</math> || <math>1.244884</math> || <math>106260</math> || <math>1808207</math> || <math>1787</math> || <math>1.477806</math> || <math>84229</math> || <math>19005359</math> || <math>53834</math>
+
! <math>\boldsymbol{A.}</math>  
 +
| <math>1</math> || <math>1</math> || <math>1</math> || <math>1</math> || <math></math> || <math>1</math> || <math></math> || <math></math>
 
|-
 
|-
| <math>[2^{17},2^{18})</math> || <math>1.243658</math> || <math>150150</math> || <math>2740469</math> || <math>37769</math> || <math>1.474387</math> || <math>132331</math> || <math>35588503</math> || <math>123795</math>
+
! <math>\boldsymbol{B.}</math>  
 +
| <math>1</math> || <math>1</math> || <math>-1</math> || <math>1</math> || <math></math> || <math>-1</math> || <math></math> || <math></math>
 
|-
 
|-
| <math>[2^{18},2^{19})</math> || <math>1.233771</math> || <math>510510</math> || <math>11024723</math> || <math>304013</math> || <math>1.457138</math> || <math>297491</math> || <math>94537921</math> || <math>233274</math>
+
! <math>\boldsymbol{C.}</math>  
 +
| <math>1</math> || <math>-1</math> || <math>1</math> || <math>1</math> || <math></math> || <math>-1</math> || <math></math> || <math></math>
 
|-
 
|-
| <math>[2^{19},2^{20})</math> || <math>1.233150</math> || <math>1021020</math> || <math>25706531</math> || <math>181031</math> || <math>1.437418</math> || <math>596081</math> || <math>200230391</math> || <math>543256</math>
+
! <math>\boldsymbol{D.}</math>  
|-
+
| <math>1</math> || <math>-1</math> || <math>-1</math> || <math>1</math> || <math></math> || <math>1</math> || <math></math> || <math></math>
| <math>[2^{20},2^{21})</math> || <math>1.231259</math> || <math>2072070</math> || <math>59859383</math> || <math>1841423</math> || <math>1.419752</math> || <math>1181311</math> || <math>418069567</math> || <math>1066784</math>
 
|-
 
| <math>[2^{21},2^{22})</math> || <math>1.224444</math> || <math>3543540</math> || <math>104573173</math> || <math>1810513</math> || <math>1.405843</math> || <math>2753747</math> || <math>1131160207</math> || <math>2123937</math>
 
 
|}
 
|}
  
<span style="font-size: 90%; color:black;">pmin(a, b) =
+
'''A.''' W&nbsp;tym przypadku liczby <math>2, 3</math> są liczbami kwadratowymi modulo <math>p</math>. Gdyby w&nbsp;pozostałych komórkach miało nie być ani jednej pary kolejnych liczb niekwadratowych modulo <math>p</math>, to musielibyśmy <math>{\small\frac{p - 1}{2}}</math> liczb niekwadratowych umieścić wśród pozostałych <math>p - 5</math> komórek tak, aby między nimi zawsze była liczba kwadratowa modulo <math>p</math>. Wartość <math>\left( {\small\frac{6}{p}} \right)_{\small{\!\! L}}</math> wymusza, aby liczby niekwadratowe modulo <math>p</math> umieszczać w&nbsp;komórkach „nieparzystych”. Po wypełnieniu tych komórek pozostaną nam dwie liczby, które będziemy zmuszeni umieścić w&nbsp;komórkach „parzystych”. Co oznacza, że muszą pojawić się dwie pary kolejnych liczb niekwadratowych modulo <math>p .</math>
\\ zwraca najmniejszą liczbę pierwszą w ciągu a*k + b, gdzie k >= 1 i gcd(a, b) = 1
 
{
 
'''local'''(k, p);
 
k = 1;
 
p = a*k + b;
 
'''while'''( !'''isprime'''(p), p = a*(k++) + b );
 
'''return'''(p);
 
}</span>
 
  
<span style="font-size: 90%; color:black;">PMAX(a) =
+
'''B. i&nbsp;C.''' W&nbsp;tym przypadku dokładnie jedna z&nbsp;liczb <math>2, 3</math> jest liczbą kwadratową modulo <math>p</math>. Gdyby w&nbsp;pozostałych komórkach miało nie być ani jednej pary kolejnych liczb niekwadratowych modulo <math>p</math>, to musielibyśmy <math>{\small\frac{p - 3}{2}}</math> liczb niekwadratowych umieścić wśród pozostałych <math>p - 5</math> komórek tak, aby między nimi zawsze była liczba kwadratowa modulo <math>p</math>. Wartość <math>\left( {\small\frac{6}{p}} \right)_{\small{\!\! L}}</math> wymusza, aby liczby niekwadratowe modulo <math>p</math> umieszczać w&nbsp;komórkach „parzystych”. Po wypełnieniu tych komórek pozostanie nam jedna liczba, którą będziemy zmuszeni umieścić w&nbsp;komórce „nieparzystej”. Co oznacza, że musi pojawić się jedna para kolejnych liczb niekwadratowych modulo <math>p .</math>
\\ zwraca największą ze wszystkich najmniejszych liczb pierwszych
 
\\ w ciągach a*k + b, gdzie k >= 1, 0 < b < a i gcd(a, b) = 1
 
{
 
'''local'''(b, p, w);
 
w = [0, 0];
 
b = 0;
 
'''while'''( b++ < a,
 
        '''if'''( '''gcd'''(a, b) > 1, '''next'''() );
 
        p = pmin(a, b);
 
        '''if'''( w[1] < p, w = [p, b] );
 
      );
 
'''return'''(w);
 
}</span>
 
  
<span style="font-size: 90%; color:black;">Linnik(n) =
+
'''D.''' W&nbsp;tym przypadku nie musimy niczego dowodzić, bo liczby <math>2, 3</math> są kolejnymi liczbami niekwadratowymi modulo <math>p .</math><br/>
\\ n >= 1, sprawdzamy przedział U = [ 2^n , 2^(n + 1) ), czyli  2^n <= a < 2^(n+1)
+
&#9633;
{
 
'''local'''(a, b, p4a, sep, txt, w, y, Ymin, Ymax);
 
sep = ", "; \\ separator
 
Ymin = [100, 1, 0, 0]; \\ najmniejsza wartość funkcji log( p(a) ) / log(a) w przedziale U
 
Ymax = [0, 1, 0, 0]; \\ największa wartość funkcji log( p(a) ) / log(a) w przedziale U
 
a = 2^n - 1;
 
'''while'''( a++ < 2^(n+1),
 
        w = PMAX(a);
 
        p4a = w[1];
 
        b = w[2];
 
        y = '''log'''(p4a) / '''log'''(a);
 
        if( y < Ymin[1], Ymin = [y, a, p4a, b] );
 
        if( y > Ymax[1], Ymax = [y, a, p4a, b] );
 
      );
 
txt = '''Str'''(n, sep, Ymin[1], sep, Ymin[2], sep, Ymin[3], sep, Ymin[4], sep, Ymax[1], sep, Ymax[2], sep, Ymax[3], sep, Ymax[4]);
 
'''print'''(txt);
 
}</span>
 
 
{{\Spoiler}}
 
{{\Spoiler}}
  
Przypuszczamy, że prawdziwe jest znacznie silniejsze oszacowanie najmniejszej liczby pierwszej w ciągu arytmetycznym<ref name="Turan1"/><ref name="Wagstaff1"/>
 
  
::<math>p(a) \sim a \log^2 \! a</math>
 
  
W takim przypadku mielibyśmy
+
<span style="font-size: 110%; font-weight: bold;">Uwaga K9</span><br/>
 +
Wzmocnimy wynik uzyskany w&nbsp;poprzednim zadaniu. Zauważmy, jak użycie symbolu Legendre'a pozwala sformalizować problem.
  
::<math>{\small\frac{\log p (a)}{\log a}} \sim 1 + {\small\frac{2 \log \log a}{\log a}}</math>
 
  
Rzeczywiście, porównanie wykresów funkcji <math>f(t)</math> i <math>h(a)</math> wydaje się potwierdzać to przypuszczenie dla <math>a \in [2, 2^{22}]</math>.
 
  
 +
<span style="font-size: 110%; font-weight: bold;">Twierdzenie K10</span><br/>
 +
Jeżeli <math>p</math> jest liczbą pierwszą nieparzystą, to
  
 +
:* istnieje <math>\left\lfloor {\small\frac{p - 3}{4}} \right\rfloor</math> różnych par kolejnych liczb kwadratowych modulo <math>p</math>
 +
:* istnieje <math>\left\lfloor {\small\frac{p - 1}{4}} \right\rfloor</math> różnych par kolejnych liczb niekwadratowych modulo <math>p</math>
  
W tabeli zestawiliśmy wszystkie wartości funkcji <math>{\small\frac{\log p (a)}{\log a}}</math> większe od <math>1.75</math> dla <math>a \in [2, 2^{22}]</math>
+
{{Spoiler|Style = font-style: italic; font-weight: bold; color: olive; text-decoration: underline;|Show=Dowód|Hide=Ukryj dowód}}
 +
 
 +
'''Punkt 1.'''
 +
 
 +
Chcemy znaleźć ilość takich liczb <math>k \in \{ 1, 2, \ldots, p - 2 \}</math>, dla których
  
::{| class="wikitable plainlinks"  style="font-size: 80%; text-align: center; margin-right: auto;"
+
::<math>\left( {\small\frac{k}{p}} \right)_{\small{\!\! L}} = \left( {\small\frac{k + 1}{p}} \right)_{\small{\!\! L}} = 1</math>
|-
 
! <math>\boldsymbol{a}</math> || <math>\boldsymbol{\log_2 \! a}</math> || <math>\boldsymbol{p(a)}</math> || <math>\boldsymbol{{\small\frac{\log p(a)}{\log a}}}</math>
 
|-
 
| <math>31</math> || <math>4.95</math> || <math>577</math> || <math>1.851446</math>
 
|-
 
| <math>5</math> || <math>2.32</math> || <math>19</math> || <math>1.829482</math>
 
|-
 
| <math>13</math> || <math>3.70</math> || <math>103</math> || <math>1.806947</math>
 
|-
 
| <math>47</math> || <math>5.55</math> || <math>967</math> || <math>1.785437</math>
 
|-
 
| <math>19</math> || <math>4.24</math> || <math>191</math> || <math>1.783794</math>
 
|-
 
| <math>61</math> || <math>5.93</math> || <math>1511</math> || <math>1.780771</math>
 
|-
 
| <math>11</math> || <math>3.46</math> || <math>71</math> || <math>1.777675</math>
 
|-
 
| <math>3</math> || <math>1.58</math> || <math>7</math> || <math>1.771243</math>
 
|}
 
  
 +
Ilość liczb <math>k</math> spełniających powyższy warunek łatwo zapisać korzystając z&nbsp;symbolu Legendre'a
  
 +
::<math>N = {\small\frac{1}{4}} \sum_{k = 1}^{p - 2} \left[ 1 + \left( {\small\frac{k}{p}} \right)_{\small{\!\! L}} \right] \left[ 1 + \left( {\small\frac{k + 1}{p}} \right)_{\small{\!\! L}} \right]</math>
  
Rozważmy zbiór <math>S</math> takich liczb <math>a</math>, że prawdziwe jest oszacowanie <math>p (a) < a \log^2 \! a</math>. Bez trudu możemy podać przykłady takich liczb, ale nie wiemy, czy jest ich nieskończenie wiele.
+
Tylko w&nbsp;przypadku, gdy obie liczby <math>k</math> i <math>k + 1</math> są liczbami kwadratowymi modulo <math>p</math>, iloczyn wyrażeń w&nbsp;nawiasach kwadratowych jest różny od zera i&nbsp;równy <math>4</math> (stąd czynnik <math>{\small\frac{1}{4}}</math> przed sumą).
  
::{| class="wikitable plainlinks"  style="font-size: 80%; text-align: center; margin-right: auto;"
+
::<math>4 N = \sum_{k = 1}^{p - 2} \left[ 1 + \left( {\small\frac{k}{p}} \right)_{\small{\!\! L}} + \left( {\small\frac{k + 1}{p}} \right)_{\small{\!\! L}} + \left( {\small\frac{k}{p}} \right)_{\small{\!\! L}} \left( {\small\frac{k + 1}{p}} \right)_{\small{\!\! L}} \right]</math>
|-
 
! <math>\boldsymbol{n}</math> || <math>\boldsymbol{a=p_1 \cdot \ldots \cdot p_n}</math> || <math>\boldsymbol{\log_2 \! a}</math> || <math>\boldsymbol{p(a)}</math> || <math>\boldsymbol{{\small\frac{a \log^2 \! a}{p(a)}}}</math> || <math>\boldsymbol{{\small\frac{\log p(a)}{\log a}}}</math>
 
|-
 
| <math>2</math> || <math>6</math> || <math>2.584</math> || <math>11</math> || <math>1.751</math> || <math>1.338290</math>
 
|-
 
| <math>3</math> || <math>30</math> || <math>4.906</math> || <math>79</math> || <math>4.392</math> || <math>1.284679</math>
 
|-
 
| <math>4</math> || <math>210</math> || <math>7.714</math> || <math>761</math> || <math>7.889</math> || <math>1.240789</math>
 
|-
 
| <math>5</math> || <math>2310</math> || <math>11.173</math> || <math>20477</math> || <math>6.766</math> || <math>1.281737</math>
 
|-
 
| <math>6</math> || <math>30030</math> || <math>14.874</math> || <math>520547</math> || <math>6.132</math> || <math>1.276692</math>
 
|-
 
| <math>7</math> || <math>510510</math> || <math>18.961</math> || <math>11024723</math> || <math>7.999</math> || <math>1.233770</math>
 
|-
 
| <math>8</math> || <math>9699690</math> || <math>23.209</math> || <math>375095881</math> || <math>6.692</math> || <math>1.227199</math>
 
|-
 
| <math>9</math> || <math>223092870</math> || <math>27.733</math> || <math>11799966613</math> || <math>6.986</math> || <math>1.206432</math>
 
|-
 
| <math>10</math> || <math>6469693230</math> || <math>32.591</math> || <math>451404994867</math> || <math>7.314</math> || <math>1.187922</math>
 
|-
 
| <math>11</math> || <math>200560490130</math> || <math>37.545</math> || <math>19822720510961</math> || <math>6.852</math> || <math>1.176506</math>
 
|-
 
| <math>12</math> || <math>7420738134810</math> || <math>42.754</math> || <math></math> || <math></math> || <math></math>
 
|}
 
  
 +
<div style="margin-top: 1em; margin-bottom: 1em;">
 +
:::<math>\: = p - 2 + \sum_{k = 1}^{p - 2} \left( {\small\frac{k}{p}} \right)_{\small{\!\! L}} + \sum_{k = 1}^{p - 2} \left( {\small\frac{k + 1}{p}} \right)_{\small{\!\! L}} + \sum_{k = 1}^{p - 2} \left( {\small\frac{k}{p}} \right)_{\small{\!\! L}} \left( {\small\frac{k + 1}{p}} \right)_{\small{\!\! L}}</math>
 +
</div>
  
Ponieważ <math>p(a) > a</math>, to prawdziwy jest układ nierówności
+
Po kolei wyliczamy sumy po prawej stronie
  
::<math>1 < {\small\frac{\log p (a)}{\log a}} < 1 + {\small\frac{2 \log \log a}{\log a}}</math>
+
<div style="margin-top: 0em; margin-bottom: 1em;">
 +
::<math>\sum_{k = 1}^{p - 2} \left( {\small\frac{k}{p}} \right)_{\small{\!\! L}}
 +
= - \left( {\small\frac{p - 1}{p}} \right)_{\small{\!\! L}} + \sum_{k = 1}^{p - 1} \left( {\small\frac{k}{p}} \right)_{\small{\!\! L}}
 +
= - \left( {\small\frac{- 1}{p}} \right)_{\small{\!\! L}}</math>
 +
</div>
  
Jeżeli zbiór <math>S</math> jest nieskończony, to z twierdzenia o trzech ciągach otrzymujemy
+
<div style="margin-top: 1em; margin-bottom: 1em;">
 +
::<math>\sum_{k = 1}^{p - 2} \left( {\small\frac{k + 1}{p}} \right)_{\small{\!\! L}}
 +
= - \left( {\small\frac{1}{p}} \right)_{\small{\!\! L}} + \sum^{p - 1}_{k = 0} \left( {\small\frac{k + 1}{p}} \right)_{\small{\!\! L}}
 +
= - 1</math>
 +
</div>
  
::<math>\underset{a \in S}{\lim_{a \rightarrow \infty}} {\small\frac{\log p (a)}{\log a}} = 1</math>
+
<div style="margin-top: 1em; margin-bottom: 1em;">
 +
::<math>\sum_{k = 1}^{p - 2} \left( {\small\frac{k}{p}} \right)_{\small{\!\! L}} \left( {\small\frac{k + 1}{p}} \right)_{\small{\!\! L}}
 +
= \sum_{k = 0}^{p - 1} \left( {\small\frac{k}{p}} \right)_{\small{\!\! L}} \left( {\small\frac{k + 1}{p}} \right)_{\small{\!\! L}}
 +
= - 1</math>
 +
</div>
  
W konsekwencji wykres funkcji
+
(zobacz K1 i&nbsp;K3). Zatem
  
::<math>g(t) = \underset{2^t \leqslant a < 2^{t + 1}}{\min}  {\small\frac{\log p (a)}{\log a}}</math>
+
::<math>N = {\small\frac{1}{4}} \left[ p - 4 - \left( {\small\frac{- 1}{p}} \right)_{\small{\!\! L}} \right]</math>
  
będzie opadał ku prostej <math>y = 1</math>.
+
Czyli
  
 +
::<math>N =
 +
\begin{cases}
 +
  {\large\frac{p - 5}{4}} & \text{ gdy } \; p = 4 k + 1 \\
 +
  {\large\frac{p - 3}{4}} & \text{ gdy } \; p = 4 k + 3 \\
 +
\end{cases}</math>
  
 +
Powyższy wynik można zapisać w&nbsp;postaci
  
<span style="font-size: 110%; font-weight: bold;">Zadanie C33</span><br/>
+
::<math>N = \left\lfloor {\small\frac{p - 3}{4}} \right\rfloor</math>
Pokazać, że istnieje nieskończenie wiele liczb pierwszych zakończonych cyframi 99, przykładowo 199, 499, 599, 1399, 1499, ...
 
  
{{Spoiler|Style = font-style: italic; font-weight: bold; color: olive; text-decoration: underline;|Show=Rozwiązanie|Hide=Ukryj rozwiązanie}}
+
'''Punkt 2.'''
Wszystkie liczby naturalne zakończone cyframi <math>99</math> możemy zapisać w&nbsp;postaci <math>a_n = 100 k + 99</math>, gdzie <math>k \in \mathbb{N}</math>. Ponieważ ciąg <math>(a_n)</math> jest ciągiem arytmetycznym, a&nbsp;liczby <math>99</math> i <math>100</math> są względnie pierwsze, to na podstawie twierdzenia Dirichleta stwierdzamy, że istnieje nieskończenie wiele liczb pierwszych zakończonych cyframi <math>99</math>.<br/>
 
&#9633;
 
{{\Spoiler}}
 
  
 +
Chcemy znaleźć ilość takich liczb <math>k \in \{ 1, 2, \ldots, p - 2 \}</math>, dla których
  
 +
::<math>\left( {\small\frac{k}{p}} \right)_{\small{\!\! L}} = \left( {\small\frac{k + 1}{p}} \right)_{\small{\!\! L}} = - 1</math>
  
<span style="font-size: 110%; font-weight: bold;">Definicja C34</span><br/>
+
Ilość liczb <math>k</math> spełniających powyższy warunek łatwo zapisać korzystając z&nbsp;symbolu Legendre'a
Niech <math>a \geqslant 2</math> będzie liczbą całkowitą. Wartość funkcji <math>\pi(n; a, b)</math> jest równa ilości liczb pierwszych nie większych od <math>n</math>, które przy dzieleniu przez <math>a</math> dają resztę <math>b</math>.
 
  
 +
::<math>N = {\small\frac{1}{4}} \sum_{k = 1}^{p - 2} \left[ - 1 + \left( {\small\frac{k}{p}} \right)_{\small{\!\! L}} \right] \left[ - 1 + \left( {\small\frac{k + 1}{p}} \right)_{\small{\!\! L}} \right]</math>
  
 +
Tylko w&nbsp;przypadku, gdy obie liczby <math>k</math> i <math>k + 1</math> są liczbami niekwadratowymi modulo <math>p</math>, iloczyn wyrażeń w&nbsp;nawiasach kwadratowych jest różny od zera i&nbsp;równy <math>4</math> (stąd czynnik <math>{\small\frac{1}{4}}</math> przed sumą).
  
<span style="font-size: 110%; font-weight: bold;">Uwaga C35</span><br/>
+
::<math>4 N = \sum_{k = 1}^{p - 2} \left[ 1 - \left( {\small\frac{k}{p}} \right)_{\small{\!\! L}} - \left( {\small\frac{k + 1}{p}} \right)_{\small{\!\! L}} + \left( {\small\frac{k}{p}} \right)_{\small{\!\! L}} \left( {\small\frac{k + 1}{p}} \right)_{\small{\!\! L}} \right]</math>
Zauważmy, że w&nbsp;twierdzeniu Dirichleta na liczby <math>a</math> oraz <math>b</math> nałożone są minimalne warunki: <math>a \in \mathbb{Z}_+</math> i <math>b \in \mathbb{Z}</math>. Sytuacja w&nbsp;przypadku funkcji <math>\pi (n ; a, b)</math> jest odmienna – tutaj mamy <math>a \geqslant 2</math> oraz <math>0 \leqslant b \leqslant a - 1</math>. Jest tak dlatego, że podział liczb pierwszych, który odzwierciedla funkcja <math>\pi (n ; a, b)</math> jest podziałem pierwotnym, a&nbsp;twierdzenie Dirichleta jest tylko jego uzasadnieniem. Podział
 
liczb pierwszych musi być też precyzyjnie określony, tak aby zachodził naturalny związek
 
  
::<math>\sum_{b = 0}^{a - 1} \pi (n ; a, b) = \pi (n)</math>
+
<div style="margin-top: 1em; margin-bottom: 1em;">
 +
:::<math>\: = p - 2 - \sum_{k = 1}^{p - 2} \left( {\small\frac{k}{p}} \right)_{\small{\!\! L}} - \sum_{k = 1}^{p - 2} \left( {\small\frac{k + 1}{p}} \right)_{\small{\!\! L}} + \sum_{k = 1}^{p - 2} \left( {\small\frac{k}{p}} \right)_{\small{\!\! L}} \left( {\small\frac{k + 1}{p}} \right)_{\small{\!\! L}}</math>
 +
</div>
  
Oczywiście nie przeszkadza to w&nbsp;liczeniu liczb pierwszych w&nbsp;dowolnym ciągu arytmetycznym. Niech na przykład
+
Wartości sum wyliczyliśmy już w&nbsp;punkcie 1. Zatem
  
::<math>u_k = 7 k + 101 = 7 (k + 14) + 3 \qquad</math> gdzie <math>k = 0, 1, \ldots</math>
+
::<math>N = {\small\frac{1}{4}} \left[ p - 2 + \left( {\small\frac{- 1}{p}} \right)_{\small{\!\! L}} \right]</math>
  
Ilość liczb pierwszych w&nbsp;ciagu <math>(u_k)</math> jest równa
+
Czyli
  
::<math>\pi (n ; 7, 3) - \pi (7 \cdot 13 + 3 ; 7, 3) = \pi (n ; 7, 3) - 5</math>
+
::<math>N =
 +
\begin{cases}
 +
  {\large\frac{p - 1}{4}} & \text{ gdy } \; p = 4 k + 1 \\
 +
  {\large\frac{p - 3}{4}} & \text{ gdy } \; p = 4 k + 3 \\
 +
\end{cases}</math>
  
 +
Powyższy wynik można zapisać w&nbsp;postaci
  
 +
::<math>N = \left\lfloor {\small\frac{p - 1}{4}} \right\rfloor</math>
  
<span style="font-size: 110%; font-weight: bold;">Zadanie C36</span><br/>
+
Co należało pokazać.<br/>
Pokazać, że dla dowolnej liczby całkowitej <math>m \geqslant 1</math>
+
&#9633;
 +
{{\Spoiler}}
  
* wśród liczb naturalnych zawsze można wskazać <math>m</math> kolejnych liczb, które są złożone
 
* w&nbsp;ciągu arytmetycznym <math>a k + b</math>, gdzie liczby <math>a</math> i <math>b</math> są względnie pierwsze, zawsze można wskazać <math>m</math> kolejnych wyrazów, które są złożone
 
  
{{Spoiler|Style = font-style: italic; font-weight: bold; color: olive; text-decoration: underline;|Show=Rozwiązanie|Hide=Ukryj rozwiązanie}}
 
'''Punkt 1.'''<br/>
 
W przypadku liczb naturalnych, łatwo widzimy, że kolejne liczby
 
  
::<math>(m + 1) ! + 2, \quad (m + 1) ! + 3, \quad \ldots, \quad (m + 1) ! + (m + 1)</math>
+
<span style="font-size: 110%; font-weight: bold;">Twierdzenie K11</span><br/>
 +
Niech <math>p</math> będzie liczbą pierwszą nieparzystą. Słowo „trójka” oznacza tutaj trzy kolejne liczby kwadratowe (niekwadratowe) modulo <math>p</math>.
  
są liczbami złożonymi. Co oznacza, że dla dowolnej liczby naturalnej <math>m</math> zawsze możemy wskazać taką liczbę <math>n</math>, że <math>p_{n + 1} - p_n > m</math>.
+
Jeżeli <math>p = 4 k + 3</math>, to liczba różnych trójek liczb kwadratowych (niekwadratowych) jest równa
  
'''Punkt 2.'''<br/>
+
::<math>N = \left\lfloor {\small\frac{p - 3}{8}} \right\rfloor</math>
W przypadku ciągu arytmetycznego <math>u_k = a k + b</math> rozważmy kolejne wyrazy ciągu począwszy od wskaźnika
 
  
::<math>k_0 = \prod^{m - 1}_{j = 0} (a j + b)</math>
+
Jeżeli <math>p = 4 k + 1</math>, to liczba różnych trójek liczb niekwadratowych jest równa
  
Łatwo zauważamy, że dla <math>k = k_0, k_0 + 1, \ldots, k_0 + (m - 1)</math> wyrazy ciągu arytmetycznego <math>u_k = a k + b</math> są liczbami złożonymi. Istotnie, niech <math>t = 0, 1, \ldots, m - 1</math> wtedy
+
::<math>N = {\small\frac{p - 3 - S (- 1)}{8}} > {\small\frac{p - 3 - 2 \sqrt{p}}{8}}</math>
  
::<math>u_k = a k + b =</math>
+
Jeżeli <math>p = 4 k + 1</math>, to liczba różnych trójek liczb kwadratowych jest równa
  
:::<math>\! = a (k_0 + t) + b =</math>
+
::<math>N = {\small\frac{p - 15 + S (- 1)}{8}} > {\small\frac{p - 15 - 2 \sqrt{p}}{8}} \qquad \quad \text{ gdy } \; p = 8 k + 1</math>
  
:::<math>\! = a k_0 + (a t + b) =</math>
+
::<math>N = {\small\frac{p - 7 + S (- 1)}{8}} > {\small\frac{p - 7 - 2 \sqrt{p}}{8}} \qquad \quad \;\;\; \text{ gdy } \; p = 8 k + 5</math>
  
:::<math>\! = a \prod^{m - 1}_{j = 0} (a j + b) + (a t + b)</math>
+
Gdzie przez <math>S(- 1)</math> oznaczyliśmy sumę
  
i liczba <math>a t + b</math> dzieli iloczyn <math>\prod^{m - 1}_{j = 0} (a j + b)</math> dla <math>t = 0, \ldots, m - 1</math>. Co należało pokazać.
+
::<math>S(- 1) = \sum_{k = 0}^{p - 1} \left( {\small\frac{k (k^2 - 1)}{p}} \right)_{\small{\!\! L}}</math>
  
Wiemy, że jeżeli liczby <math>a</math> i <math>b</math> są względnie pierwsze, to w&nbsp;ciągu <math>a k + b</math> występuje nieskończenie wiele liczb pierwszych. Niech będą to liczby <math>q_1, q_2, \ldots, q_r, \ldots</math>. Uzyskany rezultat oznacza, że dla dowolnej liczby naturalnej <math>m</math> zawsze możemy wskazać taką liczbę <math>n</math>, że <math>q_{n + 1} - q_n \geqslant a (m + 1)</math><br/>
+
{{Spoiler|Style = font-style: italic; font-weight: bold; color: olive; text-decoration: underline;|Show=Dowód|Hide=Ukryj dowód}}
&#9633;
 
{{\Spoiler}}
 
  
 +
'''Przypadek pierwszy: trójki liczb kwadratowych modulo''' <math>\boldsymbol{p}</math>
  
 +
Chcemy znaleźć ilość takich liczb <math>k \in \{ 2, 3, \ldots, p - 2 \}</math>, dla których
  
<span style="font-size: 110%; font-weight: bold;">Przykład C37</span><br/>
+
::<math>\left( {\small\frac{k - 1}{p}} \right)_{\small{\!\! L}} = \left( {\small\frac{k}{p}} \right)_{\small{\!\! L}} = \left( {\small\frac{k + 1}{p}} \right)_{\small{\!\! L}} = + 1</math>
Rozważmy ciąg arytmetyczny <math>u_k = 3 k + 2</math> i&nbsp;wskaźnik
 
  
::<math>k_0 = \prod^{12}_{j = 0} (3 j + 2) = 3091650738176000</math>
+
Ilość liczb <math>k</math> spełniających powyższy warunek łatwo zapisać korzystając z&nbsp;symbolu Legendre'a
  
Trzynaście wyrazów tego szeregu dla <math>k = k_0 + t</math>, gdzie <math>t = 0, 1, \ldots, 12</math> to oczywiście liczby złożone, ale wyrazy dla <math>k = k_0 - 1</math> i <math>k = k_0 + 13</math> są liczbami pierwszymi.
+
::<math>N = {\small\frac{1}{8}} \sum_{k = 2}^{p - 2} \left[ 1 + \left( {\small\frac{k - 1}{p}} \right)_{\small{\!\! L}} \right] \left[ 1 + \left( {\small\frac{k}{p}} \right)_{\small{\!\! L}} \right] \left[ 1 + \left( {\small\frac{k + 1}{p}} \right)_{\small{\!\! L}} \right]</math>
  
Przeszukując ciąg <math>u_k = 3 k + 2</math> możemy łatwo znaleźć, że pierwsze trzynaście kolejnych wyrazów złożonych pojawia się już dla <math>k = 370, 371, \ldots, 382</math>.
+
Tylko w&nbsp;przypadku, gdy wszystkie trzy liczby <math>k - 1, k, k + 1</math> są liczbami kwadratowymi modulo <math>p</math>, iloczyn wyrażeń w&nbsp;nawiasach kwadratowych jest różny od zera i&nbsp;równy <math>8</math> (stąd czynnik <math>{\small\frac{1}{8}}</math> przed sumą).
  
 +
::<math>8 N = \sum_{k = 2}^{p - 2} \left[ 1
 +
+ \left( {\small\frac{k - 1}{p}} \right)_{\small{\!\! L}}
 +
+ \left( {\small\frac{k}{p}} \right)_{\small{\!\! L}}
 +
+ \left( {\small\frac{k + 1}{p}} \right)_{\small{\!\! L}}
 +
+ \left( {\small\frac{k - 1}{p}} \right)_{\small{\!\! L}} \left( {\small\frac{k}{p}} \right)_{\small{\!\! L}}
 +
+ \left( {\small\frac{k - 1}{p}} \right)_{\small{\!\! L}} \left( {\small\frac{k + 1}{p}} \right)_{\small{\!\! L}}
 +
+ \left( {\small\frac{k}{p}} \right)_{\small{\!\! L}} \left( {\small\frac{k + 1}{p}} \right)_{\small{\!\! L}}
 +
+ \left( {\small\frac{k - 1}{p}} \right)_{\small{\!\! L}} \left( {\small\frac{k}{p}} \right)_{\small{\!\! L}} \left( {\small\frac{k + 1}{p}} \right)_{\small{\!\! L}}
 +
\right]</math>
  
 +
:::<math>\: = p - 3 + \sum_{k = 2}^{p - 2} \left( {\small\frac{k - 1}{p}} \right)_{\small{\!\! L}}
 +
+ \sum_{k = 2}^{p - 2} \left( {\small\frac{k}{p}} \right)_{\small{\!\! L}}
 +
+ \sum_{k = 2}^{p - 2} \left( {\small\frac{k + 1}{p}} \right)_{\small{\!\! L}}
 +
+ \sum_{k = 2}^{p - 2} \left( {\small\frac{k - 1}{p}} \right)_{\small{\!\! L}} \left( {\small\frac{k}{p}} \right)_{\small{\!\! L}}
 +
+ \sum_{k = 2}^{p - 2} \left( {\small\frac{k - 1}{p}} \right)_{\small{\!\! L}} \left( {\small\frac{k + 1}{p}} \right)_{\small{\!\! L}}
 +
+ \sum_{k = 2}^{p - 2} \left( {\small\frac{k}{p}} \right)_{\small{\!\! L}} \left( {\small\frac{k + 1}{p}} \right)_{\small{\!\! L}}
 +
+ \sum_{k = 2}^{p - 2} \left( {\small\frac{k (k^2 - 1)}{p}} \right)_{\small{\!\! L}}</math>
  
<span style="font-size: 110%; font-weight: bold;">Twierdzenie C38</span><br/>
 
Jeżeli <math>n \geqslant 3</math>, to istnieje <math>n</math> kolejnych liczb naturalnych, wśród których znajduje się dokładnie <math>r \leqslant \pi (n)</math> liczb pierwszych.
 
  
{{Spoiler|Style = font-style: italic; font-weight: bold; color: olive; text-decoration: underline;|Show=Dowód|Hide=Ukryj dowód}}
+
Po kolei wyliczamy sumy po prawej stronie
Warunek <math>n \geqslant 3</math> nie wynika z&nbsp;potrzeb dowodu, a&nbsp;jedynie pomija sytuacje nietypowe, których twierdzenie nie obejmuje. Zawsze istnieje jedna liczba naturalna, która jest liczbą pierwszą i&nbsp;łatwo możemy wskazać dwie kolejne liczby naturalne będące liczbami pierwszymi.
 
  
Niech <math>k \in \mathbb{N}</math>. Wartość funkcji
+
::<math>\sum_{k = 2}^{p - 2} \left( {\small\frac{k - 1}{p}} \right)_{\small{\!\! L}} = - \left( {\small\frac{- 1}{p}} \right)_{\small{\!\! L}} - \left( {\small\frac{- 2}{p}} \right)_{\small{\!\! L}}</math>
  
::<math>Q(k, n) = \pi (k + n) - \pi (k)</math>
+
::<math>\sum_{k = 2}^{p - 2} \left( {\small\frac{k}{p}} \right)_{\small{\!\! L}} = - 1 - \left( {\small\frac{- 1}{p}} \right)_{\small{\!\! L}}</math>
  
jest równa ilości liczb pierwszych wśród <math>n</math> kolejnych liczb naturalnych od liczby <math>k + 1</math> do liczby <math>k + n</math>.
+
::<math>\sum_{k = 2}^{p - 2} \left( {\small\frac{k + 1}{p}} \right)_{\small{\!\! L}} = - 1 - \left( {\small\frac{2}{p}} \right)_{\small{\!\! L}}</math>
  
Uwzględniając, że wypisane niżej wyrażenia w&nbsp;nawiasach kwadratowych mogą przyjmować jedynie dwie wartości <math>0</math> lub <math>1</math>, dostajemy
 
  
:* <math>\biggl| Q (k + 1, n) - Q (k, n) \biggr| = \biggl| \bigl[\pi (k + n + 1) - \pi (k + n) \bigr] - \bigl[\pi (k + 1) - \pi (k) \bigr] \biggr| \leqslant 1</math>
+
::<math>\sum_{k = 2}^{p - 2} \left( {\small\frac{k - 1}{p}} \right)_{\small{\!\! L}} \left( {\small\frac{k}{p}} \right)_{\small{\!\! L}} = - 1 - \left( {\small\frac{2}{p}} \right)_{\small{\!\! L}}</math>
  
Ponadto mamy
+
::<math>\sum_{k = 2}^{p - 2} \left( {\small\frac{k - 1}{p}} \right)_{\small{\!\! L}} \left( {\small\frac{k + 1}{p}} \right)_{\small{\!\! L}} = - 1 - \left( {\small\frac{- 1}{p}} \right)_{\small{\!\! L}}</math>
  
:* <math>Q(0, n) = \pi (n) \qquad</math> bo <math>\pi (0) = 0</math>
+
::<math>\sum_{k = 2}^{p - 2} \left( {\small\frac{k}{p}} \right)_{\small{\!\! L}} \left( {\small\frac{k + 1}{p}} \right)_{\small{\!\! L}} = - 1 - \left( {\small\frac{2}{p}} \right)_{\small{\!\! L}}</math>
:* <math>Q((n + 1) ! + 1, n) = 0 \qquad</math> bo liczby <math>(n + 1) ! + 2, \ldots, (n + 1) ! + (n + 1)</math> są liczbami złożonymi
 
  
Ponieważ wartości funkcji <math>Q(k, n)</math> mogą zmieniać się tylko o <math>- 1</math>, <math>0</math> lub <math>1</math>, to <math>Q(k, n)</math> musi przyjmować '''wszystkie''' wartości całkowite od <math>0</math> do <math>\pi (n)</math>. Wynika stąd, że istnieje taka liczba <math>k_r</math>, że <math>Q(k_r, n) = r</math>, gdzie <math>0 \leqslant r \leqslant \pi (n)</math>.
 
  
 +
::<math>\sum_{k = 2}^{p - 2} \left( {\small\frac{k (k^2 - 1)}{p}} \right)_{\small{\!\! L}} = \sum^{p - 1}_{k = 0} \left( {\small\frac{k (k^2 - 1)}{p}} \right)_{\small{\!\! L}} = S (- 1)</math>
  
::[[File: C_Q10.png|none]]
 
  
Fragment wykresu funkcji <math>Q(k, 10)</math>. Widzimy, że dla <math>k = 113</math> po raz pierwszy mamy <math>Q(k, 10) = 0</math>, a&nbsp;funkcja <math>Q(k, 10)</math> przyjmuje wszystkie wartości całkowite od <math>0</math> do <math>5</math>.<br/>
+
(zobacz K1, K3 i K6). Oznaczenie <math>S(- 1)</math> nawiązuje do oznaczenia wprowadzonego w&nbsp;twierdzeniu K6. Wykorzystamy też znalezione w&nbsp;tym twierdzeniu oszacowanie <math>| S (- 1) |</math>.
&#9633;
 
{{\Spoiler}}
 
  
 +
Zatem
  
 +
::<math>8 N = p - 8 - 3 \left( {\small\frac{- 1}{p}} \right)_{\small{\!\! L}} - 3 \left( {\small\frac{2}{p}} \right)_{\small{\!\! L}} - \left( {\small\frac{- 2}{p}} \right)_{\small{\!\! L}} + S (- 1)</math>
  
<span style="font-size: 110%; font-weight: bold;">Przykład C39</span><br/>
+
Jeżeli <math>p = 8 k + 1</math>
Czytelnik może łatwo sprawdzić, że ciąg <math>( 1308, \ldots, 1407 )</math> stu kolejnych liczb całkowitych zawiera dokładnie <math>8</math> liczb pierwszych.
 
  
 +
::<math>N = {\small\frac{p - 15 + S (- 1)}{8}} > {\small\frac{p - 15 - 2 \sqrt{p}}{8}}</math>
  
 +
Jeżeli <math>p = 8 k + 3</math>
  
<span style="font-size: 110%; font-weight: bold;">Zadanie C40</span><br/>
+
::<math>N = {\small\frac{p - 3}{8}}</math>
Pokazać, nie korzystając z&nbsp;twierdzenia C38, że istnieje <math>1000</math> kolejnych liczb naturalnych, wśród których jest dokładnie jedna liczba pierwsza.
 
  
{{Spoiler|Style = font-style: italic; font-weight: bold; color: olive; text-decoration: underline;|Show=Rozwiązanie|Hide=Ukryj rozwiązanie}}
+
Jeżeli <math>p = 8 k + 5</math>
Zauważmy, że <math>1000</math> kolejnych liczb naturalnych
 
  
::<math>1001! + 2, 1001! + 3, \ldots, 1001! + 1001</math>
+
::<math>N = {\small\frac{p - 7 + S (- 1)}{8}} > {\small\frac{p - 7 - 2 \sqrt{p}}{8}}</math>
  
nie zawiera żadnej liczby pierwszej. Wielokrotnie zmniejszając wszystkie wypisane wyżej liczby o&nbsp;jeden, aż do chwili, gdy pierwsza z&nbsp;wypisanych liczb będzie liczbą pierwszą uzyskamy <math>1000</math> kolejnych liczb naturalnych, wśród których jest dokładnie jedna liczba pierwsza.
+
Jeżeli <math>p = 8 k + 7</math>
  
Uwaga: dopiero liczba <math>1001! - 1733</math> jest pierwsza.<br/>
+
::<math>N = {\small\frac{p - 7}{8}}</math>
&#9633;
 
{{\Spoiler}}
 
  
  
 +
'''Przypadek drugi: trójki liczb niekwadratowych modulo''' <math>\boldsymbol{p}</math>
  
<span style="font-size: 110%; font-weight: bold;">Zadanie C41</span><br/>
+
Chcemy znaleźć ilość takich liczb <math>k \in \{ 2, 3, \ldots, p - 2 \}</math>, dla których
Pokazać, że istnieje <math>20</math> kolejnych liczb naturalnych postaci <math>6 k + 1</math>, wśród których jest dokładnie <math>5</math> liczb pierwszych.
 
  
{{Spoiler|Style = font-style: italic; font-weight: bold; color: olive; text-decoration: underline;|Show=Rozwiązanie|Hide=Ukryj rozwiązanie}}
+
::<math>\left( {\small\frac{k - 1}{p}} \right)_{\small{\!\! L}} = \left( {\small\frac{k}{p}} \right)_{\small{\!\! L}} = \left( {\small\frac{k + 1}{p}} \right)_{\small{\!\! L}} = - 1</math>
Rozwiązywanie zadania rozpoczniemy od dwóch spostrzeżeń
 
  
:* wśród pierwszych <math>20</math> liczb naturalnych postaci <math>6 k + 1</math> jest <math>13</math> liczb pierwszych
+
Ilość liczb <math>k</math> spełniających powyższy warunek łatwo zapisać korzystając z&nbsp;symbolu Legendre'a
:* w&nbsp;ciągu <math>6 k + 1</math> istnieją dowolnie długie przedziały pozbawione liczb pierwszych (zobacz zadanie C36), zatem istnieje <math>20</math> kolejnych liczb naturalnych postaci <math>6 k + 1</math>, wśród których nie ma ani jednej liczby pierwszej
 
  
Pierwsze spostrzeżenie pokazuje, że rozwiązanie problemu jest potencjalnie możliwe. Rozwiązanie mogłoby nie istnieć, gdybyśmy szukali <math>20</math> liczb naturalnych postaci <math>6 k + 1</math> wśród których jest, powiedzmy, <math>15</math> liczb pierwszych.
+
::<math>N = - {\small\frac{1}{8}} \sum_{k = 2}^{p - 2} \left[ - 1 + \left( {\small\frac{k - 1}{p}} \right)_{\small{\!\! L}} \right] \left[ - 1 + \left( {\small\frac{k}{p}} \right)_{\small{\!\! L}} \right] \left[ - 1 + \left( {\small\frac{k + 1}{p}} \right)_{\small{\!\! L}} \right]</math>
  
Drugie spostrzeżenie mówi nam, że ilość liczb pierwszych wśród kolejnych <math>20</math> liczb naturalnych postaci <math>6 k + 1</math> zmienia się od <math>13</math> do <math>0</math>. Analiza przebiegu tych zmian jest kluczem do dowodu twierdzenia.
+
Tylko w&nbsp;przypadku, gdy wszystkie trzy liczby <math>k - 1, k, k + 1</math> są liczbami niekwadratowymi modulo <math>p</math>, iloczyn wyrażeń w&nbsp;nawiasach kwadratowych jest różny od zera i&nbsp;równy <math>- 8</math> (stąd czynnik <math>- {\small\frac{1}{8}}</math> przed sumą).
  
 +
::<math>8 N = \sum_{k = 2}^{p - 2} \left[ 1
 +
- \left( {\small\frac{k - 1}{p}} \right)_{\small{\!\! L}}
 +
- \left( {\small\frac{k}{p}} \right)_{\small{\!\! L}}
 +
- \left( {\small\frac{k + 1}{p}} \right)_{\small{\!\! L}}
 +
+ \left( {\small\frac{k - 1}{p}} \right)_{\small{\!\! L}} \left( {\small\frac{k}{p}} \right)_{\small{\!\! L}}
 +
+ \left( {\small\frac{k - 1}{p}} \right)_{\small{\!\! L}} \left( {\small\frac{k + 1}{p}} \right)_{\small{\!\! L}}
 +
+ \left( {\small\frac{k}{p}} \right)_{\small{\!\! L}} \left( {\small\frac{k + 1}{p}} \right)_{\small{\!\! L}}
 +
- \left( {\small\frac{k - 1}{p}} \right)_{\small{\!\! L}} \left( {\small\frac{k}{p}} \right)_{\small{\!\! L}} \left( {\small\frac{k + 1}{p}} \right)_{\small{\!\! L}}
 +
\right]</math>
  
Zbadajmy zatem, jak zmienia się ilość liczb pierwszych wśród kolejnych <math>20</math> liczb naturalnych postaci <math>6 k + 1</math>. Rozważmy ciąg <math>a_k = 6 k + 1</math>, gdzie <math>k = 0, 1, 2, \ldots</math>
+
:::<math>\: = p - 3 - \sum_{k = 2}^{p - 2} \left( {\small\frac{k - 1}{p}} \right)_{\small{\!\! L}}
 +
- \sum_{k = 2}^{p - 2} \left( {\small\frac{k}{p}} \right)_{\small{\!\! L}}
 +
- \sum_{k = 2}^{p - 2} \left( {\small\frac{k + 1}{p}} \right)_{\small{\!\! L}}
 +
+ \sum_{k = 2}^{p - 2} \left( {\small\frac{k - 1}{p}} \right)_{\small{\!\! L}} \left( {\small\frac{k}{p}} \right)_{\small{\!\! L}}
 +
+ \sum_{k = 2}^{p - 2} \left( {\small\frac{k - 1}{p}} \right)_{\small{\!\! L}} \left( {\small\frac{k + 1}{p}} \right)_{\small{\!\! L}}
 +
+ \sum_{k = 2}^{p - 2} \left( {\small\frac{k}{p}} \right)_{\small{\!\! L}} \left( {\small\frac{k + 1}{p}} \right)_{\small{\!\! L}}
 +
- \sum_{k = 2}^{p - 2} \left( {\small\frac{k (k^2 - 1)}{p}} \right)_{\small{\!\! L}}</math>
  
<math>(a_k) = (1, \mathbf{7}, \mathbf{13}, \mathbf{19}, 25, \mathbf{31}, \mathbf{37}, \mathbf{43}, 49, 55, \mathbf{61}, \mathbf{67}, \mathbf{73}, \mathbf{79}, 85, 91, \mathbf{97}, \mathbf{103}, \mathbf{109}, 115, 121, \mathbf{127}, 133, \mathbf{139}, 145, \mathbf{151}, \mathbf{157}, \mathbf{163}, 169, 175, \mathbf{181}, 187, \mathbf{193}, \mathbf{199}, 205, \mathbf{211}, \ldots)</math>
 
  
Liczby pierwsze zostały pogrubione.
+
Wartości sum już policzyliśmy, rozpatrując przypadek liczb kwadratowych modulo <math>p</math>. Zatem
  
 +
::<math>8 N = p - 4 + \left( {\small\frac{- 1}{p}} \right)_{\small{\!\! L}} - \left( {\small\frac{2}{p}} \right)_{\small{\!\! L}} + \left( {\small\frac{- 2}{p}} \right)_{\small{\!\! L}} - S (- 1)</math>
  
Niech <math>(B^n)</math> będzie fragmentem ciągu <math>(a_k)</math> rozpoczynającym się od <math>n</math>-tego wyrazu ciągu i&nbsp;złożonym z <math>20</math> kolejnych wyrazów ciągu <math>(a_k)</math>. Przykładowo mamy
 
  
<math>(B^1) = (1, \mathbf{7}, \mathbf{13}, \mathbf{19}, 25, \mathbf{31}, \mathbf{37}, \mathbf{43}, 49, 55, \mathbf{61}, \mathbf{67}, \mathbf{73}, \mathbf{79}, 85, 91, \mathbf{97}, \mathbf{103}, \mathbf{109}, 115 )</math>
+
Jeżeli <math>p = 8 k + 1</math>
  
<math>(B^2) = ( \mathbf{7}, \mathbf{13}, \mathbf{19}, 25, \mathbf{31}, \mathbf{37}, \mathbf{43}, 49, 55, \mathbf{61}, \mathbf{67}, \mathbf{73}, \mathbf{79}, 85, 91, \mathbf{97}, \mathbf{103}, \mathbf{109}, 115, 121 )</math>
+
::<math>N = {\small\frac{p - 3 - S (- 1)}{8}} > {\small\frac{p - 3 - 2 \sqrt{p}}{8}}</math>
  
<math>(B^3) = ( \mathbf{13}, \mathbf{19}, 25, \mathbf{31}, \mathbf{37}, \mathbf{43}, 49, 55, \mathbf{61}, \mathbf{67}, \mathbf{73}, \mathbf{79}, 85, 91, \mathbf{97}, \mathbf{103}, \mathbf{109}, 115, 121, \mathbf{127} )</math>
+
Jeżeli <math>p = 8 k + 3</math>
  
 +
::<math>N = {\small\frac{p - 3}{8}}</math>
  
Musimy zrozumieć, jak przejście od ciągu <math>(B^n)</math> do ciągu <math>(B^{n + 1})</math>
+
Jeżeli <math>p = 8 k + 5</math>
wpływa na ilość liczb pierwszych w&nbsp;tych ciągach.
 
  
* jeżeli najmniejszy wyraz ciągu <math>(B^n)</math> jest liczbą złożoną, to po przejściu do ciągu <math>(B^{n + 1})</math> ilość liczb pierwszych w&nbsp;tym ciągu w&nbsp;stosunku do ilości liczb pierwszych w&nbsp;ciągu <math>(B^n)</math> może
+
::<math>N = {\small\frac{p - 3 - S (- 1)}{8}} > {\small\frac{p - 3 - 2 \sqrt{p}}{8}}</math>
** pozostać bez zmian (w przypadku, gdy największy wyraz ciągu <math>(B^{n + 1})</math> jest liczbą złożoną)
 
** zwiększyć się o&nbsp;jeden (w przypadku, gdy największy wyraz ciągu <math>(B^{n + 1})</math> jest liczbą pierwszą)
 
  
* jeżeli najmniejszy wyraz ciągu <math>(B^n)</math> jest liczbą pierwszą, to po przejściu do ciągu <math>(B^{n + 1})</math> ilość liczb pierwszych w&nbsp;tym ciągu w&nbsp;stosunku do ilości liczb pierwszych w&nbsp;ciągu <math>(B^n)</math> może
+
Jeżeli <math>p = 8 k + 7</math>
** zmniejszyć się o&nbsp;jeden (w przypadku, gdy największy wyraz ciągu <math>(B^{n + 1})</math> jest liczbą złożoną)
 
** pozostać bez zmian (w przypadku, gdy największy wyraz ciągu <math>(B^{n + 1})</math> jest liczbą pierwszą)
 
  
 +
::<math>N = {\small\frac{p - 7}{8}}</math>
  
Wynika stąd, że przechodząc od ciągu <math>(B^n)</math> do ciągu <math>(B^{n + 1})</math> ilość liczb pierwszych może się zmienić o <math>- 1</math>, <math>0</math> lub <math>1</math>. Z&nbsp;drugiego ze spostrzeżeń uczynionych na początku dowodu wynika istnienie takiej liczby <math>r</math>, że wśród ciągów
+
Co kończy dowód.<br/>
 
 
::<math>(B^1), (B^2), \ldots, (B^r)</math>
 
 
 
ilość liczb pierwszych będzie przyjmowała '''wszystkie''' możliwe wartości od liczby <math>13</math> do liczby <math>0</math>. Co zapewnia istnienie takich <math>20</math> kolejnych liczb naturalnych postaci <math>6 k + 1</math>, że wśród nich jest dokładnie <math>5</math> liczb pierwszych.<br/>
 
 
&#9633;
 
&#9633;
 
{{\Spoiler}}
 
{{\Spoiler}}
Linia 912: Linia 853:
  
  
<span style="font-size: 110%; font-weight: bold;">Twierdzenie C42</span><br/>
+
<span style="font-size: 110%; font-weight: bold;">Uwaga K12</span><br/>
Niech <math>a, b \in \mathbb{Z}</math> oraz <math>a \geqslant 2</math> i <math>0 \leqslant b \leqslant a - 1</math>. Jeżeli liczby <math>a</math> oraz <math>b</math> są względnie pierwsze, to istnieje <math>n</math> kolejnych liczb postaci <math>a k + b</math>, wśród których znajduje się dokładnie <math>r \leqslant \pi (a (n - 1) + b ; a, b)</math> liczb pierwszych.
+
Korzystając z&nbsp;twierdzenia K11, łatwo można pokazać, że każda liczba pierwsza <math>p \geqslant 19</math> ma co najmniej dwie różne trójki kolejnych liczb kwadratowych modulo <math>p</math> i&nbsp;co najmniej dwie różne trójki kolejnych liczb niekwadratowych modulo <math>p</math>.
  
{{Spoiler|Style = font-style: italic; font-weight: bold; color: olive; text-decoration: underline;|Show=Dowód|Hide=Ukryj dowód}}
 
Twierdzenie można udowodnić uogólniając dowód twierdzenia C38 lub wykorzystując metodę zastosowaną w&nbsp;rozwiązaniu zadania C41.<br/>
 
&#9633;
 
{{\Spoiler}}
 
  
  
  
<span style="font-size: 110%; font-weight: bold;">Zadanie C43</span><br/>
 
Niech <math>p \geqslant 5</math> będzie liczbą pierwszą. Pokazać, że w&nbsp;ciągu <math>6 k + 1</math> występują kwadraty wszystkich liczb pierwszych <math>p</math>.
 
  
{{Spoiler|Style = font-style: italic; font-weight: bold; color: olive; text-decoration: underline;|Show=Rozwiązanie|Hide=Ukryj rozwiązanie}}
+
== Najmniejsze liczby niekwadratowe modulo ==
Wiemy, że liczby pierwsze nieparzyste <math>p \geqslant 5</math> mogą być postaci <math>6 k + 1</math> lub <math>6 k + 5</math>. Ponieważ
 
  
::<math>(6 k + 1)^2 = 6 (6 k^2 + 2 k) + 1</math>
+
&nbsp;<br/>
  
::<math>(6 k + 5)^2 = 6 (6 k^2 + 10 k + 4) + 1</math>
+
{| style="border-spacing: 5px; border: 2px solid black; background: transparent;"
 
+
| &nbsp;'''A.''' Najmniejsze dodatnie liczby niekwadratowe modulo <math>p</math>&nbsp;
zatem kwadraty liczb pierwszych są postaci <math>6 k + 1</math> i&nbsp;nie mogą występować w&nbsp;ciągu postaci <math>6 k + 5</math>.<br/>
+
|}
&#9633;
 
{{\Spoiler}}
 
  
 +
<span style="font-size: 110%; font-weight: bold;">Przykład K13</span><br/>
 +
W tabeli przedstawiliśmy najmniejsze dodatnie liczby niekwadratowe modulo <math>p</math>
  
 +
::{| class="wikitable plainlinks"  style="font-size: 100%; text-align: center; margin-right: auto;"
 +
! <math>\boldsymbol{m}</math>
 +
| <math>3</math> || <math>5</math> || <math>7</math> || <math>9</math> || <math>11</math> || <math>13</math> || <math>15</math> || <math>17</math> || <math>19</math> || <math>21</math> || <math>23</math> || <math>25</math> || <math>27</math> || <math>29</math> || <math>31</math> || <math>33</math> || <math>35</math> || <math>37</math> || <math>39</math> || <math>41</math> || <math>43</math> || <math>45</math> || <math>47</math> || <math>49</math> || <math>51</math>
 +
|-
 +
!  <math>\boldsymbol{\mathbb{n}( p )}</math>
 +
| <math>2</math> || <math>2</math> || <math>3</math> || <math>-</math> || <math>2</math> || <math>2</math> || <math>-</math> || <math>3</math> || <math>2</math> || <math>-</math> || <math>5</math> || <math>-</math> || <math>-</math> || <math>2</math> || <math>3</math> || <math>-</math> || <math>-</math> || <math>2</math> || <math>-</math> || <math>3</math> || <math>2</math> || <math>-</math> || <math>5</math> || <math>-</math> || <math>-</math>
 +
|}
  
<span style="font-size: 110%; font-weight: bold;">Zadanie C44</span><br/>
 
Dany jest ciąg arytmetyczny <math>a k + b</math>, gdzie liczby <math>a</math> i <math>b</math> są względnie pierwsze. Pokazać, że
 
  
* jeżeli liczba pierwsza <math>p</math> dzieli <math>a</math>, to żaden wyraz ciągu <math>a k + b</math> nie jest podzielny przez <math>p</math>
 
* jeżeli liczba pierwsza <math>p</math> nie dzieli <math>a</math>, to istnieje nieskończenie wiele wyrazów ciągu <math>a k + b</math>, które są podzielne przez <math>p</math>
 
  
{{Spoiler|Style = font-style: italic; font-weight: bold; color: olive; text-decoration: underline;|Show=Rozwiązanie|Hide=Ukryj rozwiązanie}}
+
<span style="font-size: 110%; font-weight: bold;">Uwaga K14</span><br/>
'''Punkt 1.'''<br/>
+
Do wyszukiwania liczb <math>\mathbb{n} = \mathbb{n} (p)</math> Czytelnik może wykorzystać prostą funkcję napisaną w&nbsp;PARI/GP
Zauważmy, że liczby <math>a</math> i <math>b</math> są względnie pierwsze, zatem liczba pierwsza <math>p</math> nie może jednocześnie dzielić liczb <math>a</math> i <math>b</math>. Ponieważ z&nbsp;założenia <math>p \mid a</math>, to wynika stąd, że <math>p</math> nie dzieli <math>b</math>. Jeśli tak, to
 
  
::<math>a k + b = (n p) k + b</math>
+
<span style="font-size: 90%; color:black;">A(p) =
 +
{
 +
'''if'''( p == 2, '''return'''(0) );
 +
'''if'''( !'''isprime'''(p), '''return'''(0) );
 +
'''forprime'''(q = 2, p, '''if'''( jacobi(q, p) == -1, '''return'''(q) ));
 +
}</span>
  
i <math>p</math> nie dzieli żadnej liczby postaci <math>a k + b</math>.
+
Zauważmy, że choć wyliczamy symbol Jacobiego, to jest to w&nbsp;rzeczywistości symbol Legendre'a, '''bo wiemy''', że liczba <math>p</math> jest liczbą pierwszą (w przypadku, gdy <math>p</math> jest liczbą złożoną, funkcja zwraca zero).
  
'''Punkt 2.'''<br/>
 
<span style="border-bottom-style: double;">Pierwszy sposób</span><br/><br/>
 
Niech <math>k_0 \in \mathbb{N}</math>. Przypuśćmy, że dla pewnych różnych liczb naturalnych <math>i, j</math> takich, że <math>1 \leqslant i < j \leqslant p</math> liczby <math>a(k_0 + i) + b</math> oraz <math>a(k_0 + j) + b</math> dają tę samą resztę przy dzieleniu przez liczbę pierwszą <math>p</math>. Zatem różnica tych liczb jest podzielna przez <math>p</math>
 
  
::<math>p \mid [a (k_0 + j) + b] - [a (k_0 + i) + b]</math>
 
  
czyli
+
<span style="font-size: 110%; font-weight: bold;">Twierdzenie K15</span><br/>
 +
Niech <math>\mathbb{n} \in \mathbb{Z}_+</math> i&nbsp;niech <math>p</math> będzie liczbą pierwszą nieparzystą. Jeżeli <math>\mathbb{n}</math> jest najmniejszą liczbą niekwadratową modulo <math>p</math>, to jest liczbą pierwszą.
  
::<math>p \mid a (j - i)</math>
+
{{Spoiler|Style = font-style: italic; font-weight: bold; color: olive; text-decoration: underline;|Show=Dowód|Hide=Ukryj dowód}}
 +
Przypuśćmy, że <math>\mathbb{n} = a b</math> jest liczbą złożoną, gdzie <math>1 < a, b < \mathbb{n}</math>. Z&nbsp;założenia <math>\mathbb{n}</math> jest najmniejszą liczbą niekwadratową modulo <math>p</math>, zatem liczby <math>a, b</math> są liczbami kwadratowymi modulo <math>p</math>. Z&nbsp;definicji liczb kwadratowych muszą istnieć takie liczby <math>r, s</math>, że
  
Ponieważ <math>p \nmid a</math> to na mocy lematu Euklidesa (twierdzenie C74), mamy
+
::<math>r^2 \equiv a \pmod{p}</math>
  
::<math>p \mid (j - i)</math>
+
::<math>s^2 \equiv b \pmod{p}</math>
  
co jest niemożliwe, bo <math>1 \leqslant j - i \leqslant p - 1 < p</math>.
+
Skąd wynika, że
  
Zatem reszty <math>r_1, r_2, \ldots, r_p</math> są wszystkie różne, a&nbsp;ponieważ jest ich <math>p</math>, czyli tyle ile jest różnych reszt z&nbsp;dzielenia przez liczbę <math>p</math>, to zbiór tych reszt jest identyczny ze zbiorem reszt z&nbsp;dzielenia przez <math>p</math>, czyli ze zbiorem <math>S = \{ 0, 1, 2, \ldots, p - 1 \}</math>. W&nbsp;szczególności wynika stąd, że wśród <math>p</math> kolejnych wyrazów ciągu arytmetycznego <math>a k + b</math> jeden z&nbsp;tych wyrazów jest podzielny przez <math>p</math>. Zatem istnieje nieskończenie wiele wyrazów ciągu <math>a k + b</math>, które są podzielne przez <math>p</math>.
+
::<math>\mathbb{n} = a b \equiv (r s)^2 \pmod{p}</math>
  
 +
Wbrew założeniu, że <math>\mathbb{n}</math> jest liczbą niekwadratową modulo <math>p</math>.<br/>
 +
&#9633;
 +
{{\Spoiler}}
  
<span style="border-bottom-style: double;">Drugi sposób</span><br/><br/>
 
Problem sprowadza się do wykazania istnienia nieskończenie wielu par liczb naturalnych <math>(k, n)</math>, takich że
 
  
::<math>a k + b = n p</math>
 
  
Co z&nbsp;kolei sprowadza się do badania rozwiązań całkowitych równania
+
<span style="font-size: 110%; font-weight: bold;">Zadanie K16</span><br/>
 +
Pokazać, że najmniejszą liczbą niekwadratową modulo <math>p</math> jest
  
::<math>n p - a k = b</math>
+
:* &nbsp;liczba <math>2</math> wtedy i&nbsp;tylko wtedy, gdy <math>p = 8 k \pm 3</math>
 +
:* &nbsp;liczba <math>3</math> wtedy i&nbsp;tylko wtedy, gdy <math>p = 24 k \pm 7</math>
 +
:* &nbsp;liczba <math>\geqslant 5</math> wtedy i&nbsp;tylko wtedy, gdy <math>p = 24 k \pm 1</math>
  
Zauważmy, że ponieważ <math>p \nmid a</math>, to liczby <math>a</math> i <math>p</math> są względnie pierwsze. Zatem ich największym wspólnym dzielnikiem jest liczba <math>1</math>. Na mocy twierdzenia C78 równanie to ma nieskończenie wiele rozwiązań w&nbsp;liczbach całkowitych
+
{{Spoiler|Style = font-style: italic; font-weight: bold; color: olive; text-decoration: underline;|Show=Rozwiązanie|Hide=Ukryj rozwiązanie}}
 +
Z właściwości symbolu Legendre'a (zobacz J33 p.7) wiemy, że
  
::<math>n = n_0 + p t</math>
+
::<math>\left( {\small\frac{2}{p}} \right)_{\small{\!\! L}} \,\, =  
::<math>k = k_0 + a t</math>
+
\,\,
 +
  \begin{cases}
 +
\;\;\: 1 & \text{gdy } p \equiv 1, 7 \pmod{8} \\
 +
      - 1 & \text{gdy } p \equiv 3, 5 \pmod{8} \\
 +
  \end{cases}</math>
  
gdzie <math>t</math> jest dowolną liczbą całkowitą, a&nbsp;para liczb <math>(n_0, k_0)</math> jest dowolnym rozwiązaniem tego równania. Widzimy, że dla dostatecznie dużych liczb <math>t</math> zawsze możemy uzyskać takie <math>n</math> i <math>k</math>, że <math>n, k \in \mathbb{Z}_+</math>. Pokazaliśmy w&nbsp;ten sposób, że w&nbsp;ciągu arytmetycznym <math>a k + b</math> istnieje nieskończenie wiele wyrazów podzielnych przez liczbę pierwszą <math>p</math>.
+
Wynika stąd natychmiast, dla liczb pierwszych <math>p</math> postaci <math>8 k \pm 3</math> (i tylko dla takich liczb) liczba <math>2</math> jest liczbą niekwadratową, czyli również najmniejszą liczbą niekwadratową modulo <math>p</math>.
  
 +
Z zadania J46 wynika, że liczba <math>3</math> jest liczbą niekwadratową jedynie dla liczb pierwszych postaci <math>12 k \pm 5</math>. Zatem dla liczb pierwszych, które są jednocześnie postaci <math>p = 8 k \pm 1</math> i <math>p = 12 j \pm 5</math>, liczba <math>3</math> jest najmniejszą liczbą niekwadratową modulo <math>p</math>. Z&nbsp;czterech warunków
  
<span style="border-bottom-style: double;">Trzeci sposób</span><br/><br/>
+
::<math>p = 8 k + 1 \quad \text{i} \quad p = 12 j + 5</math>
Zauważmy, że ponieważ <math>p \nmid a</math>, to liczby <math>a</math> i <math>p</math> są względnie pierwsze. Zatem ich największym wspólnym dzielnikiem jest liczba <math>1</math>. Lemat Bézouta zapewnia istnienie takich liczb całkowitych <math>x</math> i <math>y</math>, że
 
  
::<math>a x + p y = 1</math>
+
::<math>p = 8 k + 1 \quad \text{i} \quad p = 12 j + 7</math>
  
Niech <math>k_0 = r p - b x</math>, gdzie <math>r</math> jest dowolną liczbą całkowitą dodatnią, ale na tyle dużą, aby <math>k_0</math> była liczbą dodatnią bez względu na znak iloczynu <math>b x</math>. Łatwo sprawdzamy, że liczba <math>a k_0 + b</math> jest podzielna przez <math>p</math>
+
::<math>p = 8 k + 7 \quad \text{i} \quad p = 12 j + 5</math>
  
::<math>a k_0 + b = a (r p - b x) + b =</math>
+
::<math>p = 8 k + 7 \quad \text{i} \quad p = 12 j + 7</math>
  
::::<math>\;\; = a r p - a b x + b =</math>
+
Drugi i&nbsp;trzeci nie są możliwe, bo modulo <math>4</math> otrzymujemy
  
::::<math>\;\; = a r p + b (1 - a x) =</math>
+
::<math>p \equiv 1 \pmod{4} \quad \text{i} \quad p \equiv 3 \pmod{4}</math>
  
::::<math>\;\; = a r p + b p y =</math>
+
::<math>p \equiv 3 \pmod{4} \quad \text{i} \quad p \equiv 1 \pmod{4}</math>
  
::::<math>\;\; = p (a r + b y)</math>
+
a z&nbsp;pierwszego i&nbsp;czwartego mamy
  
Zatem w&nbsp;ciągu <math>a k + b</math> istnieje przynajmniej jeden wyraz podzielny przez liczbę pierwszą <math>p</math>. Jeśli tak, to w&nbsp;ciągu arytmetycznym <math>a k + b</math> istnieje nieskończenie wiele liczb podzielnych przez <math>p</math>, bo dla <math>k = k_0 + s p</math>, gdzie <math>s \in \mathbb{N}</math>, mamy
+
::<math>3 p = 24 k + 3 \quad \text{i} \quad 2 p = 24 j + 10 \qquad \;\: \Longrightarrow \qquad p = 24 (k - j) - 7 \qquad \Longrightarrow \qquad p \equiv - 7 \pmod{24}</math>
  
::<math>a k + b = a (k_0 + s p) + b = a s p + (a k_0 + b)</math>
+
::<math>3 p = 24 k + 21 \quad \text{i} \quad 2 p = 24 j + 14 \qquad \Longrightarrow \qquad p = 24 (k - j) + 7 \qquad \Longrightarrow \qquad p \equiv 7 \pmod{24}</math>
  
Czyli <math>p \mid a k + b</math>.<br/>
+
Zauważmy, że problem mogliśmy zapisać w&nbsp;postaci układu kongruencji
&#9633;
 
{{\Spoiler}}
 
  
 +
::<math>p \equiv \pm 1 \pmod{8}</math>
  
 +
::<math>p \equiv \pm 5 \pmod{12}</math>
  
<span style="font-size: 110%; font-weight: bold;">Uwaga C45</span><br/>
+
Gdyby moduły tych kongruencji były względnie pierwsze, to każdemu wyborowi znaków odpowiadałaby pewna kongruencja równoważna (zobacz J3). Widzimy, że w&nbsp;przypadku, gdy moduły nie są względnie pierwsze, kongruencja równoważna może istnieć, ale nie musi. Rozwiązując taki problem, wygodnie jest skorzystać z&nbsp;programu PARI/GP. Wystarczy wpisać
Łatwo możemy napisać w&nbsp;PARI/GP funkcję, która zwraca najmniejszą liczbę naturalną <math>k_0</math>, dla której wyraz ciągu arytmetycznego <math>a k + b</math> jest podzielny przez <math>p</math> (przy założeniu, że liczby <math>a</math> i <math>p</math> są względnie pierwsze).
 
  
  f(a,b,p) = lift( Mod(-b,p)*Mod(a,p)^(-1) )
+
  chinese(Mod(1, 8), Mod(5, 12)) = Mod(17, 24)
 +
chinese(Mod(1, 8), Mod(-5, 12)) - błąd
 +
chinese(Mod(-1, 8), Mod(5, 12)) - błąd
 +
chinese(Mod(-1, 8), Mod(-5, 12)) = Mod(7, 24)
  
 +
Ostatni punkt zadania rozwiążemy tą metodą. Liczba większa lub równa <math>5</math> jest najmniejszą liczbą niekwadratową modulo <math>p</math> wtedy i&nbsp;tylko wtedy, gdy liczby <math>2</math> i <math>3</math> są liczbami kwadratowymi modulo <math>p</math>, co oznacza, że liczba pierwsza <math>p</math> spełnia kongruencje
  
 +
::<math>p \equiv \pm 1 \pmod{8}</math>
  
 +
::<math>p \equiv \pm 1 \pmod{12}</math>
  
 +
Postępując jak wyżej, otrzymujemy
  
== Ciągi nieskończone i&nbsp;liczby pierwsze ==
+
chinese(Mod(1, 8), Mod(1, 12)) = Mod(1, 24)
 +
chinese(Mod(1, 8), Mod(-1, 12)) - błąd
 +
chinese(Mod(-1, 8), Mod(1, 12)) - błąd
 +
chinese(Mod(-1, 8), Mod(-1, 12)) = Mod(23, 24)
  
<span style="font-size: 110%; font-weight: bold;">Uwaga C46</span><br/>
+
Co należało pokazać.<br/>
Choć wiele ciągów jest dobrze znanych i&nbsp;równie dobrze zbadanych, to nie wiemy, czy zawierają one nieskończenie wiele liczb pierwszych. Przykładowo
+
&#9633;
 +
{{\Spoiler}}
  
::{| class="wikitable plainlinks"  style="font-size: 100%; text-align: left; margin-right: auto;"
 
|-
 
| <math>\quad 1. \quad</math>
 
| <math>a_n = n^2 + 1</math>
 
| [https://oeis.org/A002496 A002496]
 
|-
 
| <math>\quad 2. \quad</math>
 
| <math>b_n = n^2 - n - 1</math>
 
| [https://oeis.org/A002327 A002327]
 
|-
 
| <math>\quad 3. \quad</math>
 
| <math>c_n = n^2 + n + 1</math>
 
| [https://oeis.org/A002383 A002383]
 
|-
 
| <math>\quad 4. \quad</math>
 
| <math>d_n = n^4 + 1</math>
 
| [https://oeis.org/A000068 A000068]
 
|-
 
| <math>\quad 5. \quad</math>
 
| <math>u_n = n! + 1</math>
 
| [https://oeis.org/A002981 A002981]
 
|-
 
| <math>\quad 6. \quad</math>
 
| <math>v_n = n! - 1</math>
 
| [https://oeis.org/A002982 A002982]
 
|-
 
| <math>\quad 7. \quad</math>
 
| <math>M_n = 2^n - 1</math> (liczby Mersenne'a)
 
| [https://oeis.org/A000043 A000043]
 
|-
 
| <math>\quad 8. \quad</math>
 
| <math>F_n = 2^{2^n} + 1</math> (liczby Fermata)
 
| [https://oeis.org/A019434 A019434]
 
|-
 
| <math>\quad 9. \quad</math>
 
| <math>F_n (a) = a^{2^n} + 1</math> (uogólnione liczby Fermata, <math>a</math> parzyste)
 
| [https://mathworld.wolfram.com/GeneralizedFermatNumber.html MathWorld]
 
|}
 
  
Nie wiemy, czy istnieje wielomian całkowity <math>W(n)</math> stopnia większego niż jeden taki, że <math>W(n)</math> jest liczbą pierwszą dla nieskończenie wielu liczb <math>n</math>.
 
  
 +
<span style="font-size: 110%; font-weight: bold;">Twierdzenie K17</span><br/>
 +
Dla każdej liczby pierwszej <math>p_n</math> istnieje nieskończenie wiele takich liczb pierwszych <math>q</math>, że <math>p_n</math> jest najmniejszą liczbą niekwadratową modulo <math>q</math>.
  
 +
{{Spoiler|Style = font-style: italic; font-weight: bold; color: olive; text-decoration: underline;|Show=Dowód|Hide=Ukryj dowód}}
 +
Niech <math>2, p_2, \ldots, p_{n - 1}, p_n</math> będą kolejnymi liczbami pierwszymi. Wybierzmy liczbę <math>u</math> tak, aby spełniała układ kongruencji
  
<span style="font-size: 110%; font-weight: bold;">Przykład C47</span><br/>
+
::<math>\begin{align}
Łatwo sprawdzić, że wartości wielomianu <math>W(n) = n^2 + n + 41</math> są liczbami pierwszymi dla <math>1 \leqslant n \leqslant 39</math>. Oczywiście <math>41 \mid W(41)</math>.
+
u & \equiv 1 \pmod{8 p_2 \cdot \ldots \cdot p_{n - 1}} \\
 +
u & \equiv a \pmod{p_n} \\
 +
\end{align}</math>
  
 +
gdzie <math>a</math> oznacza dowolną liczbą niekwadratową modulo <math>p_n</math>. Na podstawie chińskiego twierdzenia o&nbsp;resztach (zobacz J3) powyższy układ kongruencji może być zapisany w&nbsp;postaci kongruencji równoważnej
  
 +
::<math>u \equiv c \pmod{8 p_2 \cdot \ldots \cdot p_n}</math>
  
<span style="font-size: 110%; font-weight: bold;">Twierdzenie C48</span><br/>
 
Niech <math>a, n \in \mathbb{Z}_+</math> i <math>a \geqslant 2</math>. Jeżeli liczba <math>a^n + 1</math> jest liczbą pierwszą, to <math>a</math> jest liczbą parzystą i <math>n = 2^m</math>.
 
  
{{Spoiler|Style = font-style: italic; font-weight: bold; color: olive; text-decoration: underline;|Show=Dowód|Hide=Ukryj dowód}}
+
Zauważmy, że żadna z&nbsp;liczb pierwszych <math>p_k</math>, gdzie <math>1 \leqslant k \leqslant n</math> nie dzieli liczby <math>c</math>, bo mielibyśmy
Gdyby liczba <math>a</math> była nieparzysta, to liczba <math>a^n + 1 \geqslant 4</math> byłaby parzysta i&nbsp;nie mogłaby być liczbą pierwszą.
 
  
Niech wykładnik <math>n = x y</math> będzie liczbą złożoną, a <math>x</math> będzie liczbą nieparzystą. Wtedy
+
::<math>u \equiv 0 \pmod{p_k}</math>
  
::<math>a^n + 1 = (a^y)^x + 1</math>
+
wbrew wypisanemu wyżej układowi kongruencji. Zatem <math>\gcd (c, 8 p_2 \cdot \ldots \cdot p_n) = 1</math> i&nbsp;z&nbsp;twierdzenia Dirichleta (zobacz C27) wiemy, że wśród liczb <math>u</math> spełniających kongruencję <math>u \equiv c \!\! \pmod{8 p_2 \cdot \ldots \cdot p_n}</math> występuje nieskończenie wiele liczb pierwszych (bo wśród tych liczb są liczby postaci <math>8 p_2 \cdot \ldots \cdot p_n \cdot k + c</math>, gdzie <math>k \in \mathbb{Z}_+</math>). Oznaczmy przez <math>q</math> dowolną z&nbsp;tych liczb pierwszych.
  
Oznaczając <math>b = a^y</math> oraz <math>x = 2 k + 1</math>, otrzymujemy
 
  
::<math>a^n + 1 = (a^y)^x + 1</math>
+
Ponieważ <math>q \equiv 1 \!\! \pmod{8}</math>, to <math>\left( {\small\frac{2}{q}} \right)_{\small{\!\! L}} = 1</math> (zobacz J33), a&nbsp;dla wszystkich liczb pierwszych nieparzystych <math>p_k < p_n</math> mamy
  
::::<math>\: = b^x + 1</math>
+
<div style="margin-top: 1em; margin-bottom: 1em;">
 +
::<math>\left( {\small\frac{p_k}{q}} \right)_{\small{\!\! L}} = \left( {\small\frac{q}{p_k}} \right)_{\small{\!\! L}} \cdot (- 1)^{\tfrac{q - 1}{2} \cdot \tfrac{p_k - 1}{2}} = \left( {\small\frac{q}{p_k}} \right)_{\small{\!\! L}} = \left( {\small\frac{c}{p_k}} \right)_{\small{\!\! L}} = \left( {\small\frac{1}{p_k}} \right)_{\small{\!\! L}} = 1</math>
 +
</div>
  
::::<math>\: = b^{2 k + 1} + 1</math>
+
bo <math>8 \mid (q - 1)</math>. Dla liczby pierwszej <math>p_n</math> jest
  
::::<math>\: = (b + 1) \cdot (1 - b + b^2 - b^3 + \ldots + b^{2 k - 2} - b^{2 k - 1} + b^{2 k})</math>
+
<div style="margin-top: 1em; margin-bottom: 1em;">
 +
::<math>\left( {\small\frac{p_n}{q}} \right)_{\small{\!\! L}} = \left( {\small\frac{q}{p_n}} \right)_{\small{\!\! L}} \cdot (- 1)^{\tfrac{q - 1}{2} \cdot \tfrac{p_n - 1}{2}} = \left( {\small\frac{q}{p_n}} \right)_{\small{\!\! L}} = \left( {\small\frac{c}{p_n}} \right)_{\small{\!\! L}} = \left( {\small\frac{a}{p_n}} \right)_{\small{\!\! L}} = - 1</math>
 +
</div>
  
Czyli <math>a^n + 1</math> jest liczbą złożoną. Wynika stąd, że wykładnik <math>n</math> nie może zawierać czynników nieparzystych, czyli musi być <math>n = 2^m</math>. Co należało pokazać.<br/>
+
Zatem wszystkie liczby pierwsze mniejsze od <math>p_n</math> są liczbami kwadratowymi modulo <math>q</math>, a&nbsp;liczba pierwsza <math>p_n</math> jest najmniejszą liczbą niekwadratową modulo <math>q</math>. Zauważmy, że <math>q</math> była dowolnie wybraną liczbą pierwszą z&nbsp;nieskończenie wielu liczb pierwszych występujących w&nbsp;ciągu arytmetycznym <math>8 p_2 \cdot \ldots \cdot p_n \cdot k + c</math>, gdzie <math>k \in \mathbb{Z}_+</math>. Co kończy dowód.<br/>
 
&#9633;
 
&#9633;
 
{{\Spoiler}}
 
{{\Spoiler}}
Linia 1103: Linia 1029:
  
  
<span style="font-size: 110%; font-weight: bold;">Twierdzenie C49</span><br/>
+
<span style="font-size: 110%; font-weight: bold;">Twierdzenie K18 (Sarvadaman Chowla)</span><br/>
Dla dowolnej liczby naturalnej <math>n \geqslant 1</math> liczba <math>x - y</math> jest dzielnikiem wyrażenia <math>x^n - y^n</math>.
+
Istnieje niekończenie wiele liczb pierwszych <math>p</math> takich, że najmniejsza liczba niekwadratowa modulo <math>p</math> jest większa od <math>{\small\frac{\log p}{2 L \log 2}}</math>, gdzie <math>L</math> jest stałą Linnika.
  
 
{{Spoiler|Style = font-style: italic; font-weight: bold; color: olive; text-decoration: underline;|Show=Dowód|Hide=Ukryj dowód}}
 
{{Spoiler|Style = font-style: italic; font-weight: bold; color: olive; text-decoration: underline;|Show=Dowód|Hide=Ukryj dowód}}
Indukcja matematyczna. Twierdzenie jest prawdziwe dla <math>n = 1</math>, bo <math>x - y</math> dzieli <math>x^1 - y^1</math>. Załóżmy, że <math>x - y</math> jest dzielnikiem wyrażenia <math>x^n - y^n</math>, czyli <math>x^n - y^n = (x - y) \cdot k</math>, otrzymujemy dla <math>n + 1</math>
+
Niech <math>a = 4 P (m)</math>, gdzie <math>P(m)</math> jest iloczynem wszystkich liczb pierwszych nie większych od <math>m</math>. Z&nbsp;twierdzenia Dirichleta (zobacz C27) wiemy, że w&nbsp;ciągu arytmetycznym <math>u_k = a k + 1</math> występuje nieskończenie wiele liczb pierwszych. Niech <math>p</math> oznacza dowolną z&nbsp;nich.
  
::<math>x^{n + 1} - y^{n + 1} = x x^n - y x^n + y x^n - y y^n =</math>
+
Ponieważ <math>p \equiv 1 \!\! \pmod{8}</math>, to
  
:::::<math>\quad \, = (x - y) x^n + y (x^n - y^n) =</math>
+
::<math>\left( {\small\frac{2}{p}} \right)_{\small{\!\! L}} = 1</math>
  
:::::<math>\quad \, = (x - y) x^n + y (x - y) \cdot k =</math>
+
(zobacz J33 p.7). Oczywiście <math>p \equiv 1 \!\! \pmod{4}</math>, zatem dla dowolnej liczby pierwszej nieparzystej <math>q_i \leqslant m</math> z&nbsp;twierdzenia J33 p.9 otrzymujemy
  
:::::<math>\quad \, = (x - y) (x^n + y \cdot k)</math>
+
<div style="margin-top: 1em; margin-bottom: 1em;">
 +
::<math>\left( {\small\frac{q_i}{p}} \right)_{\small{\!\! L}} = \left( {\small\frac{p}{q_i}} \right)_{\small{\!\! L}} = \left( {\small\frac{a k + 1}{q_i}} \right)_{\small{\!\! L}} = \left( {\small\frac{1}{q_i}} \right)_{\small{\!\! L}} = 1</math>
 +
</div>
  
Czyli <math>x - y</math> jest dzielnikiem <math>x^{n + 1} - y^{n + 1}</math>. Co kończy dowód indukcyjny.<br/>
+
Wynika stąd, że najmniejsza liczba niekwadratowa modulo <math>p</math> jest większa od <math>m</math>. Wiemy też, że (zobacz A9)
 +
 
 +
::<math>a = 4 P (m) < 4 \cdot 4^m = 4^{m + 1}</math>
 +
 
 +
Załóżmy teraz, że <math>p</math> jest najmniejszą liczbą pierwszą w&nbsp;ciągu arytmetycznym <math>u_k = a k + 1</math>, a&nbsp;liczba <math>m</math> została wybrana tak, że liczba <math>a = 4 P (m)</math> jest dostatecznie duża i&nbsp;możliwe jest skorzystanie z&nbsp;twierdzenia Linnika (zobacz C30). Dostajemy natychmiast oszacowanie
 +
 
 +
::<math>p = p_{\min} (a, 1) < a^L</math>
 +
 
 +
gdzie <math>L</math> jest stałą Linnika (możemy przyjąć <math>L = 5</math>). Łącząc powyższe oszacowania, łatwo otrzymujemy oszacowanie najmniejszej liczby niekwadratowej modulo <math>p</math>
 +
 
 +
::<math>\mathbb{n}(p) \geqslant m + 1 > \log_4 a = {\small\frac{\log a}{\log 4}} = {\small\frac{\log a^L}{2 L \log 2}} > {\small\frac{\log p}{2 L \log 2}}</math>
 +
 
 +
Każdemu wyborowi innej liczby <math>m' > m</math> takiej, że <math>P(m') > P (m)</math> odpowiada inna liczba pierwsza <math>p'</math> taka, że <math>\mathbb{n}(p') > {\small\frac{\log p'}{2 L \log 2}}</math>, zatem liczb pierwszych <math>p</math> dla których najmniejsza liczba niekwadratowa modulo <math>p</math> jest większa od <math>{\small\frac{\log p}{2 L \log 2}}</math> jest nieskończenie wiele.<br/>
 
&#9633;
 
&#9633;
 
{{\Spoiler}}
 
{{\Spoiler}}
Linia 1123: Linia 1063:
  
  
<span style="font-size: 110%; font-weight: bold;">Twierdzenie C50</span><br/>
+
<span style="font-size: 110%; font-weight: bold;">Uwaga K19</span><br/>
Jeżeli <math>n \geqslant 2</math> oraz <math>a^n - 1</math> jest liczbą pierwszą, to <math>a = 2</math> i <math>n</math> jest liczbą pierwszą.
+
W twierdzeniu K17 pokazaliśmy, że dla każdej liczby pierwszej <math>\mathbb{n}</math> istnieją takie liczby pierwsze <math>p</math>, że <math>\mathbb{n}</math> jest najmniejszą liczbą niekwadratową modulo <math>p</math>. Zatem zbiór <math>S_\mathbb{n}</math> liczb pierwszych takich, że dla każdej liczby <math>p \in S_\mathbb{n}</math> liczba <math>\mathbb{n}</math> jest najmniejszą liczbą niekwadratową modulo <math>p</math> jest zbiorem niepustym. Wynika stąd, że zbiór <math>S_\mathbb{n}</math> ma element najmniejszy i&nbsp;możemy te najmniejsze liczby pierwsze łatwo znaleźć – wystarczy w&nbsp;PARI/GP napisać proste polecenie
 +
 
 +
<span style="font-size: 90%; color:black;">'''forprime'''(n = 2, 50, '''forprime'''(p = 2, 10^10, '''if'''( A(p) == n, '''print'''(n, "  ", p); '''break'''() )))</span>
 +
 
 +
W tabeli przedstawiamy uzyskane rezultaty (zobacz też [https://oeis.org/A000229 A000229]).
 +
 
 +
::{| class="wikitable plainlinks"  style="font-size: 100%; text-align: center; margin-right: auto;"
 +
|-
 +
! <math>\boldsymbol{\mathbb{n}}</math>
 +
| <math>2</math> || <math>3</math> || <math>5</math> || <math>7</math> || <math>11</math> || <math>13</math> || <math>17</math> || <math>19</math> || <math>23</math> || <math>29</math> || <math>31</math> || <math>37</math> || <math>41</math> || <math>43</math> || <math>47</math>
 +
|-
 +
! <math>\boldsymbol{p}</math>
 +
| <math>3</math> || <math>7</math> || <math>23</math> || <math>71</math> || <math>311</math> || <math>479</math> || <math>1559</math> || <math>5711</math> || <math>10559</math> || <math>18191</math> || <math>31391</math> || <math>422231</math> || <math>701399</math> || <math>366791</math> || <math>3818929</math>
 +
|}
 +
 
 +
 
 +
 
 +
<span style="font-size: 110%; font-weight: bold;">Uwaga K20</span><br/>
 +
Z nierówności Pólyi-Winogradowa (zobacz K2) wynika natychmiast oszacowanie najmniejszej liczby niekwadratowej modulo <math>p</math>. Ponieważ najdłuższy ciąg kolejnych liczb kwadratowych modulo <math>p</math> nie może być dłuższy od <math>\left\lfloor \sqrt{p} \log p \right\rfloor</math>, to
 +
 
 +
::<math>\mathbb{n} (p) \leqslant \left\lfloor \sqrt{p} \log p \right\rfloor + 1 < \sqrt{p} \log p + 1</math>
 +
 
 +
Pokażemy, że powyższe oszacowanie można łatwo wzmocnić.
 +
 
 +
 
 +
 
 +
<span style="font-size: 110%; font-weight: bold;">Twierdzenie K21</span><br/>
 +
Niech <math>p</math> będzie liczbą pierwszą nieparzystą, a <math>\mathbb{n}</math> będzie najmniejszą liczbą niekwadratową modulo <math>p</math>. Prawdziwe jest oszacowanie
 +
 
 +
::<math>\mathbb{n} (p) < \sqrt{p} + {\small\frac{1}{2}}</math>
  
 
{{Spoiler|Style = font-style: italic; font-weight: bold; color: olive; text-decoration: underline;|Show=Dowód|Hide=Ukryj dowód}}
 
{{Spoiler|Style = font-style: italic; font-weight: bold; color: olive; text-decoration: underline;|Show=Dowód|Hide=Ukryj dowód}}
Z twierdzenia C49 wiemy, że <math>x - y \mid x^n - y^n</math>. W&nbsp;przypadku gdy <math>a > 2</math> mamy
+
Ponieważ <math>\mathbb{n} \nmid p</math>, to z&nbsp;oszacowania <math>x - 1 < \lfloor x \rfloor \leqslant x</math> wynika, że
  
::<math>a - 1 \mid a^n - 1</math>
+
::<math>{\small\frac{p}{\mathbb{n}}} - 1 < \left\lfloor {\small\frac{p}{\mathbb{n}}} \right\rfloor < {\small\frac{p}{\mathbb{n}}}</math>
  
Czyli musi być <math>a = 2</math>. Z&nbsp;tego samego twierdzenia wynika też, że jeżeli <math>n</math> jest liczbą złożoną <math>n = r s</math>, to
+
::<math>p < \mathbb{n} \left\lfloor {\small\frac{p}{\mathbb{n}}} \right\rfloor + \mathbb{n} < p + \mathbb{n}</math>
  
::<math>2^r - 1 \mid 2^{r s} - 1</math>
+
Niech <math>u = \left\lfloor {\small\frac{p}{\mathbb{n}}} \right\rfloor + 1</math>, mamy
  
bo <math>a^r - b^r \mid (a^r)^s - (b^r)^s</math>. Zatem <math>n</math> musi być liczbą pierwszą. Co kończy dowód.<br/>
+
::<math>0 < \mathbb{n} u - p < \mathbb{n}</math>
&#9633;
+
 
{{\Spoiler}}
+
Liczba <math>\mathbb{n} u - p</math> musi być liczbą kwadratową modulo <math>p</math>, zatem
  
 +
::<math>1 = \left( {\small\frac{\mathbb{n} u - p}{p}} \right)_{\small{\!\! L}} = \left( {\small\frac{\mathbb{n}}{p}} \right)_{\small{\!\! L}} \cdot \left( {\small\frac{u}{p}} \right)_{\small{\!\! L}} = - \left( {\small\frac{u}{p}} \right)_{\small{\!\! L}}</math>
  
 +
Ale z&nbsp;założenia <math>\mathbb{n}</math> jest najmniejszą liczbą taką, że <math>\left( {\small\frac{\mathbb{n}}{p}} \right)_{\small{\!\! L}} = - 1</math>. Wynika stąd, że musi być <math>\mathbb{n} \leqslant u</math> i&nbsp;łatwo znajdujemy, że
  
 +
::<math>\mathbb{n} \leqslant \left\lfloor {\small\frac{p}{\mathbb{n}}} \right\rfloor + 1 < {\small\frac{p}{\mathbb{n}}} + 1</math>
  
 +
::<math>\mathbb{n}^2 < p + \mathbb{n}</math>
  
 +
Ponieważ wypisane liczby są liczbami całkowitymi, to ostatnią nierówność możemy zapisać w&nbsp;postaci
  
== Ciągi arytmetyczne liczb pierwszych ==
+
::<math>\mathbb{n}^2 \leqslant p + \mathbb{n} - 1</math>
  
<span style="font-size: 110%; font-weight: bold;">Uwaga C51</span><br/>
+
Skąd otrzymujemy
Ciągi arytmetyczne liczb pierwszych<ref name="PAPWiki"/><ref name="PAPMathWorld"/> zbudowane z&nbsp;dwóch liczb pierwszych nie są interesujące, bo dowolne dwie liczby tworzą ciąg arytmetyczny. Dlatego będziemy się zajmowali ciągami arytmetycznymi liczb pierwszych o&nbsp;długości <math>n \geqslant 3</math>.
 
  
Ponieważ nie da się zbudować ciągu arytmetycznego liczb pierwszych o&nbsp;długości <math>n \geqslant 3</math>, w&nbsp;którym pierwszym wyrazem jest liczba <math>p_0 = 2</math>, to będą nas interesowały ciągi rozpoczynające się od liczby pierwszej <math>p_0 \geqslant 3</math>
+
::<math>\left( \mathbb{n} - {\small\frac{1}{2}} \right)^2 \leqslant p - {\small\frac{3}{4}}</math>
  
Jeżeli do liczby pierwszej nieparzystej dodamy dodatnią liczbę nieparzystą, to otrzymamy liczbę parzystą złożoną, zatem różnica ciągu arytmetycznego <math>d</math> musi być liczbą parzystą, aby zbudowanie jakiegokolwiek ciągu arytmetycznego liczb pierwszych o&nbsp;długości <math>n \geqslant 3</math> było możliwe.
+
::<math>\mathbb{n} \leqslant {\small\frac{1}{2}} + \sqrt{p - {\small\frac{3}{4}}} < {\small\frac{1}{2}} + \sqrt{p}</math>
  
Istnienie nieskończenie wiele ciągów arytmetycznych liczb pierwszych o&nbsp;długości <math>n = 3</math> pokazano już wiele lat temu<ref name="Corput"/>. Temat ciągów arytmetycznych liczb pierwszych zyskał na popularności<ref name="largestPAP"/> po udowodnieniu przez Bena Greena i&nbsp;Terence'a Tao twierdzenia o&nbsp;istnieniu dowolnie długich (ale skończonych) ciągów arytmetycznych liczb pierwszych<ref name="GeenTao"/>.
+
Co należało pokazać.<br/>
 +
&#9633;
 +
{{\Spoiler}}
  
  
  
<span style="font-size: 110%; font-weight: bold;">Twierdzenie C52* (Ben Green i&nbsp;Terence Tao, 2004)</span><br/>
+
<span style="font-size: 110%; font-weight: bold;">Twierdzenie K22*</span><br/>
Dla dowolnej liczby naturalnej <math>n \geqslant 2</math> istnieje nieskończenie wiele <math>n</math>-wyrazowych ciągów arytmetycznych liczb pierwszych.
+
Niech <math>p</math> będzie liczbą pierwszą nieparzystą, a <math>\mathbb{n}</math> będzie najmniejszą liczbą niekwadratową modulo <math>p</math>. Dla <math>p \geqslant 5</math> prawdziwe jest oszacowanie<ref name="Norton1"/><ref name="Trevino1"/><ref name="Trevino2"/>
  
 +
::<math>\mathbb{n} (p) \leqslant 1.1 \cdot p^{1 / 4} \log p</math>
  
  
  
<span style="font-size: 110%; font-weight: bold;">Przykład C53</span><br/>
+
<span style="font-size: 110%; font-weight: bold;">Uwaga K23</span><br/>
Tabela zawiera przykładowe ciągi arytmetyczne liczb pierwszych o&nbsp;długości <math>n = 3</math> i <math>n = 4</math>.
+
Liczby <math>\mathbb{n} = \mathbb{n} (p)</math> są zaskakująco małe. Średnia wartość <math>\mathbb{n} = \mathbb{n} (p)</math>, gdzie <math>p</math> są nieparzystymi liczbami pierwszymi, jest równa<ref name="Erdos1"/>
  
{{Spoiler|Style = font-style: italic; font-weight: bold; color: olive; text-decoration: underline;|Show=Pokaż tabele|Hide=Ukryj tabele}}
+
::<math>\lim_{x \to \infty} {\small\frac{1}{\pi (x)}} \sum_{p \leqslant x} \mathbb{n} (p) = \sum_{k = 1}^{\infty} {\small\frac{p_k}{2^k}} = 3.674643966 \ldots</math>
W przypadku <math>n = 3</math> wyszukiwanie ciągów zostało przeprowadzone dla <math>d = 2 k</math>, gdzie <math>1 \leqslant k \leqslant 100</math> i (przy ustalonym <math>d</math>) dla kolejnych liczb pierwszych <math>p_0 \leqslant 10^8</math>.
 
  
W przypadku <math>n = 4</math> wyszukiwanie ciągów zostało przeprowadzone dla <math>d = 6 k</math>, gdzie <math>1 \leqslant k \leqslant 100</math> i (przy ustalonym <math>d</math>) dla kolejnych liczb pierwszych <math>p_0 \leqslant 10^8</math>.
 
  
Jeżeli w&nbsp;tabeli jest wypisanych sześć wartości <math>p_0</math>, to oznacza to, że zostało znalezionych co najmniej sześć wartości <math>p_0</math>.
 
  
{| class="wikitable plainlinks"  style="display: inline-table; margin-left: 5px; margin-right: 50px; font-size: 80%; text-align: right;"
+
<span style="font-size: 110%; font-weight: bold;">Uwaga K24</span><br/>
|- style="background: #98fb98; text-align: center;"
+
Możemy też badać najmniejsze '''nieparzyste''' liczby niekwadratowe modulo <math>p</math>. Pokażemy, że są one również liczbami pierwszymi. W tabeli przedstawiliśmy najmniejsze '''nieparzyste''' liczby niekwadratowe modulo <math>p</math>.
| colspan=7 | <math>\mathbf{n = 3}</math>
+
 
|- style="text-align: center;"
+
::{| class="wikitable plainlinks"  style="font-size: 100%; text-align: center; margin-right: auto;"
| style="background: #ffd890;" | <math>\mathbf{d}</math>
 
| colspan=6 | <math>\mathbf{p_0}</math>
 
 
|-
 
|-
 +
! <math>\boldsymbol{m}</math>
 +
| <math>5</math> || <math>7</math> || <math>9</math> || <math>11</math> || <math>13</math> || <math>15</math> || <math>17</math> || <math>19</math> || <math>21</math> || <math>23</math> || <math>25</math> || <math>27</math> || <math>29</math> || <math>31</math> || <math>33</math> || <math>35</math> || <math>37</math> || <math>39</math> || <math>41</math> || <math>43</math> || <math>45</math> || <math>47</math> || <math>49</math> || <math>51</math>
 
|-
 
|-
| style="background:#ffd890;"|<math>\mathbf{ 2}</math>||<math> 3</math>||||||||||
+
! <math>\boldsymbol{\mathbb{n}_1( p )}</math>  
|-
+
| <math>3</math> || <math>3</math> || <math>-</math> || <math>7</math> || <math>5</math> || <math>-</math> || <math>3</math> || <math>3</math> || <math>-</math> || <math>5</math> || <math>-</math> || <math>-</math> || <math>3</math> || <math>3</math> || <math>-</math> || <math>-</math> || <math>5</math> || <math>-</math> || <math>3</math> || <math>3</math> || <math>-</math> || <math>5</math> || <math>-</math> || <math>-</math>
| style="background:#ffd890;"|<math>\mathbf{ 4}</math>||<math> 3</math>||||||||||
+
|}
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 6}</math>||<math> 5</math>||<math> 7</math>||<math> 11</math>||<math> 17</math>||<math> 31</math>||<math> 41</math>
+
 
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 8}</math>||<math> 3</math>||||||||||
+
<span style="font-size: 110%; font-weight: bold;">Twierdzenie K25</span><br/>
|-
+
Dla każdej liczby pierwszej <math>p \geqslant 5</math> najmniejsza '''nieparzysta''' liczba niekwadratowa modulo <math>p</math> jest liczbą pierwszą mniejszą od <math>p</math>.
| style="background:#ffd890;"|<math>\mathbf{ 10}</math>||<math> 3</math>||||||||||
+
 
|-
+
{{Spoiler|Style = font-style: italic; font-weight: bold; color: olive; text-decoration: underline;|Show=Dowód|Hide=Ukryj dowód}}
| style="background:#ffd890;"|<math>\mathbf{ 12}</math>||<math> 5</math>||<math> 7</math>||<math> 17</math>||<math> 19</math>||<math> 29</math>||<math> 47</math>
+
Niech <math>S \subset \{ 1, 2, \ldots, p - 1 \}</math> będzie zbiorem wszystkich '''nieparzystych''' liczb niekwadratowych modulo <math>p</math>. Z&nbsp;twierdzenia J29 wiemy, że jeżeli <math>p</math> jest liczbą pierwszą nieparzystą, to w&nbsp;zbiorze <math>\{ 1, 2, \ldots, p - 1 \}</math> jest dokładnie <math>{\small\frac{p - 1}{2}}</math> liczb kwadratowych modulo <math>p</math> i&nbsp;tyle samo liczb niekwadratowych modulo <math>p</math>. W&nbsp;zbiorze <math>\{ 1, 2, \ldots, p - 1 \}</math> mamy też dokładnie <math>{\small\frac{p - 1}{2}}</math> liczb parzystych i&nbsp;tyle samo liczb nieparzystych.
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 14}</math>||<math> 3</math>||||||||||
+
Wszystkie liczby parzyste nie mogą być liczbami niekwadratowymi modulo <math>p</math>, bo <math>4 = 2^2 < 5 \leqslant p</math> jest parzystą liczbą kwadratową modulo <math>p</math>, czyli wśród liczb nieparzystych musi istnieć przynajmniej jedna liczba niekwadratowa modulo <math>p</math>. Wynika stąd, że zbiór <math>S</math> nie jest zbiorem pustym, zatem ma element najmniejszy. Pokażemy, że najmniejszy element zbioru <math>S</math> jest liczbą pierwszą.
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 18}</math>||<math> 5</math>||<math> 11</math>||<math> 23</math>||<math> 43</math>||<math> 53</math>||<math> 61</math>
+
Niech <math>3 \leqslant \mathbb{n}_\boldsymbol{1} \leqslant p - 2</math> będzie najmniejszą '''nieparzystą''' liczbą niekwadratową modulo <math>p</math>. Wynika stąd, że każda liczba <math>a < \mathbb{n}_\boldsymbol{1}</math> musi być liczbą parzystą lub liczbą kwadratową modulo <math>p</math>. Przypuśćmy, że <math>\mathbb{n}_\boldsymbol{1}</math> jest liczbą złożoną, czyli <math>\mathbb{n}_\boldsymbol{1} = a b</math>, gdzie <math>1 < a, b < \mathbb{n}_\boldsymbol{1}</math>. Zauważmy, że żadna z&nbsp;liczb <math>a, b</math> nie może być liczbą parzystą, bo wtedy liczba <math>\mathbb{n}_\boldsymbol{1}</math> również byłaby liczbą parzystą wbrew określeniu liczby <math>\mathbb{n}_\boldsymbol{1}</math>. Zatem obie liczby <math>a, b</math> muszą być nieparzystymi liczbami kwadratowymi, co jest niemożliwe, bo
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 20}</math>||<math> 3</math>||||||||||
+
::<math>- 1 = \left( {\small\frac{\mathbb{n}_\boldsymbol{1}}{p}} \right)_{\small{\!\! J}} = \left( {\small\frac{a b}{p}} \right)_{\small{\!\! J}} = \left( {\small\frac{a}{p}} \right)_{\small{\!\! J}} \cdot \left( {\small\frac{b}{p}} \right)_{\small{\!\! J}}</math>
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 24}</math>||<math> 5</math>||<math> 13</math>||<math> 19</math>||<math> 23</math>||<math> 59</math>||<math> 79</math>
+
i jeden z&nbsp;czynników po prawej stronie musi być ujemny. Co oznacza, że jedna z&nbsp;liczb <math>a, b</math> jest nieparzystą liczbą niekwadratową modulo <math>p</math> mniejszą od <math>\mathbb{n}_\boldsymbol{1}</math> wbrew określeniu liczby <math>\mathbb{n}_\boldsymbol{1}</math>. Uzyskana sprzeczność pokazuje, że liczba <math>\mathbb{n}_\boldsymbol{1}</math> jest liczbą pierwszą. Co kończy dowód.<br/>
|-
+
&#9633;
| style="background:#ffd890;"|<math>\mathbf{ 28}</math>||<math> 3</math>||||||||||
+
{{\Spoiler}}
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 30}</math>||<math> 7</math>||<math> 11</math>||<math> 13</math>||<math> 23</math>||<math> 29</math>||<math> 37</math>
+
 
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 34}</math>||<math> 3</math>||||||||||
+
 
 +
 
 +
{| style="border-spacing: 5px; border: 2px solid black; background: transparent;"
 +
| &nbsp;'''B.''' Najmniejsze dodatnie liczby niekwadratowe modulo <math>m</math>
 +
|}
 +
 
 +
<span style="font-size: 110%; font-weight: bold;">Uwaga K26</span><br/>
 +
Najmniejsze liczby niekwadratowe modulo <math>m</math> są naturalnym uogólnieniem najmniejszych liczb niekwadratowych modulo <math>p .</math> W&nbsp;jednym i&nbsp;drugim przypadku liczba <math>\mathbb{n}</math> jest najmniejszą liczbą niekwadratową w&nbsp;zbiorze wszystkich liczb niekwadratowych dodatnich nie większych od <math>p</math> lub <math>m .</math> Dlatego będziemy je oznaczali również jako <math>\mathbb{n}(m) .</math>
 +
 
 +
 
 +
 
 +
<span style="font-size: 110%; font-weight: bold;">Definicja K27</span><br/>
 +
Niech <math>m \in \mathbb{Z} \,</math> i <math>\, m \geqslant 3 .</math> Powiemy, że <math>\mathbb{n} (m)</math> jest najmniejszą liczbą niekwadratową modulo <math>m</math>, gdy <math>\mathbb{n}</math> jest najmniejszą liczbą dodatnią względnie pierwszą z <math>m</math> taką, że kongruencja
 +
 
 +
::<math>x^2 \equiv \mathbb{n} \pmod{m}</math>
 +
 
 +
nie ma rozwiązania.
 +
 
 +
 
 +
 
 +
<span style="font-size: 110%; font-weight: bold;">Przykład K28</span><br/>
 +
W tabeli przedstawiliśmy najmniejsze liczby niekwadratowe modulo <math>p</math> i&nbsp;najmniejsze liczby niekwadratowe modulo <math>m .</math>
 +
 
 +
::{| class="wikitable plainlinks"  style="font-size: 100%; text-align: center; margin-right: auto;"
 +
! <math>\boldsymbol{m}</math>
 +
| <math>3</math> || <math>5</math> || <math>7</math> || <math>9</math> || <math>11</math> || <math>13</math> || <math>15</math> || <math>17</math> || <math>19</math> || <math>21</math> || <math>23</math> || <math>25</math> || <math>27</math> || <math>29</math> || <math>31</math> || <math>33</math> || <math>35</math> || <math>37</math> || <math>39</math> || <math>41</math> || <math>43</math> || <math>45</math> || <math>47</math> || <math>49</math> || <math>51</math>
 
|-
 
|-
| style="background:#ffd890;"|<math>\mathbf{ 36}</math>||<math> 7</math>||<math> 11</math>||<math> 17</math>||<math> 31</math>||<math> 37</math>||<math> 67</math>
+
! <math>\boldsymbol{\mathbb{n}( p )}</math>
 +
| <math>2</math> || <math>2</math> || <math>3</math> || <math>-</math> || <math>2</math> || <math>2</math> || <math>-</math> || <math>3</math> || <math>2</math> || <math>-</math> || <math>5</math> || <math>-</math> || <math>-</math> || <math>2</math> || <math>3</math> || <math>-</math> || <math>-</math> || <math>2</math> || <math>-</math> || <math>3</math> || <math>2</math> || <math>-</math> || <math>5</math> || <math>-</math> || <math>-</math>
 
|-
 
|-
| style="background:#ffd890;"|<math>\mathbf{ 38}</math>||<math> 3</math>||||||||||
+
! <math>\boldsymbol{\mathbb{n}( m )}</math>
 +
| <math>2</math> || <math>2</math> || <math>3</math> || <math>2</math> || <math>2</math> || <math>2</math> || <math>2</math> || <math>3</math> || <math>2</math> || <math>2</math> || <math>5</math> || <math>2</math> || <math>2</math> || <math>2</math> || <math>3</math> || <math>2</math> || <math>2</math> || <math>2</math> || <math>2</math> || <math>3</math> || <math>2</math> || <math>2</math> || <math>5</math> || <math>3</math> || <math>2</math>
 +
|}
 +
 
 +
::{| class="wikitable plainlinks"  style="font-size: 100%; text-align: center; margin-right: auto;"
 
|-
 
|-
| style="background:#ffd890;"|<math>\mathbf{ 40}</math>||<math> 3</math>||||||||||
+
! <math>\boldsymbol{m}</math>
 +
| <math>4</math> || <math>6</math> || <math>8</math> || <math>10</math> || <math>12</math> || <math>14</math> || <math>16</math> || <math>18</math> || <math>20</math> || <math>22</math> || <math>24</math> || <math>26</math> || <math>28</math> || <math>30</math> || <math>32</math> || <math>34</math> || <math>36</math> || <math>38</math> || <math>40</math> || <math>42</math> || <math>44</math> || <math>46</math> || <math>48</math> || <math>50</math> || <math>52</math>
 
|-
 
|-
| style="background:#ffd890;"|<math>\mathbf{ 42}</math>||<math> 5</math>||<math> 17</math>||<math> 19</math>||<math> 29</math>||<math> 47</math>||<math> 67</math>
+
! <math>\boldsymbol{\mathbb{n}( m )}</math>  
|-
+
| <math>3</math> || <math>5</math> || <math>3</math> || <math>3</math> || <math>5</math> || <math>3</math> || <math>3</math> || <math>5</math> || <math>3</math> || <math>7</math> || <math>5</math> || <math>5</math> || <math>3</math> || <math>7</math> || <math>3</math> || <math>3</math> || <math>5</math> || <math>3</math> || <math>3</math> || <math>5</math> || <math>3</math> || <math>5</math> || <math>5</math> || <math>3</math> || <math>3</math>
| style="background:#ffd890;"|<math>\mathbf{ 48}</math>||<math> 5</math>||<math> 11</math>||<math> 13</math>||<math> 31</math>||<math> 41</math>||<math> 53</math>
+
|}
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 50}</math>||<math> 3</math>||||||||||
+
 
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 54}</math>||<math> 5</math>||<math> 19</math>||<math> 29</math>||<math> 43</math>||<math> 59</math>||<math> 73</math>
+
<span style="font-size: 110%; font-weight: bold;">Uwaga K29</span><br/>
|-
+
Do wyszukiwania liczb <math>\mathbb{n} (m)</math> Czytelnik może wykorzystać prostą funkcję napisaną w&nbsp;PARI/GP
| style="background:#ffd890;"|<math>\mathbf{ 60}</math>||<math> 7</math>||<math> 11</math>||<math> 19</math>||<math> 29</math>||<math> 37</math>||<math> 43</math>
+
 
|-
+
<span style="font-size: 90%; color:black;">B(m) =
| style="background:#ffd890;"|<math>\mathbf{ 64}</math>||<math> 3</math>||||||||||
+
{
|-
+
'''local'''(p, res);
| style="background:#ffd890;"|<math>\mathbf{ 66}</math>||<math> 5</math>||<math> 7</math>||<math> 17</math>||<math> 31</math>||<math> 41</math>||<math> 47</math>
+
p = 1;
|-
+
'''while'''( p < m,
| style="background:#ffd890;"|<math>\mathbf{ 68}</math>||<math> 3</math>||||||||||
+
        p = '''nextprime'''(p + 1);
|-
+
        '''if'''( m%p == 0, '''next'''() );
| style="background:#ffd890;"|<math>\mathbf{ 72}</math>||<math> 7</math>||<math> 29</math>||<math> 37</math>||<math> 67</math>||<math> 79</math>||<math> 107</math>
+
        res = -1;
|-
+
        '''for'''( k = 2, '''floor'''(m/2), '''if'''( k^2%m == p, res = 1; '''break'''() ) );
| style="background:#ffd890;"|<math>\mathbf{ 78}</math>||<math> 11</math>||<math> 23</math>||<math> 71</math>||<math> 73</math>||<math> 101</math>||<math> 113</math>
+
        '''if'''( res == -1, '''return'''(p) );
|-
+
      );
| style="background:#ffd890;"|<math>\mathbf{ 80}</math>||<math> 3</math>||||||||||
+
}</span>
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 84}</math>||<math> 5</math>||<math> 13</math>||<math> 23</math>||<math> 29</math>||<math> 43</math>||<math> 73</math>
+
Obliczenia można wielokrotnie przyspieszyć, modyfikując kod funkcji tak, aby uwzględniał pokazane niżej właściwości oraz parzystość liczby <math>m .</math> Tutaj przedstawiamy tylko przykład, który wykorzystuje część tych możliwości.
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 90}</math>||<math> 11</math>||<math> 13</math>||<math> 17</math>||<math> 19</math>||<math> 47</math>||<math> 59</math>
+
{{Spoiler|Style = font-style: italic; font-weight: bold; color: olive; text-decoration: underline;|Show=Pokaż kod|Hide=Ukryj kod}}
|-
+
<span style="font-size: 90%; color:black;">B(m) =
| style="background:#ffd890;"|<math>\mathbf{ 94}</math>||<math> 3</math>||||||||||
+
{
|-
+
'''local'''(p, res, t);
| style="background:#ffd890;"|<math>\mathbf{ 96}</math>||<math> 5</math>||<math> 7</math>||<math> 31</math>||<math> 41</math>||<math> 71</math>||<math> 101</math>
+
t = m%8;
|-
+
'''if'''( t == 3 || t == 5, '''return'''(2) );
| style="background:#ffd890;"|<math>\mathbf{ 98}</math>||<math> 3</math>||||||||||
+
t = m%12;
|-
+
'''if'''( t == 4 || t == 8, '''return'''(3) );
| style="background:#ffd890;"|<math>\mathbf{ 102}</math>||<math> 7</math>||<math> 29</math>||<math> 37</math>||<math> 47</math>||<math> 79</math>||<math> 89</math>
+
t = m%24;
|-
+
'''if'''( t == 9 || t == 15, '''return'''(2) );
| style="background:#ffd890;"|<math>\mathbf{ 104}</math>||<math> 3</math>||||||||||
+
'''if'''( t == 10 || t == 14, '''return'''(3) );
|-
+
t = m%30;
| style="background:#ffd890;"|<math>\mathbf{ 108}</math>||<math> 23</math>||<math> 41</math>||<math> 131</math>||<math> 163</math>||<math> 173</math>||<math> 223</math>
+
'''if'''( t == 6 || t == 12 || t == 18 || t == 24, '''return'''(5) );
|-
+
p = 1;
| style="background:#ffd890;"|<math>\mathbf{ 110}</math>||<math> 3</math>||||||||||
+
'''while'''( p < m,
|-
+
        p = '''nextprime'''(p + 1);
| style="background:#ffd890;"|<math>\mathbf{ 114}</math>||<math> 13</math>||<math> 23</math>||<math> 43</math>||<math> 53</math>||<math> 79</math>||<math> 83</math>
+
        '''if'''( m%p == 0, '''next'''() );
|-
+
        res = -1;
| style="background:#ffd890;"|<math>\mathbf{ 120}</math>||<math> 11</math>||<math> 17</math>||<math> 29</math>||<math> 31</math>||<math> 37</math>||<math> 43</math>
+
        '''for'''( k = 2, '''floor'''(m/2), '''if'''( k^2%m == p, res = 1; '''break'''() ) );
|-
+
        '''if'''( res == -1, '''return'''(p) );
| style="background:#ffd890;"|<math>\mathbf{ 124}</math>||<math> 3</math>||||||||||
+
      );
|-
+
}</span>
| style="background:#ffd890;"|<math>\mathbf{ 126}</math>||<math> 5</math>||<math> 11</math>||<math> 31</math>||<math> 41</math>||<math> 97</math>||<math> 101</math>
+
{{\Spoiler}}
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 132}</math>||<math> 5</math>||<math> 7</math>||<math> 17</math>||<math> 19</math>||<math> 47</math>||<math> 67</math>
+
 
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 134}</math>||<math> 3</math>||||||||||
+
<span style="font-size: 110%; font-weight: bold;">Twierdzenie K30</span><br/>
|-
+
Niech <math>m \in \mathbb{Z} \,</math> i <math>\, m \geqslant 3 .</math> Jeżeli <math>\mathbb{n}</math> jest najmniejszą liczbą niekwadratową modulo <math>m</math>, to <math>\mathbb{n}</math> jest liczbą pierwszą.
| style="background:#ffd890;"|<math>\mathbf{ 138}</math>||<math> 41</math>||<math> 61</math>||<math> 73</math>||<math> 103</math>||<math> 113</math>||<math> 173</math>
+
 
|-
+
{{Spoiler|Style = font-style: italic; font-weight: bold; color: olive; text-decoration: underline;|Show=Dowód|Hide=Ukryj dowód}}
| style="background:#ffd890;"|<math>\mathbf{ 144}</math>||<math> 5</math>||<math> 19</math>||<math> 23</math>||<math> 29</math>||<math> 79</math>||<math> 113</math>
+
Przypuśćmy, że <math>\mathbb{n} = a b</math> jest liczbą złożoną, gdzie <math>1 < a, b < \mathbb{n} .</math> Z&nbsp;założenia <math>\mathbb{n}</math> jest najmniejszą liczbą niekwadratową modulo <math>m</math>, zatem liczby <math>a, b</math> są liczbami kwadratowymi modulo <math>m .</math> Z&nbsp;definicji liczb kwadratowych muszą istnieć takie liczby <math>r, s</math>, że
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 150}</math>||<math> 7</math>||<math> 13</math>||<math> 17</math>||<math> 31</math>||<math> 47</math>||<math> 73</math>
+
::<math>r^2 \equiv a \pmod{m}</math>
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 154}</math>||<math> 3</math>||||||||||
+
::<math>s^2 \equiv b \pmod{m}</math>
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 156}</math>||<math> 37</math>||<math> 41</math>||<math> 67</math>||<math> 71</math>||<math> 107</math>||<math> 127</math>
+
Skąd wynika, że
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 162}</math>||<math> 29</math>||<math> 107</math>||<math> 109</math>||<math> 197</math>||<math> 239</math>||<math> 269</math>
+
::<math>\mathbb{n} = a b \equiv (r s)^2 \pmod{m}</math>
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 164}</math>||<math> 3</math>||||||||||
+
Wbrew założeniu, że <math>\mathbb{n}</math> jest liczbą niekwadratową modulo <math>m .</math><br/>
|-
+
&#9633;
| style="background:#ffd890;"|<math>\mathbf{ 168}</math>||<math> 11</math>||<math> 13</math>||<math> 23</math>||<math> 31</math>||<math> 43</math>||<math> 61</math>
+
{{\Spoiler}}
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 174}</math>||<math> 5</math>||<math> 19</math>||<math> 53</math>||<math> 83</math>||<math> 109</math>||<math> 139</math>
+
 
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 178}</math>||<math> 3</math>||||||||||
+
<span style="font-size: 110%; font-weight: bold;">Zadanie K31</span><br/>
|-
+
Niech <math>m \in \mathbb{Z}_+ \,</math> i <math>\, \mathbb{n} (m)</math> będzie najmniejszą liczbą niekwadratową modulo <math>m .</math> Pokazać, że jeżeli <math>m = 8 k \pm 3</math>, to <math>\mathbb{n} (m) = 2 .</math>
| style="background:#ffd890;"|<math>\mathbf{ 180}</math>||<math> 13</math>||<math> 19</math>||<math> 59</math>||<math> 61</math>||<math> 71</math>||<math> 83</math>
+
 
|-
+
{{Spoiler|Style = font-style: italic; font-weight: bold; color: olive; text-decoration: underline;|Show=Rozwiązanie|Hide=Ukryj rozwiązanie}}
| style="background:#ffd890;"|<math>\mathbf{ 186}</math>||<math> 7</math>||<math> 11</math>||<math> 37</math>||<math> 47</math>||<math> 71</math>||<math> 107</math>
+
Z twierdzenia J41 wiemy, że <math>\left( {\small\frac{2}{m}} \right)_{\small{\!\! J}} = - 1</math>, gdy <math>m = 8 k \pm 3 .</math> Wynika stąd, że <math>2</math> jest liczbą niekwadratową modulo <math>m</math>, a&nbsp;jeśli tak, to musi być najmniejszą liczbą niekwadratową modulo <math>m .</math> Co należało pokazać.<br/>
|-
+
&#9633;
| style="background:#ffd890;"|<math>\mathbf{ 188}</math>||<math> 3</math>||||||||||
+
{{\Spoiler}}
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 190}</math>||<math> 3</math>||||||||||
+
 
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 192}</math>||<math> 5</math>||<math> 37</math>||<math> 47</math>||<math> 59</math>||<math> 79</math>||<math> 139</math>
+
<span style="font-size: 110%; font-weight: bold;">Zadanie K32</span><br/>
|-
+
Niech <math>m \in \mathbb{Z}_+ \,</math> i <math>\, \mathbb{n} (m)</math> będzie najmniejszą liczbą niekwadratową modulo <math>m .</math> Pokazać, że jeżeli spełniony jest jeden z&nbsp;warunków
| style="background:#ffd890;"|<math>\mathbf{ 198}</math>||<math> 13</math>||<math> 43</math>||<math> 53</math>||<math> 71</math>||<math> 83</math>||<math> 113</math>
+
 
|}
+
:*&nbsp;&nbsp;<math>4 \mid m \;</math> i <math>\; \gcd (3, m) = 1</math>
{| class="wikitable plainlinks"  style="display: inline-table; margin-left: 5px; margin-right: 50px; font-size: 80%; text-align: right;"
+
:*&nbsp;&nbsp;<math>m = 12 k \pm 4</math>
|- style="background: #98fb98; text-align: center;"
+
 
| colspan=7 | <math>\mathbf{n = 4}</math>
+
to <math>\mathbb{n} (m) = 3 .</math>
|- style="text-align: center;"
+
 
| style="background: #ffd890;" | <math>\mathbf{d}</math>
+
{{Spoiler|Style = font-style: italic; font-weight: bold; color: olive; text-decoration: underline;|Show=Rozwiązanie|Hide=Ukryj rozwiązanie}}
| colspan=6 | <math>\mathbf{p_0}</math>
+
Zauważmy, że <math>2</math> nie może być najmniejszą liczbą niekwadratową modulo <math>m</math>, bo <math>2 \mid m .</math> Rozważmy kongruencję
|-
+
 
|-
+
::<math>x^2 \equiv 3 \pmod{m}</math>
| style="background:#ffd890;"|<math>\mathbf{ 6}</math>||<math> 5</math>||<math> 11</math>||<math> 41</math>||<math> 61</math>||<math> 251</math>||<math> 601</math>
+
 
|-
+
Z założenia <math>4 \mid m</math>, co nie wyklucza możliwości, że również <math>8 \mid m .</math> Ponieważ <math>4 \nmid (3 - 1)</math> i <math>8 \nmid (3 - 1)</math>, to z&nbsp;twierdzenia J55 wynika, że kongruencja <math>x^2 \equiv 3 \!\! \pmod{m}</math> nie ma rozwiązania. Jeśli tylko <math>3 \nmid m</math>, to <math>\mathbb{n} (m) = 3 .</math> W&nbsp;pierwszym punkcie jest to założone wprost, w&nbsp;drugim łatwo widzimy, że <math>3 \nmid (12 k \pm 4) .</math>
| style="background:#ffd890;"|<math>\mathbf{ 12}</math>||<math> 5</math>||<math> 7</math>||<math> 17</math>||<math> 47</math>||<math> 127</math>||<math> 227</math>
+
 
|-
+
Można też zauważyć, że żądanie, aby <math>\gcd (3, m) = 1</math>, prowadzi do dwóch układów kongruencji
| style="background:#ffd890;"|<math>\mathbf{ 18}</math>||<math> 5</math>||<math> 43</math>||<math> 53</math>||<math> 113</math>||<math> 313</math>||<math> 673</math>
+
 
|-
+
::<math>\begin{align}
| style="background:#ffd890;"|<math>\mathbf{ 24}</math>||<math> 59</math>||<math> 79</math>||<math> 349</math>||<math> 419</math>||<math> 499</math>||<math> 569</math>
+
m &\equiv 0 \pmod{4} \\
|-
+
m &\equiv 1 \pmod{3} \\
| style="background:#ffd890;"|<math>\mathbf{ 30}</math>||<math> 7</math>||<math> 11</math>||<math> 13</math>||<math> 23</math>||<math> 37</math>||<math> 41</math>
+
\end{align}</math>
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 36}</math>||<math> 31</math>||<math> 241</math>||<math> 281</math>||<math> 311</math>||<math> 751</math>||<math> 911</math>
+
oraz
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 42}</math>||<math> 5</math>||<math> 47</math>||<math> 67</math>||<math> 97</math>||<math> 107</math>||<math> 157</math>
+
::<math>\begin{align}
|-
+
m &\equiv 0 \pmod{4} \\
| style="background:#ffd890;"|<math>\mathbf{ 48}</math>||<math> 5</math>||<math> 13</math>||<math> 53</math>||<math> 83</math>||<math> 613</math>||<math> 643</math>
+
m &\equiv 2 \pmod{3} \\
|-
+
\end{align}</math>
| style="background:#ffd890;"|<math>\mathbf{ 54}</math>||<math> 5</math>||<math> 19</math>||<math> 29</math>||<math> 239</math>||<math> 379</math>||<math> 719</math>
+
 
|-
+
którym, na mocy chińskiego twierdzenia o&nbsp;resztach, odpowiadają dwie kongruencje równoważne
| style="background:#ffd890;"|<math>\mathbf{ 60}</math>||<math> 11</math>||<math> 19</math>||<math> 43</math>||<math> 47</math>||<math> 53</math>||<math> 71</math>
+
 
|-
+
::<math>m \equiv \pm 4 \pmod{12}</math>
| style="background:#ffd890;"|<math>\mathbf{ 66}</math>||<math> 31</math>||<math> 41</math>||<math> 241</math>||<math> 251</math>||<math> 521</math>||<math> 541</math>
+
 
|-
+
Co należało pokazać.<br/>
| style="background:#ffd890;"|<math>\mathbf{ 72}</math>||<math> 7</math>||<math> 67</math>||<math> 167</math>||<math> 347</math>||<math> 947</math>||<math> 1217</math>
+
&#9633;
|-
+
{{\Spoiler}}
| style="background:#ffd890;"|<math>\mathbf{ 78}</math>||<math> 23</math>||<math> 73</math>||<math> 113</math>||<math> 233</math>||<math> 353</math>||<math> 443</math>
+
 
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 84}</math>||<math> 5</math>||<math> 29</math>||<math> 149</math>||<math> 179</math>||<math> 379</math>||<math> 439</math>
+
 
|-
+
<span style="font-size: 110%; font-weight: bold;">Zadanie K33</span><br/>
| style="background:#ffd890;"|<math>\mathbf{ 90}</math>||<math> 11</math>||<math> 13</math>||<math> 47</math>||<math> 61</math>||<math> 83</math>||<math> 89</math>
+
Niech <math>m = 24 k \pm 10 .</math> Pokazać, że <math>\mathbb{n} (m) = 3 .</math>
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 96}</math>||<math> 5</math>||<math> 71</math>||<math> 101</math>||<math> 631</math>||<math> 761</math>||<math> 1471</math>
+
{{Spoiler|Style = font-style: italic; font-weight: bold; color: olive; text-decoration: underline;|Show=Rozwiązanie|Hide=Ukryj rozwiązanie}}
|-
+
Zapiszmy <math>m</math> w&nbsp;postaci <math>m = 2 m'</math>, gdzie <math>m' = 12 k \pm 5 .</math> Gdyby kongruencja
| style="background:#ffd890;"|<math>\mathbf{ 102}</math>||<math> 7</math>||<math> 47</math>||<math> 127</math>||<math> 257</math>||<math> 337</math>||<math> 557</math>
+
 
|-
+
::<math>x^2 \equiv 3 \pmod{2 m'}</math>
| style="background:#ffd890;"|<math>\mathbf{ 108}</math>||<math> 23</math>||<math> 163</math>||<math> 223</math>||<math> 293</math>||<math> 353</math>||<math> 643</math>
+
 
|-
+
miała rozwiązanie, to również kongruencja
| style="background:#ffd890;"|<math>\mathbf{ 114}</math>||<math> 79</math>||<math> 349</math>||<math> 569</math>||<math> 709</math>||<math> 1259</math>||<math> 2039</math>
+
 
|-
+
::<math>x^2 \equiv 3 \pmod{m'}</math>
| style="background:#ffd890;"|<math>\mathbf{ 120}</math>||<math> 29</math>||<math> 37</math>||<math> 71</math>||<math> 73</math>||<math> 107</math>||<math> 149</math>
+
 
|-
+
miałaby rozwiązanie, ale jest to niemożliwe, bo <math>\left( {\small\frac{3}{m'}} \right)_{\small{\!\! J}} = - 1</math> (zobacz J46), czyli <math>3</math> jest liczbą niekwadratową modulo <math>m' .</math> Ponieważ <math>2 \mid m</math>, to <math>2</math> nie może być najmniejszą liczbą niekwadratową modulo <math>m .</math> Wynika stąd, że <math>\mathbb{n} (m) = 3 .</math><br/>
| style="background:#ffd890;"|<math>\mathbf{ 126}</math>||<math> 5</math>||<math> 11</math>||<math> 31</math>||<math> 41</math>||<math> 101</math>||<math> 131</math>
+
&#9633;
|-
+
{{\Spoiler}}
| style="background:#ffd890;"|<math>\mathbf{ 132}</math>||<math> 5</math>||<math> 47</math>||<math> 67</math>||<math> 257</math>||<math> 277</math>||<math> 487</math>
+
 
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 138}</math>||<math> 73</math>||<math> 173</math>||<math> 383</math>||<math> 463</math>||<math> 563</math>||<math> 773</math>
+
 
|-
+
<span style="font-size: 110%; font-weight: bold;">Twierdzenie K34</span><br/>
| style="background:#ffd890;"|<math>\mathbf{ 144}</math>||<math> 29</math>||<math> 509</math>||<math> 599</math>||<math> 1019</math>||<math> 1579</math>||<math> 2609</math>
+
Niech <math>m \in \mathbb{Z}_+ \;</math> i <math>\; S_2 = \{ 3, 5, 11, 13, 19, 29, 37, 43, \ldots \}</math> będzie zbiorem liczb pierwszych <math>p</math> takich, że <math>\left( {\small\frac{2}{p}} \right)_{\small{\!\! J}} = - 1 .</math> Jeżeli <math>m</math> jest liczbą nieparzystą podzielną przez <math>p \in S_2</math>, to <math>\mathbb{n} (m) = 2 .</math>
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 150}</math>||<math> 7</math>||<math> 13</math>||<math> 17</math>||<math> 73</math>||<math> 157</math>||<math> 163</math>
+
{{Spoiler|Style = font-style: italic; font-weight: bold; color: olive; text-decoration: underline;|Show=Dowód|Hide=Ukryj dowód}}
|-
+
Z założenia <math>p \mid m \;</math> i <math>\; \left( {\small\frac{2}{p}} \right)_{\small{\!\! J}} = - 1 .</math> Zatem kongruencja
| style="background:#ffd890;"|<math>\mathbf{ 156}</math>||<math> 41</math>||<math> 151</math>||<math> 191</math>||<math> 461</math>||<math> 571</math>||<math> 641</math>
+
 
|-
+
::<math>x^2 \equiv 2 \pmod{m}</math>
| style="background:#ffd890;"|<math>\mathbf{ 162}</math>||<math> 107</math>||<math> 197</math>||<math> 337</math>||<math> 967</math>||<math> 1297</math>||<math> 1627</math>
+
 
|-
+
nie ma rozwiązania (zobacz J55). Ponieważ <math>2 \nmid m</math>, to <math>\mathbb{n} (m) = 2 .</math>
| style="background:#ffd890;"|<math>\mathbf{ 168}</math>||<math> 43</math>||<math> 73</math>||<math> 83</math>||<math> 103</math>||<math> 113</math>||<math> 373</math>
+
 
|-
+
Uwaga: zbiór <math>S_2</math> tworzą liczby pierwsze postaci <math>8 k \pm 3</math> (zobacz J41).<br/>
| style="background:#ffd890;"|<math>\mathbf{ 174}</math>||<math> 19</math>||<math> 109</math>||<math> 139</math>||<math> 509</math>||<math> 839</math>||<math> 929</math>
+
&#9633;
|-
+
{{\Spoiler}}
| style="background:#ffd890;"|<math>\mathbf{ 180}</math>||<math> 59</math>||<math> 61</math>||<math> 101</math>||<math> 103</math>||<math> 281</math>||<math> 283</math>
+
 
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 186}</math>||<math> 11</math>||<math> 151</math>||<math> 271</math>||<math> 281</math>||<math> 491</math>||<math> 691</math>
+
 
|-
+
<span style="font-size: 110%; font-weight: bold;">Twierdzenie K35</span><br/>
| style="background:#ffd890;"|<math>\mathbf{ 192}</math>||<math> 37</math>||<math> 157</math>||<math> 307</math>||<math> 647</math>||<math> 1087</math>||<math> 1427</math>
+
Niech <math>m \in \mathbb{Z}_+ \;</math> i <math>\; S_3 = \{ 5, 7, 17, 19, 29, 31, 41, 43, \ldots \}</math> będzie zbiorem liczb pierwszych <math>p</math> takich, że <math>\left( {\small\frac{3}{p}} \right)_{\small{\!\! J}} = - 1 .</math> Jeżeli <math>m</math> jest liczbą parzystą niepodzielną przez <math>3</math> i&nbsp;podzielną przez <math>p \in S_3</math>, to <math>\mathbb{n} (m) = 3 .</math>
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 198}</math>||<math> 13</math>||<math> 53</math>||<math> 83</math>||<math> 263</math>||<math> 373</math>||<math> 853</math>
+
{{Spoiler|Style = font-style: italic; font-weight: bold; color: olive; text-decoration: underline;|Show=Dowód|Hide=Ukryj dowód}}
|-
+
Z założenia <math>p \mid m \;</math> i <math>\; \left( {\small\frac{3}{p}} \right)_{\small{\!\! J}} = - 1 .</math> Zatem kongruencja
| style="background:#ffd890;"|<math>\mathbf{ 204}</math>||<math> 79</math>||<math> 149</math>||<math> 449</math>||<math> 479</math>||<math> 569</math>||<math> 919</math>
+
 
|-
+
::<math>x^2 \equiv 3 \pmod{m}</math>
| style="background:#ffd890;"|<math>\mathbf{ 210}</math>||<math> 13</math>||<math> 23</math>||<math> 29</math>||<math> 47</math>||<math> 71</math>||<math> 103</math>
+
 
|-
+
nie ma rozwiązania (zobacz J55). Ponieważ <math>2 \mid m</math> i <math>3 \nmid m</math>, to <math>\mathbb{n} (m) = 3 .</math>
| style="background:#ffd890;"|<math>\mathbf{ 216}</math>||<math> 11</math>||<math> 181</math>||<math> 761</math>||<math> 1021</math>||<math> 1061</math>||<math> 1231</math>
+
 
|-
+
Uwaga: zbiór <math>S_3</math> tworzą liczby pierwsze postaci <math>12 k \pm 5</math> (zobacz J46).<br/>
| style="background:#ffd890;"|<math>\mathbf{ 222}</math>||<math> 17</math>||<math> 157</math>||<math> 197</math>||<math> 547</math>||<math> 617</math>||<math> 787</math>
+
&#9633;
|-
+
{{\Spoiler}}
| style="background:#ffd890;"|<math>\mathbf{ 228}</math>||<math> 43</math>||<math> 263</math>||<math> 313</math>||<math> 593</math>||<math> 953</math>||<math> 1093</math>
+
 
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 234}</math>||<math> 359</math>||<math> 499</math>||<math> 619</math>||<math> 829</math>||<math> 1549</math>||<math> 2309</math>
+
 
 +
<span style="font-size: 110%; font-weight: bold;">Twierdzenie K36</span><br/>
 +
Jeżeli <math>m</math> jest liczbą dodatnią podzielną przez <math>6</math> i&nbsp;niepodzielną przez <math>5</math>, to <math>\mathbb{n} (m) = 5 .</math>
 +
 
 +
{{Spoiler|Style = font-style: italic; font-weight: bold; color: olive; text-decoration: underline;|Show=Dowód|Hide=Ukryj dowód}}
 +
Z założenia <math>3 \mid m \;</math> i <math>\; \left( {\small\frac{5}{3}} \right)_{\small{\!\! J}} = \left( {\small\frac{2}{3}} \right)_{\small{\!\! J}} = - 1 .</math> Zatem kongruencja
 +
 
 +
::<math>x^2 \equiv 5 \pmod{m}</math>
 +
 
 +
nie ma rozwiązania (zobacz J55). Ponieważ <math>2 \mid m</math>, <math>3 \mid m</math> i <math>5 \nmid m</math>, to <math>\mathbb{n} (m) = 5 .</math><br/>
 +
&#9633;
 +
{{\Spoiler}}
 +
 
 +
 
 +
 
 +
<span style="font-size: 110%; font-weight: bold;">Twierdzenie K37</span><br/>
 +
Niech <math>m \in \mathbb{Z}_+</math> i <math>p \geqslant 5</math> będzie liczbą pierwszą. Jeżeli iloczyn wszystkich liczb pierwszych mniejszych od <math>p</math> dzieli <math>m</math> i <math>p \nmid m</math>, to <math>\mathbb{n} (m) = p</math>.
 +
 
 +
{{Spoiler|Style = font-style: italic; font-weight: bold; color: olive; text-decoration: underline;|Show=Dowód|Hide=Ukryj dowód}}
 +
Z twierdzenia K69 wiemy, że istnieje liczba pierwsza nieparzysta <math>q < p</math> taka, że <math>\left( {\small\frac{p}{q}} \right)_{\small{\!\! J}} = - 1 .</math> Z&nbsp;założenia <math>q \mid m</math>, zatem kongruencja
 +
 
 +
::<math>x^2 \equiv p \pmod{m}</math>
 +
 
 +
nie ma rozwiązania (zobacz J55). Ponieważ wszystkie liczby pierwsze mniejsze od <math>p</math> dzielą <math>m</math>, to <math>\mathbb{n} (m) = p</math>. Co należało pokazać.<br/>
 +
&#9633;
 +
{{\Spoiler}}
 +
 
 +
 
 +
 
 +
<span style="font-size: 110%; font-weight: bold;">Zadanie K38</span><br/>
 +
Pokazać, że podanym w&nbsp;pierwszej kolumnie postaciom liczby <math>m</math> odpowiadają wymienione w&nbsp;drugiej kolumnie wartości <math>\mathbb{n} (m) .</math>
 +
 
 +
::{| class="wikitable plainlinks"  style="font-size: 90%; text-align: left; margin-right: auto;"
 
|-
 
|-
| style="background:#ffd890;"|<math>\mathbf{ 240}</math>||<math> 23</math>||<math> 41</math>||<math> 67</math>||<math> 107</math>||<math> 139</math>||<math> 263</math>
+
! Postać liczby <math>\boldsymbol{m}</math> || <math>\boldsymbol{𝕟(m)}</math> || Uwagi
 
|-
 
|-
| style="background:#ffd890;"|<math>\mathbf{ 246}</math>||<math> 31</math>||<math> 71</math>||<math> 101</math>||<math> 331</math>||<math> 541</math>||<math> 661</math>
+
| <math>m=24k \pm 9</math> || style="text-align:center;" | <math>2</math> || rowspan="3" style="text-align:center;" | K34
 
|-
 
|-
| style="background:#ffd890;"|<math>\mathbf{ 252}</math>||<math> 5</math>||<math> 17</math>||<math> 97</math>||<math> 127</math>||<math> 197</math>||<math> 257</math>
+
| <math>m=120k \pm 25</math> || style="text-align:center;" | <math>2</math>
 
|-
 
|-
| style="background:#ffd890;"|<math>\mathbf{ 258}</math>||<math> 53</math>||<math> 313</math>||<math> 503</math>||<math> 1103</math>||<math> 1873</math>||<math> 3253</math>
+
| <math>m=120k \pm 55</math> || style="text-align:center;" | <math>2</math>
 
|-
 
|-
| style="background:#ffd890;"|<math>\mathbf{ 264}</math>||<math> 19</math>||<math> 29</math>||<math> 89</math>||<math> 199</math>||<math> 379</math>||<math> 409</math>
+
| <math>m=120k \pm 50</math> || style="text-align:center;" | <math>3</math> || style="text-align:center;" | K35
 
|-
 
|-
| style="background:#ffd890;"|<math>\mathbf{ 270}</math>||<math> 47</math>||<math> 67</math>||<math> 229</math>||<math> 491</math>||<math> 557</math>||<math> 613</math>
+
| <math>m=30k \pm 6</math> || style="text-align:center;" | <math>5</math> || rowspan="2" style="text-align:center;" | K36,<math>\;</math>K37
 
|-
 
|-
| style="background:#ffd890;"|<math>\mathbf{ 276}</math>||<math> 181</math>||<math> 191</math>||<math> 401</math>||<math> 601</math>||<math> 661</math>||<math> 1171</math>
+
| <math>m=30k \pm 12</math> || style="text-align:center;" | <math>5</math>
 
|-
 
|-
| style="background:#ffd890;"|<math>\mathbf{ 282}</math>||<math> 137</math>||<math> 317</math>||<math> 457</math>||<math> 1297</math>||<math> 1747</math>||<math> 1787</math>
+
| <math>m=210k \pm 30</math> || style="text-align:center;" | <math>7</math> || rowspan="3" style="text-align:center;" | K37
 
|-
 
|-
| style="background:#ffd890;"|<math>\mathbf{ 288}</math>||<math> 23</math>||<math> 43</math>||<math> 233</math>||<math> 353</math>||<math> 463</math>||<math> 743</math>
+
| <math>m=210k \pm 60</math> || style="text-align:center;" | <math>7</math>  
 
|-
 
|-
| style="background:#ffd890;"|<math>\mathbf{ 294}</math>||<math> 59</math>||<math> 89</math>||<math> 139</math>||<math> 269</math>||<math> 349</math>||<math> 719</math>
+
| <math>m=210k \pm 90</math> || style="text-align:center;" | <math>7</math>  
|-
+
|}
| style="background:#ffd890;"|<math>\mathbf{ 300}</math>||<math> 7</math>||<math> 47</math>||<math> 53</math>||<math> 83</math>||<math> 109</math>||<math> 139</math>
+
 
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 306}</math>||<math> 491</math>||<math> 691</math>||<math> 971</math>||<math> 1321</math>||<math> 1471</math>||<math> 2341</math>
+
 
|-
+
<span style="font-size: 110%; font-weight: bold;">Twierdzenie K39</span><br/>
| style="background:#ffd890;"|<math>\mathbf{ 312}</math>||<math> 127</math>||<math> 257</math>||<math> 347</math>||<math> 547</math>||<math> 607</math>||<math> 757</math>
+
Niech <math>m</math> będzie liczbą nieparzystą, a <math>\mathbb{n} (m)</math> będzie najmniejszą liczbą niekwadratową modulo <math>m .</math> Mamy
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 318}</math>||<math> 283</math>||<math> 373</math>||<math> 653</math>||<math> 1063</math>||<math> 1493</math>||<math> 1823</math>
+
::<math>\begin{array}{lll}
|-
+
  \mathbb{n} (2 m) >\mathbb{n} (m) &  & \text{gdy} \;\; \mathbb{n} (m) = 2 \\
| style="background:#ffd890;"|<math>\mathbf{ 324}</math>||<math> 179</math>||<math> 349</math>||<math> 839</math>||<math> 2389</math>||<math> 2699</math>||<math> 2879</math>
+
  \mathbb{n} (2 m) =\mathbb{n} (m) &  & \text{gdy} \;\; \mathbb{n} (m) > 2 \\
|-
+
\end{array}</math>
| style="background:#ffd890;"|<math>\mathbf{ 330}</math>||<math> 23</math>||<math> 59</math>||<math> 79</math>||<math> 101</math>||<math> 113</math>||<math> 127</math>
+
 
|-
+
{{Spoiler|Style = font-style: italic; font-weight: bold; color: olive; text-decoration: underline;|Show=Dowód|Hide=Ukryj dowód}}
| style="background:#ffd890;"|<math>\mathbf{ 336}</math>||<math> 11</math>||<math> 61</math>||<math> 281</math>||<math> 311</math>||<math> 421</math>||<math> 491</math>
+
 
|-
+
'''Punkt 1.'''
| style="background:#ffd890;"|<math>\mathbf{ 342}</math>||<math> 7</math>||<math> 67</math>||<math> 137</math>||<math> 257</math>||<math> 467</math>||<math> 887</math>
+
 
|-
+
W przypadku, gdy <math>\mathbb{n} (m) = 2</math>, mamy <math>\mathbb{n} (2 m) > 2 = \mathbb{n} (m)</math>, bo <math>\mathbb{n} (2 m)</math> musi być liczbą względnie pierwszą z <math>2 m .</math>
| style="background:#ffd890;"|<math>\mathbf{ 348}</math>||<math> 5</math>||<math> 73</math>||<math> 563</math>||<math> 593</math>||<math> 743</math>||<math> 1373</math>
+
 
|-
+
'''Punkt 2.'''
| style="background:#ffd890;"|<math>\mathbf{ 354}</math>||<math> 89</math>||<math> 239</math>||<math> 389</math>||<math> 509</math>||<math> 659</math>||<math> 739</math>
+
 
|-
+
Z definicji najmniejszej liczby niekwadratowej modulo <math>m</math> wiemy, że kongruencja
| style="background:#ffd890;"|<math>\mathbf{ 360}</math>||<math> 7</math>||<math> 13</math>||<math> 23</math>||<math> 37</math>||<math> 101</math>||<math> 107</math>
+
 
|-
+
::<math>x^2 \equiv \mathbb{n} (m) \pmod{m}</math>
| style="background:#ffd890;"|<math>\mathbf{ 366}</math>||<math> 461</math>||<math> 571</math>||<math> 1481</math>||<math> 1511</math>||<math> 1901</math>||<math> 2111</math>
+
 
|-
+
nie ma rozwiązania. Oznacza to, że istnieje liczba pierwsza nieparzysta <math>p</math> taka, że <math>p \mid m \;</math> i <math>\; \left( {\small\frac{\mathbb{n} (m)}{p}} \right)_{\small{\!\! J}} = - 1 .</math> Ponieważ <math>p \mid 2 m</math>, to wynika stąd natychmiast, że kongruencja
| style="background:#ffd890;"|<math>\mathbf{ 372}</math>||<math> 7</math>||<math> 547</math>||<math> 857</math>||<math> 877</math>||<math> 1087</math>||<math> 2887</math>
+
 
|-
+
::<math>x^2 \equiv \mathbb{n} (m) \pmod{2 m}</math>
| style="background:#ffd890;"|<math>\mathbf{ 378}</math>||<math> 53</math>||<math> 83</math>||<math> 163</math>||<math> 313</math>||<math> 503</math>||<math> 563</math>
+
 
|-
+
również nie ma rozwiązania (zobacz J55).
| style="background:#ffd890;"|<math>\mathbf{ 384}</math>||<math> 139</math>||<math> 229</math>||<math> 719</math>||<math> 1229</math>||<math> 1439</math>||<math> 1699</math>
+
 
|-
+
Zatem <math>\mathbb{n} (2 m) \leqslant \mathbb{n} (m) .</math> Niech <math>q</math> będzie liczbą pierwszą taką, że <math>2 < q <\mathbb{n} (m) .</math> Kongruencję
| style="background:#ffd890;"|<math>\mathbf{ 390}</math>||<math> 31</math>||<math> 43</math>||<math> 59</math>||<math> 131</math>||<math> 157</math>||<math> 197</math>
+
 
|-
+
::<math>x^2 \equiv q \pmod{2 m} \qquad \qquad (1)</math>
| style="background:#ffd890;"|<math>\mathbf{ 396}</math>||<math> 5</math>||<math> 61</math>||<math> 71</math>||<math> 431</math>||<math> 691</math>||<math> 701</math>
+
 
|-
+
możemy zapisać w&nbsp;postaci układu kongruencji równoważnych (zobacz J1)
| style="background:#ffd890;"|<math>\mathbf{ 402}</math>||<math> 7</math>||<math> 17</math>||<math> 167</math>||<math> 727</math>||<math> 997</math>||<math> 1637</math>
+
 
|-
+
::<math>\begin{align}
| style="background:#ffd890;"|<math>\mathbf{ 408}</math>||<math> 13</math>||<math> 223</math>||<math> 643</math>||<math> 683</math>||<math> 1063</math>||<math> 1213</math>
+
x^2 & \equiv q \pmod{m} \qquad \qquad \;\: (2) \\
|-
+
x^2 & \equiv q \pmod{2} \qquad \qquad \;\;\,\, (3) \\
| style="background:#ffd890;"|<math>\mathbf{ 414}</math>||<math> 269</math>||<math> 359</math>||<math> 619</math>||<math> 1039</math>||<math> 1879</math>||<math> 2089</math>
+
\end{align}</math>
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 420}</math>||<math> 19</math>||<math> 23</math>||<math> 37</math>||<math> 41</math>||<math> 43</math>||<math> 47</math>
+
Z definicji <math>q</math> jest liczbą kwadratową modulo <math>m</math>, zatem kongruencja <math>(2)</math> ma rozwiązanie – oznaczmy to rozwiązanie przez <math>x_0 .</math> Łatwo zauważamy, że liczba
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 426}</math>||<math> 5</math>||<math> 131</math>||<math> 181</math>||<math> 431</math>||<math> 761</math>||<math> 811</math>
+
::<math>x'_0 =
|-
+
  \begin{cases}
| style="background:#ffd890;"|<math>\mathbf{ 432}</math>||<math> 227</math>||<math> 617</math>||<math> 857</math>||<math> 997</math>||<math> 1657</math>||<math> 1667</math>
+
  \;\;\;\; x_0 & \text{gdy} \quad x_0 \equiv 1 \pmod{2} \\
|-
+
  x_0 + m & \text{gdy} \quad x_0 \equiv 0 \pmod{2} \\
| style="background:#ffd890;"|<math>\mathbf{ 438}</math>||<math> 5</math>||<math> 53</math>||<math> 383</math>||<math> 1163</math>||<math> 1303</math>||<math> 1873</math>
+
  \end{cases}</math>
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 444}</math>||<math> 199</math>||<math> 409</math>||<math> 1109</math>||<math> 1669</math>||<math> 1889</math>||<math> 2029</math>
+
jest rozwiązaniem układu kongruencji <math>(2)</math> i <math>(3)</math>, a&nbsp;tym samym kongruencja <math>(1)</math> ma rozwiązanie dla każdego <math>2 < q <\mathbb{n} (m) .</math> Wynika stąd, że <math>\mathbb{n} (2 m) =\mathbb{n} (m) .</math><br/>
|-
+
&#9633;
| style="background:#ffd890;"|<math>\mathbf{ 450}</math>||<math> 11</math>||<math> 97</math>||<math> 149</math>||<math> 193</math>||<math> 251</math>||<math> 359</math>
+
{{\Spoiler}}
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 456}</math>||<math> 191</math>||<math> 521</math>||<math> 631</math>||<math> 1171</math>||<math> 1291</math>||<math> 2341</math>
+
 
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 462}</math>||<math> 47</math>||<math> 107</math>||<math> 137</math>||<math> 277</math>||<math> 307</math>||<math> 367</math>
+
<span style="font-size: 110%; font-weight: bold;">Twierdzenie K40</span><br/>
|-
+
Niech <math>m</math> będzie liczbą nieparzystą, a <math>\mathbb{n} (m)</math> będzie najmniejszą liczbą niekwadratową modulo <math>m .</math> Mamy
| style="background:#ffd890;"|<math>\mathbf{ 468}</math>||<math> 193</math>||<math> 293</math>||<math> 503</math>||<math> 683</math>||<math> 733</math>||<math> 1013</math>
+
 
|-
+
::<math>\begin{array}{lllll}
| style="background:#ffd890;"|<math>\mathbf{ 474}</math>||<math> 5</math>||<math> 29</math>||<math> 379</math>||<math> 479</math>||<math> 719</math>||<math> 829</math>
+
  \mathbb{n} (4 m) \geqslant 5 & & \mathbb{n} (m) = 2        & & \text{gdy } \;\; 3 \mid m \\
|-
+
  \mathbb{n} (4 m) = 3        & & \mathbb{n} (m) \geqslant 2 & & \text{gdy } \;\; 3 \nmid m \\
| style="background:#ffd890;"|<math>\mathbf{ 480}</math>||<math> 7</math>||<math> 11</math>||<math> 127</math>||<math> 347</math>||<math> 439</math>||<math> 449</math>
+
\end{array}</math>
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 486}</math>||<math> 241</math>||<math> 811</math>||<math> 941</math>||<math> 1361</math>||<math> 1861</math>||<math> 1871</math>
+
{{Spoiler|Style = font-style: italic; font-weight: bold; color: olive; text-decoration: underline;|Show=Dowód|Hide=Ukryj dowód}}
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 492}</math>||<math> 7</math>||<math> 107</math>||<math> 947</math>||<math> 1607</math>||<math> 2897</math>||<math> 3037</math>
+
'''Punkt 1.'''
|-
 
| style="background:#ffd890;"|<math>\mathbf{ 498}</math>||<math> 73</math>||<math> 883</math>||<math> 953</math>||<math> 983</math>||<math> 1723</math>||<math> 1913</math>
 
|-
 
| style="background:#ffd890;"|<math>\mathbf{ 504}</math>||<math> 89</math>||<math> 109</math>||<math> 229</math>||<math> 359</math>||<math> 599</math>||<math> 619</math>
 
|-
 
| style="background:#ffd890;"|<math>\mathbf{ 510}</math>||<math> 13</math>||<math> 67</math>||<math> 83</math>||<math> 89</math>||<math> 97</math>||<math> 167</math>
 
|-
 
| style="background:#ffd890;"|<math>\mathbf{ 516}</math>||<math> 31</math>||<math> 61</math>||<math> 71</math>||<math> 1181</math>||<math> 1361</math>||<math> 1471</math>
 
|-
 
| style="background:#ffd890;"|<math>\mathbf{ 522}</math>||<math> 47</math>||<math> 487</math>||<math> 907</math>||<math> 1097</math>||<math> 1237</math>||<math> 1747</math>
 
|-
 
| style="background:#ffd890;"|<math>\mathbf{ 528}</math>||<math> 13</math>||<math> 73</math>||<math> 443</math>||<math> 503</math>||<math> 653</math>||<math> 1213</math>
 
|-
 
| style="background:#ffd890;"|<math>\mathbf{ 534}</math>||<math> 839</math>||<math> 919</math>||<math> 1019</math>||<math> 1399</math>||<math> 1579</math>||<math> 1619</math>
 
|-
 
| style="background:#ffd890;"|<math>\mathbf{ 540}</math>||<math> 7</math>||<math> 17</math>||<math> 37</math>||<math> 73</math>||<math> 101</math>||<math> 113</math>
 
|-
 
| style="background:#ffd890;"|<math>\mathbf{ 546}</math>||<math> 31</math>||<math> 61</math>||<math> 71</math>||<math> 401</math>||<math> 431</math>||<math> 821</math>
 
|-
 
| style="background:#ffd890;"|<math>\mathbf{ 552}</math>||<math> 67</math>||<math> 257</math>||<math> 277</math>||<math> 727</math>||<math> 1427</math>||<math> 2267</math>
 
|-
 
| style="background:#ffd890;"|<math>\mathbf{ 558}</math>||<math> 463</math>||<math> 593</math>||<math> 673</math>||<math> 1013</math>||<math> 1583</math>||<math> 2243</math>
 
|-
 
| style="background:#ffd890;"|<math>\mathbf{ 564}</math>||<math> 109</math>||<math> 179</math>||<math> 659</math>||<math> 719</math>||<math> 859</math>||<math> 1429</math>
 
|-
 
| style="background:#ffd890;"|<math>\mathbf{ 570}</math>||<math> 23</math>||<math> 31</math>||<math> 73</math>||<math> 157</math>||<math> 163</math>||<math> 241</math>
 
|-
 
| style="background:#ffd890;"|<math>\mathbf{ 576}</math>||<math> 151</math>||<math> 401</math>||<math> 541</math>||<math> 991</math>||<math> 1061</math>||<math> 1091</math>
 
|-
 
| style="background:#ffd890;"|<math>\mathbf{ 582}</math>||<math> 37</math>||<math> 127</math>||<math> 457</math>||<math> 647</math>||<math> 967</math>||<math> 1087</math>
 
|-
 
| style="background:#ffd890;"|<math>\mathbf{ 588}</math>||<math> 103</math>||<math> 113</math>||<math> 223</math>||<math> 233</math>||<math> 443</math>||<math> 613</math>
 
|-
 
| style="background:#ffd890;"|<math>\mathbf{ 594}</math>||<math> 5</math>||<math> 89</math>||<math> 439</math>||<math> 599</math>||<math> 839</math>||<math> 1019</math>
 
|-
 
| style="background:#ffd890;"|<math>\mathbf{ 600}</math>||<math> 31</math>||<math> 101</math>||<math> 173</math>||<math> 227</math>||<math> 229</math>||<math> 239</math>
 
|}
 
<br/>
 
&#9633;
 
{{\Spoiler}}
 
  
 +
Z twierdzenia K34 wynika, że w&nbsp;przypadku, gdy <math>3 \mid m</math>, to <math>\mathbb{n} (m) = 2 .</math> Ponieważ <math>2 \mid 4 m</math> i <math>3 \mid 4 m</math>, to <math>\mathbb{n} (4 m) \geqslant 5 .</math>
  
 +
'''Punkt 2.'''
  
<span style="font-size: 110%; font-weight: bold;">Przykład C54</span><br/>
+
Ponieważ <math>m</math> jest liczbą nieparzystą, to <math>8 \nmid 4 m</math>, ale <math>4 \mid 4 m \;</math> i <math>\; 4 \nmid (3 - 1)</math>, zatem z&nbsp;twierdzenia J55 wynika, że kongruencja
Tabela zawiera przykładowe ciągi arytmetyczne liczb pierwszych o&nbsp;długości <math>n = 5</math> i <math>n = 6</math>.
 
  
{{Spoiler|Style = font-style: italic; font-weight: bold; color: olive; text-decoration: underline;|Show=Pokaż tabele|Hide=Ukryj tabele}}
+
::<math>x^2 \equiv 3 \pmod{4 m}</math>
W przypadku <math>n = 5</math> wyszukiwanie ciągów zostało przeprowadzone dla <math>d = 6 k</math>, gdzie <math>1 \leqslant k \leqslant 100</math> i (przy ustalonym <math>d</math>) dla kolejnych liczb pierwszych <math>p_0 \leqslant 10^8</math>.
 
  
W przypadku <math>n = 6</math> wyszukiwanie ciągów zostało przeprowadzone dla <math>d = 30 k</math>, gdzie <math>1 \leqslant k \leqslant 100</math> i (przy ustalonym <math>d</math>) dla kolejnych liczb pierwszych <math>p_0 \leqslant 10^8</math>.
+
nie ma rozwiązania. Ponieważ <math>2 \mid 4 m \;</math> i <math>\; 3 \nmid 4 m</math>, to <math>\mathbb{n} (4 m) = 3 .</math><br/>
 +
&#9633;
 +
{{\Spoiler}}
 +
 
 +
 
 +
 
 +
<span style="font-size: 110%; font-weight: bold;">Twierdzenie K41</span><br/>
 +
Niech <math>p</math> będzie liczbą pierwszą nieparzystą. Jeżeli <math>a</math> jest liczbą niekwadratową modulo <math>p \,</math> i <math>\, p \mid m</math>, to <math>a</math> jest liczbą niekwadratową modulo <math>m .</math>
 +
 
 +
{{Spoiler|Style = font-style: italic; font-weight: bold; color: olive; text-decoration: underline;|Show=Dowód|Hide=Ukryj dowód}}
 +
Wiemy, że liczba <math>a</math> jest liczbą kwadratową modulo <math>m</math> wtedy i&nbsp;tylko wtedy, gdy kongruencja
 +
 
 +
::<math>x^2 \equiv a \pmod{m}</math>
 +
 
 +
ma rozwiązanie. Przypuśćmy, że liczba <math>a</math> jest liczbą kwadratową modulo <math>m .</math> Zatem istnieje taka liczba <math>k \in \mathbb{Z}</math>, że
 +
 
 +
::<math>k^2 \equiv a \pmod{m}</math>
 +
 
 +
Ponieważ z&nbsp;założenia <math>p \mid m</math>, to prawdziwa jest też kongruencja
  
Jeżeli w&nbsp;tabeli jest wypisanych sześć wartości <math>p_0</math>, to oznacza to, że zostało znalezionych co najmniej sześć wartości <math>p_0</math>.
+
::<math>k^2 \equiv a \pmod{p}</math>
  
{| class="wikitable plainlinks"  style="display: inline-table; margin-left: 5px; margin-right: 50px; font-size: 80%; text-align: right;"
+
co przeczy założeniu, że liczba <math>a</math> jest liczbą niekwadratową modulo <math>p .</math><br/>
|- style="background: #98fb98; text-align: center;"
+
&#9633;
| colspan=7 | <math>\mathbf{n = 5}</math>
+
{{\Spoiler}}
|- style="text-align: center;"
+
 
| style="background: #ffd890;" | <math>\mathbf{d}</math>
+
 
| colspan=6 | <math>\mathbf{p_0}</math>
+
 
|-
+
<span style="font-size: 110%; font-weight: bold;">Twierdzenie K42</span><br/>
|-
+
Niech <math>m \geqslant 3</math> będzie liczbą nieparzystą. Jeżeli liczba <math>\mathbb{n} = \mathbb{n} (m)</math> jest najmniejszą liczbą niekwadratową modulo <math>m</math>, to istnieje taki dzielnik pierwszy <math>p</math> liczby <math>m</math>, że <math>\mathbb{n}</math> jest najmniejszą liczbą niekwadratową modulo <math>p .</math>
| style="background:#ffd890;"|<math>\mathbf{ 6}</math>||<math> 5</math>||||||||||
+
 
|-
+
{{Spoiler|Style = font-style: italic; font-weight: bold; color: olive; text-decoration: underline;|Show=Dowód|Hide=Ukryj dowód}}
| style="background:#ffd890;"|<math>\mathbf{ 12}</math>||<math> 5</math>||||||||||
+
Przypuśćmy, że taki dzielnik pierwszy nie istnieje. Zatem mamy zbiór dzielników pierwszych liczby <math>m</math>: <math>\{ p_1, \ldots, p_s \}</math> i&nbsp;powiązany z&nbsp;dzielnikami pierwszymi <math>p_k</math> zbiór najmniejszych liczb niekwadratowych modulo <math>p_k</math>: <math>\{ \mathbb{n}_1, \ldots, \mathbb{n}_s \}</math>, z&nbsp;których każda jest liczbą niekwadratową modulo <math>m</math> (zobacz K41). Wynika stąd, że liczba <math>\mathbb{n} = \mathbb{n} (m)</math> musi być mniejsza od każdej z&nbsp;liczb <math>\mathbb{n}_k .</math>
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 30}</math>||<math> 7</math>||<math> 11</math>||<math> 37</math>||<math> 107</math>||<math> 137</math>||<math> 151</math>
+
Z definicji liczba <math>\mathbb{n} = \mathbb{n} (m)</math> jest liczbą niekwadratową modulo <math>m</math>, co oznacza, że kongruencja
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 42}</math>||<math> 5</math>||||||||||
+
::<math>x^2 \equiv \mathbb{n} \pmod{m}</math>
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 48}</math>||<math> 5</math>||||||||||
+
nie ma rozwiązania. Niech <math>m = p^{\alpha_1}_1 \cdot \ldots \cdot p^{\alpha_s}_s .</math> Zatem przynajmniej jedna z&nbsp;kongruencji
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 60}</math>||<math> 11</math>||<math> 43</math>||<math> 53</math>||<math> 71</math>||<math> 113</math>||<math> 571</math>
+
::<math>x^2 \equiv \mathbb{n} \pmod{p^{\alpha_k}_k}</math>
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 90}</math>||<math> 13</math>||<math> 61</math>||<math> 83</math>||<math> 89</math>||<math> 103</math>||<math> 503</math>
+
musi nie mieć rozwiązania (zobacz J11). Z&nbsp;twierdzenia J49 wiemy, że wtedy kongruencja
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 96}</math>||<math> 5</math>||||||||||
+
::<math>x^2 \equiv \mathbb{n} \pmod{p_k}</math>
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 120}</math>||<math> 29</math>||<math> 107</math>||<math> 239</math>||<math> 281</math>||<math> 359</math>||<math> 379</math>
+
również nie ma rozwiązania. Zatem <math>\mathbb{n}</math> jest liczbą niekwadratową modulo <math>p_k \,</math> i <math>\, \mathbb{n} < \mathbb{n}_k</math>, co przeczy definicji liczby <math>\mathbb{n}_k .</math><br/>
|-
+
&#9633;
| style="background:#ffd890;"|<math>\mathbf{ 126}</math>||<math> 5</math>||||||||||
+
{{\Spoiler}}
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 150}</math>||<math> 7</math>||<math> 13</math>||<math> 17</math>||<math> 73</math>||<math> 157</math>||<math> 223</math>
+
 
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 180}</math>||<math> 101</math>||<math> 103</math>||<math> 367</math>||<math> 397</math>||<math> 577</math>||<math> 1013</math>
+
<span style="font-size: 110%; font-weight: bold;">Twierdzenie K43</span><br/>
|-
+
Niech <math>m \geqslant 3</math> będzie liczbą nieparzystą. Jeżeli <math>m = p^{\alpha_1}_1 \cdot \ldots \cdot p^{\alpha_s}_s</math>, to
| style="background:#ffd890;"|<math>\mathbf{ 210}</math>||<math> 13</math>||<math> 23</math>||<math> 47</math>||<math> 71</math>||<math> 127</math>||<math> 157</math>
+
 
|-
+
::<math>\mathbb{n}(m) = \min ( \mathbb{n} (p_1), \ldots, \mathbb{n} (p_s) )</math>
| style="background:#ffd890;"|<math>\mathbf{ 240}</math>||<math> 23</math>||<math> 263</math>||<math> 331</math>||<math> 571</math>||<math> 823</math>||<math> 947</math>
+
 
|-
+
gdzie <math>\mathbb{n}(m)</math> jest najmniejszą liczbą kwadratową modulo <math>m</math>, a <math>\mathbb{n}(p_k)</math> są najmniejszymi liczbami kwadratowymi modulo <math>p_k .</math>
| style="background:#ffd890;"|<math>\mathbf{ 252}</math>||<math> 5</math>||||||||||
+
 
|-
+
{{Spoiler|Style = font-style: italic; font-weight: bold; color: olive; text-decoration: underline;|Show=Dowód|Hide=Ukryj dowód}}
| style="background:#ffd890;"|<math>\mathbf{ 270}</math>||<math> 491</math>||<math> 557</math>||<math> 613</math>||<math> 641</math>||<math> 743</math>||<math> 827</math>
+
Twierdzenie to jest prostym wnioskiem z&nbsp;twierdzenia K42, ale musimy jeszcze pokazać, że <math>\gcd (\mathbb{n} (m), m) = 1 .</math> Przypuśćmy, że <math>p_k |\mathbb{n} (m)</math> dla pewnego <math>1 \leqslant k \leqslant s .</math> Ponieważ <math>\mathbb{n} (m)</math> jest liczbą pierwszą, to musi być <math>\mathbb{n} (m) = p_k</math>, ale wtedy
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 300}</math>||<math> 83</math>||<math> 223</math>||<math> 383</math>||<math> 419</math>||<math> 509</math>||<math> 523</math>
+
::<math>\mathbb{n} (p_k) < p_k =\mathbb{n} (m) \leqslant \mathbb{n} (p_k)</math>
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 330}</math>||<math> 79</math>||<math> 113</math>||<math> 127</math>||<math> 317</math>||<math> 457</math>||<math> 491</math>
+
Otrzymana sprzeczność dowodzi, że <math>\mathbb{n} (m)</math> jest względnie pierwsza z&nbsp;każdą z&nbsp;liczb pierwszych <math>p_i</math>, gdzie <math>1 \leqslant i \leqslant s .</math> Co kończy dowód.<br/>
|-
+
&#9633;
| style="background:#ffd890;"|<math>\mathbf{ 360}</math>||<math> 7</math>||<math> 13</math>||<math> 227</math>||<math> 293</math>||<math> 349</math>||<math> 577</math>
+
{{\Spoiler}}
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 390}</math>||<math> 59</math>||<math> 229</math>||<math> 311</math>||<math> 619</math>||<math> 1097</math>||<math> 1489</math>
+
 
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 420}</math>||<math> 19</math>||<math> 41</math>||<math> 43</math>||<math> 67</math>||<math> 193</math>||<math> 199</math>
+
<span style="font-size: 110%; font-weight: bold;">Twierdzenie K44</span><br/>
|-
+
Niech <math>m \geqslant 3</math> będzie liczbą nieparzystą, a <math>\mathbb{n}(m)</math> jest najmniejszą liczbą niekwadratową modulo <math>m .</math> Prawdziwe są oszacowania
| style="background:#ffd890;"|<math>\mathbf{ 426}</math>||<math> 5</math>||||||||||
+
 
|-
+
::<math>\mathbb{n}(m) < \sqrt{m} + {\small\frac{1}{2}} \qquad \qquad \qquad \;\;\, \text{dla } m \geqslant 3</math>
| style="background:#ffd890;"|<math>\mathbf{ 450}</math>||<math> 11</math>||<math> 149</math>||<math> 193</math>||<math> 599</math>||<math> 1033</math>||<math> 1117</math>
+
 
|-
+
::<math>\mathbb{n}(m) \leqslant 1.1 \cdot m^{1 / 4} \log m \qquad \qquad \text{dla } m \geqslant 5</math>
| style="background:#ffd890;"|<math>\mathbf{ 474}</math>||<math> 5</math>||||||||||
+
 
|-
+
{{Spoiler|Style = font-style: italic; font-weight: bold; color: olive; text-decoration: underline;|Show=Dowód|Hide=Ukryj dowód}}
| style="background:#ffd890;"|<math>\mathbf{ 480}</math>||<math> 11</math>||<math> 347</math>||<math> 491</math>||<math> 1019</math>||<math> 1103</math>||<math> 1723</math>
+
Niech <math>p</math> będzie dzielnikiem pierwszym liczby <math>m</math> takim, że <math>\mathbb{n}(m) = \mathbb{n} (p)</math> (z twierdzenia K42 wiemy, że taki dzielnik istnieje). Jeżeli prawdziwe jest oszacowanie <math>\mathbb{n}(p) < F (p)</math>, gdzie <math>F(x)</math> jest funkcją rosnącą, to
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 510}</math>||<math> 13</math>||<math> 89</math>||<math> 97</math>||<math> 167</math>||<math> 229</math>||<math> 419</math>
+
::<math>\mathbb{n}(m) = \mathbb{n} (p) < F (p) \leqslant F (m)</math>
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 540}</math>||<math> 113</math>||<math> 211</math>||<math> 281</math>||<math> 379</math>||<math> 673</math>||<math> 919</math>
+
Podane w&nbsp;twierdzeniu oszacowania wynikają natychmiast z&nbsp;twierdzeń K21 i&nbsp;K22.<br/>
|-
+
&#9633;
| style="background:#ffd890;"|<math>\mathbf{ 570}</math>||<math> 31</math>||<math> 157</math>||<math> 241</math>||<math> 269</math>||<math> 647</math>||<math> 839</math>
+
{{\Spoiler}}
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 594}</math>||<math> 5</math>||||||||||
+
 
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 600}</math>||<math> 283</math>||<math> 311</math>||<math> 353</math>||<math> 509</math>||<math> 1223</math>||<math> 1531</math>
+
<span style="font-size: 110%; font-weight: bold;">Uwaga K45</span><br/>
|}
+
Liczby <math>\mathbb{n} (m)</math> są zaskakująco małe. Średnia wartość <math>\mathbb{n} = \mathbb{n} (m)</math> wynosi<ref name="Pollack1"/>
{| class="wikitable plainlinks"  style="display: inline-table; margin-left: 5px; margin-right: 50px; font-size: 80%; text-align: right;"
+
 
|- style="background: #98fb98; text-align: center;"
+
::<math>\lim_{x \to \infty} {\small\frac{1}{x}} \sum_{m \leqslant x} \mathbb{n} (m) = 2 + \sum_{k = 3}^{\infty} {\small\frac{p_k - 1}{p_1 \cdot \ldots \cdot p_{k - 1}}} = 2.920050977 \ldots</math>
| colspan=7 | <math>\mathbf{n = 6}</math>
+
 
|- style="text-align: center;"
+
 
| style="background: #ffd890;" | <math>\mathbf{d}</math>
+
 
| colspan=6 | <math>\mathbf{p_0}</math>
+
 
|-
+
 
|-
+
{| style="border-spacing: 5px; border: 2px solid black; background: transparent;"
| style="background:#ffd890;"|<math>\mathbf{ 30}</math>||<math> 7</math>||<math> 107</math>||<math> 359</math>||<math> 541</math>||<math> 2221</math>||<math> 6673</math>
+
| &nbsp;'''C.''' Najmniejsze dodatnie liczby niekwadratowe <math>a</math> takie, że <math>\left( {\small\frac{a}{m}} \right)_{\small{\!\! J}} = - 1</math>&nbsp;
|-
+
|}
| style="background:#ffd890;"|<math>\mathbf{ 60}</math>||<math> 11</math>||<math> 53</math>||<math> 641</math>||<math> 5443</math>||<math> 10091</math>||<math> 12457</math>
+
 
|-
+
<span style="font-size: 110%; font-weight: bold;">Przykład K46</span><br/>
| style="background:#ffd890;"|<math>\mathbf{ 90}</math>||<math> 13</math>||<math> 503</math>||<math> 1973</math>||<math> 2351</math>||<math> 5081</math>||<math> 10709</math>
+
W tabeli przedstawiliśmy najmniejsze liczby niekwadratowe modulo <math>p</math>, najmniejsze liczby niekwadratowe modulo <math>m</math> i&nbsp;najmniejsze dodatnie liczby niekwadratowe <math>a</math> takie, że <math>\left( {\small\frac{a}{m}} \right)_{\small{\!\! J}} = - 1</math>.
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 120}</math>||<math> 239</math>||<math> 281</math>||<math> 701</math>||<math> 2339</math>||<math> 2437</math>||<math> 10613</math>
+
::{| class="wikitable plainlinks"  style="font-size: 100%; text-align: center; margin-right: auto;"
|-
+
! <math>\boldsymbol{m}</math>  
| style="background:#ffd890;"|<math>\mathbf{ 150}</math>||<math> 7</math>||<math> 73</math>||<math> 157</math>||<math> 2467</math>||<math> 4637</math>||<math> 6079</math>
+
| <math>3</math> || <math>5</math> || <math>7</math> || <math>9</math> || <math>11</math> || <math>13</math> || <math>15</math> || <math>17</math> || <math>19</math> || <math>21</math> || <math>23</math> || <math>25</math> || <math>27</math> || <math>29</math> || <math>31</math> || <math>33</math> || <math>35</math> || <math>37</math> || <math>39</math> || <math>41</math> || <math>43</math> || <math>45</math> || <math>47</math> || <math>49</math> || <math>51</math>
|-
 
| style="background:#ffd890;"|<math>\mathbf{ 180}</math>||<math> 397</math>||<math> 1013</math>||<math> 1307</math>||<math> 17029</math>||<math> 20963</math>||<math> 24337</math>
 
 
|-
 
|-
| style="background:#ffd890;"|<math>\mathbf{ 210}</math>||<math> 13</math>||<math> 47</math>||<math> 179</math>||<math> 199</math>||<math> 257</math>||<math> 389</math>
+
<math>\boldsymbol{\mathbb{n}( p )}</math>
 +
| <math>2</math> || <math>2</math> || <math>3</math> || <math>-</math> || <math>2</math> || <math>2</math> || <math>-</math> || <math>3</math> || <math>2</math> || <math>-</math> || <math>5</math> || <math>-</math> || <math>-</math> || <math>2</math> || <math>3</math> || <math>-</math> || <math>-</math> || <math>2</math> || <math>-</math> || <math>3</math> || <math>2</math> || <math>-</math> || <math>5</math> || <math>-</math> || <math>-</math>
 
|-
 
|-
| style="background:#ffd890;"|<math>\mathbf{ 240}</math>||<math> 23</math>||<math> 331</math>||<math> 2207</math>||<math> 3677</math>||<math> 5021</math>||<math> 6323</math>
+
<math>\boldsymbol{\mathbb{n}( m )}</math>
 +
| <math>2</math> || <math>2</math> || <math>3</math> || <math>2</math> || <math>2</math> || <math>2</math> || <math>2</math> || <math>3</math> || <math>2</math> || <math>2</math> || <math>5</math> || <math>2</math> || <math>2</math> || <math>2</math> || <math>3</math> || <math>2</math> || <math>2</math> || <math>2</math> || <math>2</math> || <math>3</math> || <math>2</math> || <math>2</math> || <math>5</math> || <math>3</math> || <math>2</math>
 
|-
 
|-
| style="background:#ffd890;"|<math>\mathbf{ 270}</math>||<math> 557</math>||<math> 1201</math>||<math> 2377</math>||<math> 8467</math>||<math> 9923</math>||<math> 12107</math>
+
<math>\boldsymbol{c( m )}</math>  
|-
+
| <math>2</math> || <math>2</math> || <math>3</math> || <math>-</math> || <math>2</math> || <math>2</math> || <math>7</math> || <math>3</math> || <math>2</math> || <math>2</math> || <math>5</math> || <math>-</math> || <math>2</math> || <math>2</math> || <math>3</math> || <math>5</math> || <math>2</math> || <math>2</math> || <math>7</math> || <math>3</math> || <math>2</math> || <math>2</math> || <math>5</math> || <math>-</math> || <math>2</math>
| style="background:#ffd890;"|<math>\mathbf{ 300}</math>||<math> 83</math>||<math> 223</math>||<math> 587</math>||<math> 1511</math>||<math> 4073</math>||<math> 4423</math>
+
|}
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 330}</math>||<math> 127</math>||<math> 491</math>||<math> 2129</math>||<math> 2857</math>||<math> 3137</math>||<math> 5153</math>
+
 
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 360}</math>||<math> 227</math>||<math> 577</math>||<math> 1669</math>||<math> 9187</math>||<math> 13331</math>||<math> 13933</math>
+
<span style="font-size: 110%; font-weight: bold;">Uwaga K47</span><br/>
|-
+
Do wyszukiwania liczb <math>c = c (m)</math> Czytelnik może wykorzystać prostą funkcję napisaną w&nbsp;PARI/GP
| style="background:#ffd890;"|<math>\mathbf{ 390}</math>||<math> 229</math>||<math> 3701</math>||<math> 9007</math>||<math> 9833</math>||<math> 13291</math>||<math> 17911</math>
+
 
|-
+
<span style="font-size: 90%; color:black;">C(m) =
| style="background:#ffd890;"|<math>\mathbf{ 420}</math>||<math> 41</math>||<math> 43</math>||<math> 193</math>||<math> 613</math>||<math> 743</math>||<math> 1289</math>
+
{
|-
+
'''if'''( m%2 == 0, '''return'''(0) );
| style="background:#ffd890;"|<math>\mathbf{ 450}</math>||<math> 149</math>||<math> 1381</math>||<math> 1451</math>||<math> 3607</math>||<math> 5651</math>||<math> 8521</math>
+
'''if'''( '''issquare'''(m), '''return'''(0) );
|-
+
'''forprime'''(p = 2, m, '''if'''( jacobi(p, m) == -1, '''return'''(p) ));
| style="background:#ffd890;"|<math>\mathbf{ 480}</math>||<math> 11</math>||<math> 5051</math>||<math> 8719</math>||<math> 10567</math>||<math> 11113</math>||<math> 13591</math>
+
}</span>
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 510}</math>||<math> 97</math>||<math> 419</math>||<math> 811</math>||<math> 3191</math>||<math> 3583</math>||<math> 4283</math>
+
 
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 540}</math>||<math> 379</math>||<math> 673</math>||<math> 3851</math>||<math> 3907</math>||<math> 7043</math>||<math> 12377</math>
+
<span style="font-size: 110%; font-weight: bold;">Uwaga K48</span><br/>
|-
+
Najmniejsze dodatnie liczby niekwadratowe <math>a</math> takie, że <math>\left( {\small\frac{a}{m}} \right)_{\small{\!\! J}} = - 1</math> oznaczyliśmy jako <math>c(m)</math>. Zauważmy, że są to liczby inne od <math>\mathbb{n}(p)</math> i <math>\mathbb{n}(m)</math>. Wystarczy zwrócić uwagę na występujące w&nbsp;tabeli liczby <math>\mathbb{n}(p)</math>, <math>\mathbb{n}(m)</math> i <math>c(m)</math> dla <math>m = 15, 33, 39</math>. Różnice wynikają z&nbsp;innej definicji liczb <math>c(m)</math> – jeżeli liczba <math>a</math> jest liczbą niekwadratową modulo <math>m</math>, to symbol Jacobiego <math>\left( {\small\frac{a}{m}} \right)_{\small{\!\! J}}</math> nie musi być równy <math>- 1</math>. I&nbsp;tak czasami bywa, co bardzo dobrze pokazuje powyższa tabela.
| style="background:#ffd890;"|<math>\mathbf{ 570}</math>||<math> 269</math>||<math> 1039</math>||<math> 2887</math>||<math> 3853</math>||<math> 10979</math>||<math> 11399</math>
+
 
|-
+
Ponieważ <math>c(m)</math> nie zawsze będzie najmniejszą liczbą kwadratową modulo <math>m</math>, to mamy natychmiast oszacowanie: <math>c(m) \geqslant \mathbb{n} (m)</math> (poza przypadkami, gdy <math>m = n^2</math>).
| style="background:#ffd890;"|<math>\mathbf{ 600}</math>||<math> 8839</math>||<math> 23371</math>||<math> 38183</math>||<math> 44189</math>||<math> 59743</math>||<math> 63467</math>
+
 
|-
+
Dla <math>c(m)</math> nie są prawdziwe oszacowania podane w&nbsp;twierdzeniu K21. Łatwo zauważamy, że
| style="background:#ffd890;"|<math>\mathbf{ 630}</math>||<math> 179</math>||<math> 193</math>||<math> 1637</math>||<math> 2267</math>||<math> 2897</math>||<math> 4813</math>
+
 
|-
+
::<math>c = c (15) = 7 > \sqrt{15} + {\small\frac{1}{2}} \approx 4.37</math>
| style="background:#ffd890;"|<math>\mathbf{ 660}</math>||<math> 163</math>||<math> 317</math>||<math> 401</math>||<math> 2753</math>||<math> 3229</math>||<math> 5077</math>
+
 
|-
+
::<math>c = c (39) = 7 > \sqrt{39} + {\small\frac{1}{2}} \approx 6.74</math>
| style="background:#ffd890;"|<math>\mathbf{ 690}</math>||<math> 277</math>||<math> 1523</math>||<math> 6101</math>||<math> 10427</math>||<math> 15971</math>||<math> 27059</math>
+
 
|-
+
::<math>c = c (105) = 11 > \sqrt{105} + {\small\frac{1}{2}} \approx 10.75</math>
| style="background:#ffd890;"|<math>\mathbf{ 720}</math>||<math> 1231</math>||<math> 3793</math>||<math> 4003</math>||<math> 6229</math>||<math> 7573</math>||<math> 10079</math>
+
 
|-
+
::<math>c = c (231) = 17 > \sqrt{231} + {\small\frac{1}{2}} \approx 15.7</math>
| style="background:#ffd890;"|<math>\mathbf{ 750}</math>||<math> 1051</math>||<math> 1289</math>||<math> 1583</math>||<math> 2857</math>||<math> 12377</math>||<math> 18523</math>
+
 
|-
+
Nie ma więcej takich przypadków dla <math>m < 10^9</math>.
| style="background:#ffd890;"|<math>\mathbf{ 780}</math>||<math> 1151</math>||<math> 3517</math>||<math> 3923</math>||<math> 4637</math>||<math> 5309</math>||<math> 9929</math>
+
 
 +
 
 +
 
 +
<span style="font-size: 110%; font-weight: bold;">Twierdzenie K49</span><br/>
 +
Niech <math>c, m \in \mathbb{Z}_+</math> i&nbsp;niech <math>m \geqslant 3</math> będzie liczbą nieparzystą, a <math>c</math> będzie najmniejszą liczbą taką, że <math>\left( {\small\frac{c}{m}} \right)_{\small{\!\! J}} = - 1</math>. Liczba <math>c</math> musi być liczbą pierwszą.
 +
 
 +
{{Spoiler|Style = font-style: italic; font-weight: bold; color: olive; text-decoration: underline;|Show=Dowód|Hide=Ukryj dowód}}
 +
Przypuśćmy, że <math>c = a b</math> jest liczbą złożoną, gdzie <math>1 < a, b < c</math>. Mamy
 +
 
 +
::<math>- 1 = \left( {\small\frac{c}{m}} \right)_{\small{\!\! J}} = \left( {\small\frac{a b}{m}} \right)_{\small{\!\! J}} = \left( {\small\frac{a}{m}} \right)_{\small{\!\! J}}</math><math>\left( {\small\frac{b}{m}} \right)_{\small{\!\! J}}</math>
 +
 
 +
Zatem jeden z&nbsp;czynników po prawej stronie musi być równy <math>- 1</math> wbrew definicji liczby <math>c</math>.<br/>
 +
&#9633;
 +
{{\Spoiler}}
 +
 
 +
 
 +
 
 +
 
 +
 
 +
== Liczby pierwsze postaci <math>x^2 + n y^2</math> ==
 +
 
 +
<span style="font-size: 110%; font-weight: bold;">Przykład K50</span><br/>
 +
Przedstawiamy wszystkie rozkłady liczb naturalnych nie większych od <math>85</math> na sumę postaci <math>x^2 + y^2</math>, gdzie <math>x, y \in \mathbb{N}_0</math>. Rozkłady różniące się jedynie kolejnością liczb <math>x , y</math> nie zostały uwzględnione.
 +
 
 +
{| class="wikitable plainlinks"  style="font-size: 70%; text-align: center; margin-right: auto;"
 
|-
 
|-
| style="background:#ffd890;"|<math>\mathbf{ 810}</math>||<math> 1993</math>||<math> 7817</math>||<math> 11443</math>||<math> 17519</math>||<math> 52631</math>||<math> 109919</math>
+
! <math>\boldsymbol{n}</math>
 +
| <math>1</math> || style="background-color: #99cc66" | <math>2</math> || <math>4</math> || style="background-color: #99cc66" | <math>5</math> || <math>8</math> || <math>9</math> || <math>10</math> || style="background-color: #99cc66" | <math>13</math> || <math>16</math> || style="background-color: #99cc66" | <math>17</math> || <math>18</math> || <math>20</math> || <math>25</math> || <math>26</math> || style="background-color: #99cc66" | <math>29</math> || <math>32</math> || <math>34</math> || <math>36</math> || style="background-color: #99cc66" | <math>37</math> || <math>40</math> || style="background-color: #99cc66" | <math>41</math> || <math>45</math> || <math>49</math> || <math>50</math> || <math>52</math> || style="background-color: #99cc66" | <math>53</math> || <math>58</math> ||style="background-color: #99cc66" | <math>61</math> || <math>64</math> || <math>65</math> || <math>68</math> || <math>72</math> || style="background-color: #99cc66" | <math>73</math> || <math>74</math> || <math>80</math> || <math>81</math> || <math>82</math> || <math>85</math>
 
|-
 
|-
| style="background:#ffd890;"|<math>\mathbf{ 840}</math>||<math> 97</math>||<math> 313</math>||<math> 1061</math>||<math> 1753</math>||<math> 1901</math>||<math> 2593</math>
+
! <math>\boldsymbol{x,y}</math>
 +
| <math>1,0</math> || <math>1,1</math> || <math>2,0</math> || <math>2,1</math> || <math>2,2</math> || <math>3,0</math> || <math>3,1</math> || <math>3,2</math> || <math>4,0</math> || <math>4,1</math> || <math>3,3</math> || <math>4,2</math> || <math>5,0</math> || <math>5,1</math> || <math>5,2</math> || <math>4,4</math> || <math>5,3</math> || <math>6,0</math> || <math>6,1</math> || <math>6,2</math> || <math>5,4</math> || <math>6,3</math> || <math>7,0</math> || <math>7,1</math> || <math>6,4</math> || <math>7,2</math> || <math>7,3</math> || <math>6,5</math> || <math>8,0</math> || <math>8,1</math> || <math>8,2</math> || <math>6,6</math> || <math>8,3</math> || <math>7,5</math> || <math>8,4</math> || <math>9,0</math> || <math>9,1</math> || <math>9,2</math>
 
|-
 
|-
| style="background:#ffd890;"|<math>\mathbf{ 870}</math>||<math> 2039</math>||<math> 2179</math>||<math> 5273</math>||<math> 5987</math>||<math> 9431</math>||<math> 10957</math>
+
! <math>\boldsymbol{x,y}</math>
 +
| <math></math> || <math></math> || <math></math> || <math></math> || <math></math> || <math></math> || <math></math> || <math></math> || <math></math> || <math></math> || <math></math> || <math></math> || <math>4,3</math> || <math></math> || <math></math> || <math></math> || <math></math> || <math></math> || <math></math> || <math></math> || <math></math> || <math></math> || <math></math> || <math>5,5</math> || <math></math> || <math></math> || <math></math> || <math></math> || <math></math> || <math>7,4</math> || <math></math> || <math></math> || <math></math> || <math></math> || <math></math> || <math></math> || <math></math> || <math>7,6</math>
 +
|}
 +
 
 +
Zauważmy, że liczba złożona <math>21</math> nie ma rozkładu na sumę kwadratów, a&nbsp;liczba złożona <math>65</math> ma dwa takie rozkłady. Obie liczby są postaci <math>4 k + 1</math>.
 +
 
 +
 
 +
 
 +
<span style="font-size: 110%; font-weight: bold;">Przykład K51</span><br/>
 +
Przedstawiamy wszystkie rozkłady liczb naturalnych nie większych od <math>73</math> na sumę postaci <math>x^2 + 2 y^2</math>, gdzie <math>x, y \in \mathbb{N}_0</math>.
 +
 
 +
{| class="wikitable plainlinks"  style="font-size: 70%; text-align: center; margin-right: auto;"
 
|-
 
|-
| style="background:#ffd890;"|<math>\mathbf{ 900}</math>||<math> 1747</math>||<math> 12541</math>||<math> 14767</math>||<math> 21193</math>||<math> 31511</math>||<math> 40289</math>
+
! <math>\boldsymbol{n}</math>
 +
| <math>1</math> || style="background-color: #99cc66" | <math>2</math> || style="background-color: #99cc66" | <math>3</math> || <math>4</math> || <math>6</math> || <math>8</math> || <math>9</math> || style="background-color: #99cc66" | <math>11</math> || <math>12</math> || <math>16</math> || style="background-color: #99cc66" | <math>17</math> || <math>18</math> || style="background-color: #99cc66" | <math>19</math> || <math>22</math> || <math>24</math> || <math>25</math> || <math>27</math> || <math>32</math> || <math>33</math> || <math>34</math> || <math>36</math> || <math>38</math> || style="background-color: #99cc66" | <math>41</math> || style="background-color: #99cc66" | <math>43</math> || <math>44</math> || <math>48</math> || <math>49</math> || <math>50</math> || <math>51</math> || <math>54</math> || <math>57</math> || style="background-color: #99cc66" | <math>59</math> || <math>64</math> || <math>66</math> || style="background-color: #99cc66" | <math>67</math> || <math>68</math> || <math>72</math> || style="background-color: #99cc66" | <math>73</math>
 
|-
 
|-
| style="background:#ffd890;"|<math>\mathbf{ 930}</math>||<math> 7</math>||<math> 293</math>||<math> 9043</math>||<math> 10247</math>||<math> 34327</math>||<math> 38891</math>
+
! <math>\boldsymbol{x,y}</math>
 +
| <math>1,0</math> || <math>0,1</math> || <math>1,1</math> || <math>2,0</math> || <math>2,1</math> || <math>0,2</math> || <math>3,0</math> || <math>3,1</math> || <math>2,2</math> || <math>4,0</math> || <math>3,2</math> || <math>4,1</math> || <math>1,3</math> || <math>2,3</math> || <math>4,2</math> || <math>5,0</math> || <math>5,1</math> || <math>0,4</math> || <math>5,2</math> || <math>4,3</math> || <math>6,0</math> || <math>6,1</math> || <math>3,4</math> || <math>5,3</math> || <math>6,2</math> || <math>4,4</math> || <math>7,0</math> || <math>0,5</math> || <math>7,1</math> || <math>6,3</math> || <math>7,2</math> || <math>3,5</math> || <math>8,0</math> || <math>8,1</math> || <math>7,3</math> || <math>6,4</math> || <math>8,2</math> || <math>1,6</math>
 
|-
 
|-
| style="background:#ffd890;"|<math>\mathbf{ 960}</math>||<math> 4943</math>||<math> 8737</math>||<math> 15373</math>||<math> 28351</math>||<math> 35393</math>||<math> 36919</math>
+
! <math>\boldsymbol{x,y}</math>
|-
+
| <math></math> || <math></math> || <math></math> || <math></math> || <math></math> || <math></math> || <math>1,2</math> || <math></math> || <math></math> || <math></math> || <math></math> || <math>0,3</math> || <math></math> || <math></math> || <math></math> || <math></math> || <math>3,3</math> || <math></math> || <math>1,4</math> || <math></math> || <math>2,4</math> || <math></math> || <math></math> || <math></math> || <math></math> || <math></math> || <math></math> || <math></math> || <math>1,5</math> || <math>2,5</math> || <math>5,4</math> || <math></math> || <math></math> || <math>4,5</math> || <math></math> || <math></math> || <math>0,6</math> || <math></math>
| style="background:#ffd890;"|<math>\mathbf{ 990}</math>||<math> 1249</math>||<math> 1319</math>||<math> 2467</math>||<math> 2957</math>||<math> 4049</math>||<math> 8291</math>
+
|}
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 1020}</math>||<math> 887</math>||<math> 929</math>||<math> 2441</math>||<math> 4639</math>||<math> 15083</math>||<math> 19997</math>
+
Zauważmy, że liczba złożona <math>65</math> nie ma rozkładu na sumę postaci <math>x^2 + 2 y^2</math>, a&nbsp;liczba złożona <math>33</math> ma dwa takie rozkłady. Obie liczby są postaci <math>8 k + 1</math>.
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 1050}</math>||<math> 53</math>||<math> 257</math>||<math> 443</math>||<math> 839</math>||<math> 1103</math>||<math> 3469</math>
+
Zauważmy też, że liczba złożona <math>35</math> nie ma rozkładu na sumę postaci <math>x^2 + 2 y^2</math>, a&nbsp;liczba złożona <math>27</math> ma dwa takie rozkłady. Obie liczby są postaci <math>8 k + 3</math>.
 +
 
 +
 
 +
 
 +
<span style="font-size: 110%; font-weight: bold;">Przykład K52</span><br/>
 +
Przedstawiamy wszystkie rozkłady liczb naturalnych nie większych od <math>103</math> na sumę postaci <math>x^2 + 3 y^2</math>, gdzie <math>x, y \in \mathbb{N}_0</math>.
 +
 
 +
{| class="wikitable plainlinks"  style="font-size: 70%; text-align: center; margin-right: auto;"
 
|-
 
|-
| style="background:#ffd890;"|<math>\mathbf{ 1080}</math>||<math> 1423</math>||<math> 9011</math>||<math> 10663</math>||<math> 27799</math>||<math> 36493</math>||<math> 51473</math>
+
! <math>\boldsymbol{n}</math>
 +
| <math>1</math> || style="background-color: #99cc66" | <math>3</math> || <math>4</math> || style="background-color: #99cc66" | <math>7</math> || <math>9</math> || <math>12</math> || style="background-color: #99cc66" | <math>13</math> || <math>16</math> || style="background-color: #99cc66" | <math>19</math> || <math>21</math> || <math>25</math> || <math>27</math> || <math>28</math> || style="background-color: #99cc66" | <math>31</math> || <math>36</math> || style="background-color: #99cc66" | <math>37</math> || <math>39</math> || style="background-color: #99cc66" | <math>43</math> || <math>48</math> || <math>49</math> || <math>52</math> || <math>57</math> || style="background-color: #99cc66" | <math>61</math> || <math>63</math> || <math>64</math> || style="background-color: #99cc66" | <math>67</math> || style="background-color: #99cc66" | <math>73</math> || <math>75</math> || <math>76</math> || style="background-color: #99cc66" | <math>79</math> || <math>81</math> || <math>84</math> || <math>91</math> || <math>93</math> || style="background-color: #99cc66" | <math>97</math> || <math>100</math> || style="background-color: #99cc66" | <math>103</math>
 
|-
 
|-
| style="background:#ffd890;"|<math>\mathbf{ 1110}</math>||<math> 3847</math>||<math> 9643</math>||<math> 10357</math>||<math> 11743</math>||<math> 16223</math>||<math> 21977</math>
+
! <math>\boldsymbol{x,y}</math>
 +
| <math>1,0</math> || <math>0,1</math> || <math>2,0</math> || <math>2,1</math> || <math>3,0</math> || <math>3,1</math> || <math>1,2</math> || <math>4,0</math> || <math>4,1</math> || <math>3,2</math> || <math>5,0</math> || <math>0,3</math> || <math>5,1</math> || <math>2,3</math> || <math>6,0</math> || <math>5,2</math> || <math>6,1</math> || <math>4,3</math> || <math>6,2</math> || <math>7,0</math> || <math>7,1</math> || <math>3,4</math> || <math>7,2</math> || <math>6,3</math> || <math>8,0</math> || <math>8,1</math> || <math>5,4</math> || <math>0,5</math> || <math>8,2</math> || <math>2,5</math> || <math>9,0</math> || <math>9,1</math> || <math>8,3</math> || <math>9,2</math> || <math>7,4</math> || <math>10,0</math> || <math>10,1</math>
 
|-
 
|-
| style="background:#ffd890;"|<math>\mathbf{ 1140}</math>||<math> 1063</math>||<math> 1301</math>||<math> 1553</math>||<math> 1777</math>||<math> 5683</math>||<math> 6397</math>
+
! <math>\boldsymbol{x,y}</math>
 +
| <math></math> || <math></math> || <math>1,1</math> || <math></math> || <math></math> || <math>0,2</math> || <math></math> || <math>2,2</math> || <math></math> || <math></math> || <math></math> || <math></math> || <math>4,2</math> || <math></math> || <math>3,3</math> || <math></math> || <math></math> || <math></math> || <math>0,4</math> || <math>1,4</math> || <math>5,3</math> || <math></math> || <math></math> || <math></math> || <math>4,4</math> || <math></math> || <math></math> || <math></math> || <math>7,3</math> || <math></math> || <math></math> || <math>6,4</math> || <math>4,5</math> || <math></math> || <math></math> || <math>5,5</math> || <math></math>
 
|-
 
|-
| style="background:#ffd890;"|<math>\mathbf{ 1170}</math>||<math> 379</math>||<math> 701</math>||<math> 911</math>||<math> 2143</math>||<math> 2297</math>||<math> 2857</math>
+
! <math>\boldsymbol{x,y}</math>  
|-
+
| <math></math> || <math></math> || <math></math> || <math></math> || <math></math> || <math></math> || <math></math> || <math></math> || <math></math> || <math></math> || <math></math> || <math></math> || <math>1,3</math> || <math></math> || <math></math> || <math></math> || <math></math> || <math></math> || <math></math> || <math></math> || <math>2,4</math> || <math></math> || <math></math> || <math></math> || <math></math> || <math></math> || <math></math> || <math></math> || <math>1,5</math> || <math></math> || <math></math> || <math>3,5</math> || <math></math> || <math></math> || <math></math> || <math></math> || <math></math>
| style="background:#ffd890;"|<math>\mathbf{ 1200}</math>||<math> 367</math>||<math> 2677</math>||<math> 3391</math>||<math> 18749</math>||<math> 34961</math>||<math> 59699</math>
+
|}
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 1230}</math>||<math> 2539</math>||<math> 6053</math>||<math> 6823</math>||<math> 9091</math>||<math> 12101</math>||<math> 14831</math>
+
Zauważmy, że liczba złożona <math>55</math> nie ma rozkładu na sumę postaci <math>x^2 + 3 y^2</math>, a&nbsp;liczba złożona <math>91</math> ma dwa takie rozkłady. Obie liczby są postaci <math>6 k + 1</math>.
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 1260}</math>||<math> 359</math>||<math> 617</math>||<math> 739</math>||<math> 1051</math>||<math> 1619</math>||<math> 1931</math>
+
 
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 1290}</math>||<math> 149</math>||<math> 17747</math>||<math> 20981</math>||<math> 24481</math>||<math> 46643</math>||<math> 47917</math>
+
<span style="font-size: 110%; font-weight: bold;">Twierdzenie K53</span><br/>
|-
+
Jeżeli liczba nieparzysta postaci <math>Q = x^2 + n y^2</math>, gdzie <math>n \in \{ 1, 2, 3 \}</math>, ma dwa różne takie przedstawienia w&nbsp;liczbach całkowitych dodatnich, to jest liczbą złożoną.
| style="background:#ffd890;"|<math>\mathbf{ 1320}</math>||<math> 53</math>||<math> 977</math>||<math> 991</math>||<math> 2237</math>||<math> 9461</math>||<math> 20983</math>
+
 
|-
+
{{Spoiler|Style = font-style: italic; font-weight: bold; color: olive; text-decoration: underline;|Show=Dowód|Hide=Ukryj dowód}}
| style="background:#ffd890;"|<math>\mathbf{ 1350}</math>||<math> 811</math>||<math> 937</math>||<math> 3877</math>||<math> 14923</math>||<math> 16001</math>||<math> 18493</math>
+
W dowodzie wyróżniliśmy miejsca, które wymagają oddzielnej analizy ze względu na wartość liczby <math>n</math>.
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 1380}</math>||<math> 3613</math>||<math> 9227</math>||<math> 15541</math>||<math> 16927</math>||<math> 17417</math>||<math> 18089</math>
+
Niech
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 1410}</math>||<math> 367</math>||<math> 2593</math>||<math> 12421</math>||<math> 50599</math>||<math> 60889</math>||<math> 80629</math>
+
::<math>Q = x^2 + n y^2 = a^2 + n b^2</math>
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 1440}</math>||<math> 439</math>||<math> 6277</math>||<math> 20753</math>||<math> 21929</math>||<math> 39079</math>||<math> 57727</math>
+
<div style="border: thin solid black; padding-top: 0em; margin-top: 0.5em; padding-bottom: 0em; margin-bottom: 0.5em;">
|-
+
<math>\boldsymbol{n = 1}</math>
| style="background:#ffd890;"|<math>\mathbf{ 1470}</math>||<math> 1279</math>||<math> 1877</math>||<math> 2383</math>||<math> 2393</math>||<math> 2749</math>||<math> 2801</math>
+
 
|-
+
Z założenia <math>Q</math> jest liczbą nieparzystą, zatem liczby występujące w&nbsp;rozkładach <math>x^2 + y^2 = a^2 + b^2</math> muszą mieć przeciwną parzystość. Nie zmniejszając ogólności, możemy założyć, że liczby <math>x, a</math> są nieparzyste, a&nbsp;liczby <math>y, b</math> parzyste.
| style="background:#ffd890;"|<math>\mathbf{ 1500}</math>||<math> 7331</math>||<math> 8423</math>||<math> 15493</math>||<math> 28513</math>||<math> 31607</math>||<math> 38453</math>
+
 
|-
+
<math>\boldsymbol{n = 2}</math>
| style="background:#ffd890;"|<math>\mathbf{ 1530}</math>||<math> 2741</math>||<math> 3203</math>||<math> 8537</math>||<math> 14389</math>||<math> 20143</math>||<math> 21277</math>
+
 
|-
+
Z założenia <math>Q</math> jest liczbą nieparzystą, zatem liczby <math>x, a</math> występująca w&nbsp;rozkładach <math>x^2 + 2 y^2 = a^2 + 2 b^2</math> muszą być nieparzyste. Pokażemy, że liczby <math>y, b</math> muszą mieć taką samą parzystość. Przypuśćmy, że <math>y</math> jest parzysta, a <math>b</math> nieparzysta, wtedy modulo <math>4</math> dostajemy
| style="background:#ffd890;"|<math>\mathbf{ 1560}</math>||<math> 419</math>||<math> 727</math>||<math> 3499</math>||<math> 3919</math>||<math> 6257</math>||<math> 9029</math>
+
 
|-
+
::<math>1 + 2 \cdot 0 \equiv 1 + 2 \cdot 1 \!\! \pmod{4}</math>
| style="background:#ffd890;"|<math>\mathbf{ 1590}</math>||<math> 2213</math>||<math> 2339</math>||<math> 4523</math>||<math> 6469</math>||<math> 9241</math>||<math> 9857</math>
+
 
|-
+
Co jest niemożliwe.
| style="background:#ffd890;"|<math>\mathbf{ 1620}</math>||<math> 7717</math>||<math> 9103</math>||<math> 12379</math>||<math> 37607</math>||<math> 43613</math>||<math> 46567</math>
+
 
|-
+
<math>\boldsymbol{n = 3}</math>
| style="background:#ffd890;"|<math>\mathbf{ 1650}</math>||<math> 19</math>||<math> 3001</math>||<math> 3659</math>||<math> 4051</math>||<math> 4289</math>||<math> 11527</math>
+
 
|-
+
Z założenia <math>Q</math> jest liczbą nieparzystą, zatem liczby występujące w&nbsp;rozkładach <math>x^2 + 3 y^2 = a^2 + 3 b^2</math> muszą mieć przeciwną parzystość. Pokażemy, że liczby <math>x, a</math> muszą mieć taką samą parzystość. Gdyby liczba <math>x</math> była nieparzysta, a&nbsp;liczba <math>a</math> parzysta, to modulo <math>4</math> mielibyśmy
| style="background:#ffd890;"|<math>\mathbf{ 1680}</math>||<math> 197</math>||<math> 997</math>||<math> 1289</math>||<math> 1319</math>||<math> 2309</math>||<math> 2683</math>
+
 
|-
+
::<math>1 + 3 \cdot 0 \equiv 0 + 3 \cdot 1 \!\! \pmod{4}</math>
| style="background:#ffd890;"|<math>\mathbf{ 1710}</math>||<math> 373</math>||<math> 1549</math>||<math> 1913</math>||<math> 2711</math>||<math> 12539</math>||<math> 15031</math>
+
 
|-
+
Co jest niemożliwe.
| style="background:#ffd890;"|<math>\mathbf{ 1740}</math>||<math> 1621</math>||<math> 5387</math>||<math> 6269</math>||<math> 15551</math>||<math> 61723</math>||<math> 77543</math>
+
</div>
|-
+
Z powyższego zestawienia wynika, że liczby <math>x, a</math> i liczby <math>y, b</math> mają taką samą parzystość. Mamy
| style="background:#ffd890;"|<math>\mathbf{ 1770}</math>||<math> 1483</math>||<math> 13691</math>||<math> 15329</math>||<math> 20873</math>||<math> 23869</math>||<math> 29917</math>
+
 
|-
+
::<math>x^2 - a^2 = n (b^2 - y^2)</math>
| style="background:#ffd890;"|<math>\mathbf{ 1800}</math>||<math> 421</math>||<math> 967</math>||<math> 1499</math>||<math> 6217</math>||<math> 30983</math>||<math> 37171</math>
+
 
|-
+
::<math>(x - a) (x + a) = n (b - y) (b + y)</math>
| style="background:#ffd890;"|<math>\mathbf{ 1830}</math>||<math> 31</math>||<math> 17909</math>||<math> 46567</math>||<math> 89057</math>||<math> 105619</math>||<math> 128341</math>
+
 
|-
+
Niech <math>f = \gcd (x - a, b - y)</math>, zatem <math>f</math> jest liczbą parzystą i
| style="background:#ffd890;"|<math>\mathbf{ 1860}</math>||<math> 5087</math>||<math> 6151</math>||<math> 9133</math>||<math> 16567</math>||<math> 23819</math>||<math> 29881</math>
+
 
|-
+
::<math>x - a = f r , \qquad \qquad b - y = f s , \qquad \qquad \gcd (r, s) = 1</math>
| style="background:#ffd890;"|<math>\mathbf{ 1890}</math>||<math> 23</math>||<math> 727</math>||<math> 1109</math>||<math> 1279</math>||<math> 1409</math>||<math> 1543</math>
+
 
|-
+
Czyli
| style="background:#ffd890;"|<math>\mathbf{ 1920}</math>||<math> 79</math>||<math> 1493</math>||<math> 13967</math>||<math> 19973</math>||<math> 41351</math>||<math> 46867</math>
+
 
|-
+
::<math>r(x + a) = n s (y + b)</math>
| style="background:#ffd890;"|<math>\mathbf{ 1950}</math>||<math> 3259</math>||<math> 4813</math>||<math> 8803</math>||<math> 12373</math>||<math> 13577</math>||<math> 13619</math>
+
 
|-
+
ale liczby <math>r, s</math> są względnie pierwsze, zatem <math>s \mid (x + a)</math> i&nbsp;musi być
| style="background:#ffd890;"|<math>\mathbf{ 1980}</math>||<math> 1511</math>||<math> 3863</math>||<math> 4969</math>||<math> 5039</math>||<math> 7027</math>||<math> 9337</math>
+
 
|-
+
::<math>x + a = k s \qquad \qquad \Longrightarrow \qquad \qquad n (y + b) = k r</math>
| style="background:#ffd890;"|<math>\mathbf{ 2010}</math>||<math> 1303</math>||<math> 3739</math>||<math> 7309</math>||<math> 13763</math>||<math> 22093</math>||<math> 31151</math>
+
 
|-
+
Gdyby <math>k</math> było liczbą nieparzystą, to liczby <math>r, s</math> musiałyby być parzyste, co jest niemożliwe, bo <math>\gcd (r, s) = 1</math>. Zatem <math>k</math> jest liczbą parzystą i <math>2 s \mid (x + a)</math>, czyli możemy pokazać więcej. Musi być
| style="background:#ffd890;"|<math>\mathbf{ 2040}</math>||<math> 1039</math>||<math> 6779</math>||<math> 7507</math>||<math> 8963</math>||<math> 10069</math>||<math> 12281</math>
+
 
|-
+
::<math>x + a = 2 l s \qquad \qquad \Longrightarrow \qquad \qquad n (y + b) = 2 l r</math>
| style="background:#ffd890;"|<math>\mathbf{ 2070}</math>||<math> 1097</math>||<math> 2063</math>||<math> 2917</math>||<math> 4289</math>||<math> 6571</math>||<math> 11149</math>
+
 
|-
+
W przypadku gdy <math>n = 2</math> lub <math>n = 3</math>, zauważmy, że <math>n \mid l</math> lub <math>n \mid r</math>.
| style="background:#ffd890;"|<math>\mathbf{ 2100}</math>||<math> 29</math>||<math> 281</math>||<math> 757</math>||<math> 1459</math>||<math> 1847</math>||<math> 2503</math>
+
 
|-
+
Łatwo otrzymujemy
| style="background:#ffd890;"|<math>\mathbf{ 2130}</math>||<math> 3677</math>||<math> 5077</math>||<math> 11699</math>||<math> 17159</math>||<math> 21149</math>||<math> 31159</math>
+
 
|-
+
::<math>x = {\small\frac{1}{2}} (2 l s + f r)</math>
| style="background:#ffd890;"|<math>\mathbf{ 2160}</math>||<math> 5849</math>||<math> 6619</math>||<math> 24329</math>||<math> 43019</math>||<math> 114419</math>||<math> 126823</math>
+
 
|-
+
::<math>y = {\small\frac{1}{2 n}} (2 l r - n f s)</math>
| style="background:#ffd890;"|<math>\mathbf{ 2190}</math>||<math> 643</math>||<math> 4283</math>||<math> 4339</math>||<math> 23743</math>||<math> 24821</math>||<math> 30211</math>
+
 
|-
+
Ostatecznie
| style="background:#ffd890;"|<math>\mathbf{ 2220}</math>||<math> 4229</math>||<math> 11243</math>||<math> 11467</math>||<math> 12503</math>||<math> 13693</math>||<math> 26209</math>
+
 
|-
+
::<math>Q = x^2 + n y^2</math>
| style="background:#ffd890;"|<math>\mathbf{ 2250}</math>||<math> 4721</math>||<math> 6359</math>||<math> 17321</math>||<math> 19477</math>||<math> 21661</math>||<math> 23117</math>
+
 
|-
+
::<math>\;\;\;\: = \left[ {\small\frac{1}{2}} (2 l s + f r) \right]^2 + n \left[ {\small\frac{1}{2 n}} (2 l r - n f s) \right]^2</math>
| style="background:#ffd890;"|<math>\mathbf{ 2280}</math>||<math> 719</math>||<math> 2399</math>||<math> 15797</math>||<math> 22391</math>||<math> 23189</math>||<math> 27809</math>
+
 
|-
+
::<math>\;\;\;\: = {\small\frac{1}{4 n}} [n (2 l s + f r)^2 + (2 l r - n f s)^2]</math>
| style="background:#ffd890;"|<math>\mathbf{ 2310}</math>||<math> 37</math>||<math> 71</math>||<math> 83</math>||<math> 547</math>||<math> 661</math>||<math> 859</math>
+
 
|-
+
::<math>\;\;\;\: = {\small\frac{1}{4 n}} [n (2 l s)^2 + n (f r)^2 + (2 l r)^2 + (n f s)^2]</math>
| style="background:#ffd890;"|<math>\mathbf{ 2340}</math>||<math> 107</math>||<math> 4363</math>||<math> 5483</math>||<math> 9613</math>||<math> 12413</math>||<math> 14737</math>
+
 
|-
+
::<math>\;\;\;\: = {\small\frac{1}{4 n}} [(2 l)^2 + n f^2] (r^2 + n s^2)</math>
| style="background:#ffd890;"|<math>\mathbf{ 2370}</math>||<math> 1187</math>||<math> 1831</math>||<math> 4211</math>||<math> 7963</math>||<math> 9419</math>||<math> 15607</math>
 
|-
 
| style="background:#ffd890;"|<math>\mathbf{ 2400}</math>||<math> 503</math>||<math> 853</math>||<math> 4787</math>||<math> 15091</math>||<math> 20327</math>||<math> 23603</math>
 
|-
 
| style="background:#ffd890;"|<math>\mathbf{ 2430}</math>||<math> 13217</math>||<math> 31039</math>||<math> 38851</math>||<math> 43261</math>||<math> 46747</math>||<math> 67481</math>
 
|-
 
| style="background:#ffd890;"|<math>\mathbf{ 2460}</math>||<math> 227</math>||<math> 1459</math>||<math> 6779</math>||<math> 6863</math>||<math> 18553</math>||<math> 29207</math>
 
|-
 
| style="background:#ffd890;"|<math>\mathbf{ 2490}</math>||<math> 1237</math>||<math> 7621</math>||<math> 14411</math>||<math> 19801</math>||<math> 46457</math>||<math> 55921</math>
 
|-
 
| style="background:#ffd890;"|<math>\mathbf{ 2520}</math>||<math> 113</math>||<math> 709</math>||<math> 1013</math>||<math> 1181</math>||<math> 1303</math>||<math> 1409</math>
 
|-
 
| style="background:#ffd890;"|<math>\mathbf{ 2550}</math>||<math> 1871</math>||<math> 9403</math>||<math> 33203</math>||<math> 36241</math>||<math> 70009</math>||<math> 74587</math>
 
|-
 
| style="background:#ffd890;"|<math>\mathbf{ 2580}</math>||<math> 277</math>||<math> 6101</math>||<math> 29383</math>||<math> 35851</math>||<math> 55871</math>||<math> 61723</math>
 
|-
 
| style="background:#ffd890;"|<math>\mathbf{ 2610}</math>||<math> 5179</math>||<math> 8539</math>||<math> 8861</math>||<math> 10093</math>||<math> 15679</math>||<math> 17989</math>
 
|-
 
| style="background:#ffd890;"|<math>\mathbf{ 2640}</math>||<math> 9283</math>||<math> 10781</math>||<math> 12377</math>||<math> 12433</math>||<math> 13679</math>||<math> 22751</math>
 
|-
 
| style="background:#ffd890;"|<math>\mathbf{ 2670}</math>||<math> 1039</math>||<math> 4133</math>||<math> 12589</math>||<math> 14731</math>||<math> 16411</math>||<math> 23789</math>
 
|-
 
| style="background:#ffd890;"|<math>\mathbf{ 2700}</math>||<math> 8629</math>||<math> 10267</math>||<math> 16217</math>||<math> 17477</math>||<math> 18149</math>||<math> 19843</math>
 
|-
 
| style="background:#ffd890;"|<math>\mathbf{ 2730}</math>||<math> 19</math>||<math> 631</math>||<math> 761</math>||<math> 811</math>||<math> 1091</math>||<math> 1423</math>
 
|-
 
| style="background:#ffd890;"|<math>\mathbf{ 2760}</math>||<math> 7</math>||<math> 2473</math>||<math> 2767</math>||<math> 9137</math>||<math> 9403</math>||<math> 9767</math>
 
|-
 
| style="background:#ffd890;"|<math>\mathbf{ 2790}</math>||<math> 6899</math>||<math> 15733</math>||<math> 20353</math>||<math> 20899</math>||<math> 23447</math>||<math> 29201</math>
 
|-
 
| style="background:#ffd890;"|<math>\mathbf{ 2820}</math>||<math> 727</math>||<math> 1259</math>||<math> 3023</math>||<math> 7951</math>||<math> 17989</math>||<math> 20201</math>
 
|-
 
| style="background:#ffd890;"|<math>\mathbf{ 2850}</math>||<math> 379</math>||<math> 463</math>||<math> 2843</math>||<math> 4831</math>||<math> 9661</math>||<math> 10067</math>
 
|-
 
| style="background:#ffd890;"|<math>\mathbf{ 2880}</math>||<math> 1459</math>||<math> 2803</math>||<math> 4973</math>||<math> 7283</math>||<math> 8543</math>||<math> 12281</math>
 
|-
 
| style="background:#ffd890;"|<math>\mathbf{ 2910}</math>||<math> 397</math>||<math> 12409</math>||<math> 19087</math>||<math> 25121</math>||<math> 37441</math>||<math> 41081</math>
 
|-
 
| style="background:#ffd890;"|<math>\mathbf{ 2940}</math>||<math> 17</math>||<math> 383</math>||<math> 691</math>||<math> 983</math>||<math> 2393</math>||<math> 2797</math>
 
|-
 
| style="background:#ffd890;"|<math>\mathbf{ 2970}</math>||<math> 1031</math>||<math> 2879</math>||<math> 3593</math>||<math> 5147</math>||<math> 6029</math>||<math> 6673</math>
 
|-
 
| style="background:#ffd890;"|<math>\mathbf{ 3000}</math>||<math> 907</math>||<math> 35543</math>||<math> 45413</math>||<math> 60337</math>||<math> 65713</math>||<math> 89009</math>
 
|}
 
<br/>
 
&#9633;
 
{{\Spoiler}}
 
  
 +
<div style="border: thin solid black; padding-top: 0em; margin-top: 0.5em; padding-bottom: 0em; margin-bottom: 0.5em;">
 +
<math>\boldsymbol{n = 1}</math>
  
 +
::<math>Q = {\small\frac{1}{4}} [(2 l)^2 + f^2] (r^2 + s^2) = \left[ l^2 + \left( {\small\frac{f}{2}} \right)^2 \right] (r^2 + s^2)</math>
  
<span style="font-size: 110%; font-weight: bold;">Przykład C55</span><br/>
+
<math>\boldsymbol{n = 2 , 3}</math>
Tabela zawiera przykładowe ciągi arytmetyczne liczb pierwszych o&nbsp;długości <math>n = 7</math> i <math>n = 8</math>.
 
  
{{Spoiler|Style = font-style: italic; font-weight: bold; color: olive; text-decoration: underline;|Show=Pokaż tabele|Hide=Ukryj tabele}}
+
W zależności od tego, która z&nbsp;liczb <math>l, r</math> jest podzielna przez <math>n</math>, możemy napisać
W przypadku <math>n = 7</math> wyszukiwanie ciągów zostało przeprowadzone dla <math>d = 30 k</math>, gdzie <math>1 \leqslant k \leqslant 100</math> i (przy ustalonym <math>d</math>) dla kolejnych liczb pierwszych <math>p_0 \leqslant 10^8</math>.
+
 
 +
::<math>Q = {\small\frac{1}{4 n}} [(2 l)^2 + n f^2] (r^2 + n s^2) = \left[ {\small\frac{(2 l)^2 + n f^2}{4 n}} \right] (r^2 + n s^2) = \left[ {\small\frac{(2 l)^2 + n f^2}{4}} \right] \left( {\small\frac{r^2 + n s^2}{n}} \right)</math>
 +
</div>
 +
 
 +
Co kończy dowód.<br/>
 +
&#9633;
 +
{{\Spoiler}}
 +
 
 +
 
 +
 
 +
<span style="font-size: 110%; font-weight: bold;">Uwaga K54</span><br/>
 +
Zauważmy, że iloczyn liczb postaci <math>x^2 + n y^2</math> jest liczbą tej samej postaci.
 +
 
 +
::<math>(a^2 + n b^2) (x^2 + n y^2) = (a x + n b y)^2 + n (a y - b x)^2</math>
 +
 
 +
::::::::<math>\;\;\;\:\, = (a x - n b y)^2 + n (a y + b x)^2</math>
  
W przypadku <math>n = 8</math> wyszukiwanie ciągów zostało przeprowadzone dla <math>d = 210 k</math>, gdzie <math>1 \leqslant k \leqslant 100</math> i (przy ustalonym <math>d</math>) dla kolejnych liczb pierwszych <math>p_0 \leqslant 10^8</math>.
 
  
Jeżeli w&nbsp;tabeli jest wypisanych sześć wartości <math>p_0</math>, to oznacza to, że zostało znalezionych co najmniej sześć wartości <math>p_0</math>.
 
  
{| class="wikitable plainlinks"  style="display: inline-table; margin-left: 5px; margin-right: 50px; font-size: 80%; text-align: right;"
+
<span style="font-size: 110%; font-weight: bold;">Twierdzenie K55</span><br/>
|- style="background: #98fb98; text-align: center;"
+
Niech <math>x, y, a, b \in \mathbb{Z}</math> i <math>n \in \{ 1, 2, 3 \}</math>. Jeżeli liczba parzysta <math>Q = x^2 + n y^2</math>, to <math>Q = 2^{\alpha} R</math>, gdzie <math>R = a^2 + n b^2</math> jest liczbą nieparzystą.
| colspan=7 | <math>\mathbf{n = 7}</math>
+
 
|- style="text-align: center;"
+
{{Spoiler|Style = font-style: italic; font-weight: bold; color: olive; text-decoration: underline;|Show=Dowód|Hide=Ukryj dowód}}
| style="background: #ffd890;" | <math>\mathbf{d}</math>
+
W szczególnym przypadku, gdy <math>R = 1</math>, mamy <math>R = 1^2 + n \cdot 0^2</math>.
| colspan=6 | <math>\mathbf{p_0}</math>
+
 
|-
+
Dowód sprowadza się do podania wzorów, które pozwalają obniżyć wykładnik, z&nbsp;jakim liczba <math>2</math> występuje w&nbsp;rozwinięciu na czynniki pierwsze liczby <math>Q</math>. Zauważmy, że wynik jest zawsze liczbą, której postać jest taka sama, jak postać liczby <math>Q</math>. Stosując te wzory odpowiednią ilość razy, otrzymujmy rozkład <math>Q = 2^{\alpha} R</math>, gdzie <math>R</math> jest liczbą nieparzystą postaci <math>a^2 + n b^2</math>.
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 150}</math>||<math> 7</math>||||||||||
+
'''1.''' <math>\boldsymbol{Q = x^2 + y^2}</math>
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 210}</math>||<math> 47</math>||<math> 179</math>||<math> 199</math>||<math> 409</math>||<math> 619</math>||<math> 829</math>
+
a) jeżeli liczby <math>x, y</math> są parzyste, to <math>{\small\frac{Q}{4}} = \left( {\small\frac{x}{2}} \right)^2 + \left( {\small\frac{y}{2}} \right)^2</math>
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 420}</math>||<math> 193</math>||<math> 1619</math>||<math> 2239</math>||<math> 2659</math>||<math> 4259</math>||<math> 5849</math>
+
b) jeżeli liczby <math>x, y</math> są nieparzyste, to <math>{\small\frac{Q}{2}} = \left( {\small\frac{x + y}{2}} \right)^2 + \left( {\small\frac{x - y}{2}} \right)^2</math>
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 630}</math>||<math> 1637</math>||<math> 2267</math>||<math> 5569</math>||<math> 8369</math>||<math> 11003</math>||<math> 11633</math>
+
'''2.''' <math>\boldsymbol{Q = x^2 + 2 y^2}</math>
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 840}</math>||<math> 1061</math>||<math> 1753</math>||<math> 3623</math>||<math> 4493</math>||<math> 5651</math>||<math> 6043</math>
+
a) jeżeli liczby <math>x, y</math> są parzyste, to <math>{\small\frac{Q}{4}} = \left( {\small\frac{x}{2}} \right)^2 + 2 \left( {\small\frac{y}{2}} \right)^2</math>
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 1050}</math>||<math> 53</math>||<math> 3469</math>||<math> 6653</math>||<math> 8629</math>||<math> 8783</math>||<math> 8837</math>
+
b) jeżeli liczba <math>x</math> jest parzysta, a <math>y</math> nieparzysta, to <math>{\small\frac{Q}{2}} = y^2 + 2 \left( {\small\frac{x}{2}} \right)^2</math>
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 1260}</math>||<math> 359</math>||<math> 1931</math>||<math> 2063</math>||<math> 3323</math>||<math> 4583</math>||<math> 13933</math>
+
'''3.''' <math>\boldsymbol{Q = x^2 + 3 y^2}</math>
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 1470}</math>||<math> 1279</math>||<math> 2393</math>||<math> 2801</math>||<math> 8117</math>||<math> 8191</math>||<math> 9661</math>
+
a) jeżeli liczby <math>x, y</math> są parzyste, to <math>{\small\frac{Q}{4}} = \left( {\small\frac{x}{2}} \right)^2 + 3 \left( {\small\frac{y}{2}} \right)^2</math>
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 1680}</math>||<math> 1289</math>||<math> 1319</math>||<math> 2683</math>||<math> 2969</math>||<math> 11261</math>||<math> 12941</math>
+
b) jeżeli liczby <math>x, y</math> są nieparzyste i <math>4 \mid (x + y)</math>, to <math>{\small\frac{Q}{4}} = \left( {\small\frac{x - 3 y}{4}} \right)^2 + 3 \left( {\small\frac{x + y}{4}} \right)^2</math>
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 1890}</math>||<math> 1279</math>||<math> 1723</math>||<math> 1811</math>||<math> 1879</math>||<math> 2693</math>||<math> 4583</math>
+
c) jeżeli liczby <math>x, y</math> są nieparzyste i <math>4 \mid (x - y)</math>, to <math>{\small\frac{Q}{4}} = \left( {\small\frac{x + 3 y}{4}} \right)^2 + 3 \left( {\small\frac{x - y}{4}} \right)^2</math>
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 2100}</math>||<math> 1847</math>||<math> 3947</math>||<math> 26497</math>||<math> 34913</math>||<math> 35771</math>||<math> 36187</math>
+
Co należało pokazać.<br/>
|-
+
&#9633;
| style="background:#ffd890;"|<math>\mathbf{ 2310}</math>||<math> 71</math>||<math> 547</math>||<math> 1019</math>||<math> 1063</math>||<math> 1367</math>||<math> 1747</math>
+
{{\Spoiler}}
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 2520}</math>||<math> 113</math>||<math> 1181</math>||<math> 1409</math>||<math> 5413</math>||<math> 7109</math>||<math> 7933</math>
+
 
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 2730}</math>||<math> 631</math>||<math> 811</math>||<math> 1091</math>||<math> 2417</math>||<math> 3643</math>||<math> 3821</math>
+
<span style="font-size: 110%; font-weight: bold;">Twierdzenie K56</span><br/>
|-
+
Liczba pierwsza <math>p \geqslant 3</math> jest postaci
| style="background:#ffd890;"|<math>\mathbf{ 2760}</math>||<math> 7</math>||||||||||
+
 
|-
+
:(a)&nbsp;&nbsp;<math>4 k + 1</math>
| style="background:#ffd890;"|<math>\mathbf{ 2940}</math>||<math> 17</math>||<math> 6317</math>||<math> 6911</math>||<math> 9433</math>||<math> 11927</math>||<math> 12373</math>
+
 
|}
+
:(b)&nbsp;&nbsp;<math>8 k + 1 \,</math> lub <math>\: 8 k + 3</math>
{| class="wikitable plainlinks"  style="display: inline-table; margin-left: 5px; margin-right: 50px; font-size: 80%; text-align: right;"
+
 
|- style="background: #98fb98; text-align: center;"
+
:(c)&nbsp;&nbsp;<math>6 k + 1</math>
| colspan=7 | <math>\mathbf{n = 8}</math>
+
 
|- style="text-align: center;"
+
wtedy i&nbsp;tylko wtedy, gdy istnieje dokładnie jedna para liczb całkowitych dodatnich <math>x, y</math>, że
| style="background: #ffd890;" | <math>\mathbf{d}</math>
+
 
| colspan=6 | <math>\mathbf{p_0}</math>
+
:(a)&nbsp;&nbsp;<math>p = x^2 + y^2</math>
|-
+
 
|-
+
:(b)&nbsp;&nbsp;<math>p = x^2 + 2 y^2</math>
| style="background:#ffd890;"|<math>\mathbf{ 210}</math>||<math> 199</math>||<math> 409</math>||<math> 619</math>||<math> 881</math>||<math> 3499</math>||<math> 3709</math>
+
 
|-
+
:(c)&nbsp;&nbsp;<math>p = x^2 + 3 y^2</math>
| style="background:#ffd890;"|<math>\mathbf{ 420}</math>||<math> 2239</math>||<math> 10243</math>||<math> 18493</math>||<math> 29297</math>||<math> 39199</math>||<math> 40343</math>
+
 
|-
+
{{Spoiler|Style = font-style: italic; font-weight: bold; color: olive; text-decoration: underline;|Show=Dowód|Hide=Ukryj dowód}}
| style="background:#ffd890;"|<math>\mathbf{ 630}</math>||<math> 1637</math>||<math> 11003</math>||<math> 38693</math>||<math> 53161</math>||<math> 56477</math>||<math> 198971</math>
+
 
|-
+
<math>\Large{\Longleftarrow}</math>
| style="background:#ffd890;"|<math>\mathbf{ 840}</math>||<math> 6043</math>||<math> 6883</math>||<math> 10861</math>||<math> 11701</math>||<math> 84521</math>||<math> 103837</math>
+
 
|-
+
Niech <math>n = 1, 2, 3</math>. Z&nbsp;założenia liczba pierwsza <math>p \geqslant 3</math> może być przedstawiona w&nbsp;postaci <math>p = x_0^2 + n y_0^2</math>, gdzie <math>x_0, y_0</math> są liczbami takimi, że <math>1 \leqslant x_0, y_0 < p</math>. Zatem <math>p \nmid x_0</math> i <math>p \nmid y_0</math>, a&nbsp;rozpatrując równanie <math>p = x_0^2 + n y_0^2</math> modulo <math>p</math> dostajemy
| style="background:#ffd890;"|<math>\mathbf{ 1050}</math>||<math> 8837</math>||<math> 41507</math>||<math> 246289</math>||<math> 302273</math>||<math> 382727</math>||<math> 499679</math>
+
 
|-
+
::<math>x_0^2 + n y_0^2 \equiv 0 \!\! \pmod{p}</math>
| style="background:#ffd890;"|<math>\mathbf{ 1260}</math>||<math> 2063</math>||<math> 3323</math>||<math> 87511</math>||<math> 145949</math>||<math> 208099</math>||<math> 213247</math>
+
 
|-
+
Zauważmy, że liczba <math>x_0</math> jest rozwiązaniem kongruencji
| style="background:#ffd890;"|<math>\mathbf{ 1470}</math>||<math> 8191</math>||<math> 15289</math>||<math> 101027</math>||<math> 102497</math>||<math> 187931</math>||<math> 227399</math>
+
 
|-
+
::<math>x^2 \equiv - n y_0^2 \!\! \pmod{p}</math>
| style="background:#ffd890;"|<math>\mathbf{ 1680}</math>||<math> 1289</math>||<math> 11261</math>||<math> 31333</math>||<math> 33013</math>||<math> 133919</math>||<math> 193283</math>
+
 
|-
+
Wynika stąd, że liczba <math>- n y_0^2</math> jest liczbą kwadratową modulo <math>p</math>. Zatem
| style="background:#ffd890;"|<math>\mathbf{ 1890}</math>||<math> 2693</math>||<math> 15493</math>||<math> 15607</math>||<math> 17497</math>||<math> 45767</math>||<math> 47657</math>
+
 
|-
+
<div style="margin-top: 1em; margin-bottom: 1em;">
| style="background:#ffd890;"|<math>\mathbf{ 2100}</math>||<math> 1847</math>||<math> 34913</math>||<math> 37013</math>||<math> 39113</math>||<math> 83311</math>||<math> 102871</math>
+
::<math>\left( {\small\frac{- n y_0^2}{p}} \right)_{\small{\!\! J}} = \left( {\small\frac{- n}{p}} \right)_{\small{\!\! J}} \cdot \left( {\small\frac{y_0^2}{p}} \right)_{\small{\!\! J}} = \left( {\small\frac{- n}{p}} \right)_{\small{\!\! J}} = 1</math>
|-
+
</div>
| style="background:#ffd890;"|<math>\mathbf{ 2310}</math>||<math> 1019</math>||<math> 3823</math>||<math> 5557</math>||<math> 6133</math>||<math> 7853</math>||<math> 9941</math>
+
 
|-
+
Z twierdzenia J41 i&nbsp;zadania J45 otrzymujemy natychmiast
| style="background:#ffd890;"|<math>\mathbf{ 2520}</math>||<math> 5413</math>||<math> 7109</math>||<math> 19141</math>||<math> 21661</math>||<math> 23509</math>||<math> 24763</math>
+
 
|-
+
:(a) jeżeli <math>\left( {\small\frac{- 1}{p}} \right)_{\small{\!\! J}} = 1</math>, to liczba pierwsza <math>p</math> musi być postaci <math>4 k + 1</math>
| style="background:#ffd890;"|<math>\mathbf{ 2730}</math>||<math> 1091</math>||<math> 4721</math>||<math> 7451</math>||<math> 22079</math>||<math> 49339</math>||<math> 53759</math>
+
 
|-
+
:(b) jeżeli <math>\left( {\small\frac{- 2}{p}} \right)_{\small{\!\! J}} = 1</math>, to liczba pierwsza <math>p</math> musi być postaci <math>8 k + 1</math> lub <math>8 k + 3</math>
| style="background:#ffd890;"|<math>\mathbf{ 2940}</math>||<math> 9433</math>||<math> 11927</math>||<math> 14867</math>||<math> 50587</math>||<math> 80933</math>||<math> 127207</math>
+
 
|-
+
:(c) jeżeli <math>\left( {\small\frac{- 3}{p}} \right)_{\small{\!\! J}} = 1</math>, to liczba pierwsza <math>p</math> musi być postaci <math>6 k + 1</math>
| style="background:#ffd890;"|<math>\mathbf{ 3150}</math>||<math> 433</math>||<math> 3583</math>||<math> 7877</math>||<math> 24677</math>||<math> 27827</math>||<math> 49031</math>
+
 
|-
+
Co należało pokazać.
| style="background:#ffd890;"|<math>\mathbf{ 3360}</math>||<math> 6571</math>||<math> 9041</math>||<math> 39791</math>||<math> 210391</math>||<math> 213751</math>||<math> 217111</math>
+
 
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 3570}</math>||<math> 8971</math>||<math> 10429</math>||<math> 27737</math>||<math> 28387</math>||<math> 37313</math>||<math> 57047</math>
+
<math>\Large{\Longrightarrow}</math>
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 3780}</math>||<math> 45767</math>||<math> 82037</math>||<math> 155569</math>||<math> 473513</math>||<math> 477293</math>||<math> 511873</math>
+
'''A. Istnienie rozwiązania kongruencji''' <math>\boldsymbol{x^2 + n y^2 \equiv 0 \!\! \pmod{p}}</math>
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 3990}</math>||<math> 1699</math>||<math> 2909</math>||<math> 5689</math>||<math> 25033</math>||<math> 29873</math>||<math> 40559</math>
+
Z założenia liczba pierwsza <math>p \geqslant 3</math> jest postaci
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 4200}</math>||<math> 12547</math>||<math> 16747</math>||<math> 37013</math>||<math> 57139</math>||<math> 89899</math>||<math> 94099</math>
+
:(a)&nbsp;&nbsp;<math>4 k + 1</math>
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 4410}</math>||<math> 20809</math>||<math> 87623</math>||<math> 142271</math>||<math> 262733</math>||<math> 267143</math>||<math> 439009</math>
+
:(b)&nbsp;&nbsp;<math>8 k + 1 \,</math> lub <math>\: 8 k + 3</math>
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 4620}</math>||<math> 103</math>||<math> 1531</math>||<math> 3083</math>||<math> 3257</math>||<math> 6427</math>||<math> 9461</math>
+
:(c)&nbsp;&nbsp;<math>6 k + 1</math>
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 4830}</math>||<math> 3907</math>||<math> 13313</math>||<math> 30427</math>||<math> 35257</math>||<math> 40087</math>||<math> 72547</math>
+
Wynika stąd, że dla (a) <math>n = 1</math>, (b) <math>n = 2</math>, (c) <math>n = 3</math> mamy
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 5040}</math>||<math> 13477</math>||<math> 14951</math>||<math> 25073</math>||<math> 25931</math>||<math> 30113</math>||<math> 57457</math>
+
::<math>\left( {\small\frac{- n}{p}} \right)_{\small{\!\! J}} = 1</math>
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 5250}</math>||<math> 3413</math>||<math> 8663</math>||<math> 44179</math>||<math> 49429</math>||<math> 111109</math>||<math> 648107</math>
+
(zobacz J41 i&nbsp;J45) i&nbsp;liczba <math>- n</math> jest liczbą kwadratową modulo <math>p</math>. Zatem kongruencja
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 5460}</math>||<math> 1559</math>||<math> 18899</math>||<math> 36389</math>||<math> 43711</math>||<math> 59393</math>||<math> 75541</math>
+
::<math>x^2 \equiv - n \!\! \pmod{p}</math>
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 5670}</math>||<math> 187477</math>||<math> 231109</math>||<math> 402137</math>||<math> 680123</math>||<math> 706463</math>||<math> 712133</math>
+
ma rozwiązanie, czyli istnieje taka liczba <math>k</math>, że
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 5880}</math>||<math> 73</math>||<math> 29959</math>||<math> 152389</math>||<math> 158269</math>||<math> 317021</math>||<math> 2115961</math>
+
::<math>k^2 + n \equiv 0 \!\! \pmod{p}</math>
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 6090}</math>||<math> 12239</math>||<math> 22469</math>||<math> 38543</math>||<math> 50893</math>||<math> 72533</math>||<math> 90863</math>
+
Zauważmy, że liczby <math>x_0 = k</math> i <math>y_0 = 1</math> są szczególnymi przypadkami rozwiązania kongruencji
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 6300}</math>||<math> 37097</math>||<math> 86869</math>||<math> 92639</math>||<math> 224633</math>||<math> 440269</math>||<math> 641327</math>
+
::<math>x^2 + n y^2 \equiv 0 \!\! \pmod{p}</math>
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 6510}</math>||<math> 1063</math>||<math> 20599</math>||<math> 21701</math>||<math> 27109</math>||<math> 41611</math>||<math> 46187</math>
+
W przypadku (a), korzystając z&nbsp;twierdzenia Wilsona (zobacz J18), liczbę <math>x_0</math> możemy jawnie wypisać: <math>x_0 = \left( {\small\frac{p - 1}{2}} \right) !</math>
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 6720}</math>||<math> 3167</math>||<math> 7457</math>||<math> 22669</math>||<math> 62347</math>||<math> 69067</math>||<math> 75787</math>
+
 
|-
+
'''B. Zmniejszenie rozwiązania początkowego'''
| style="background:#ffd890;"|<math>\mathbf{ 6930}</math>||<math> 17</math>||<math> 5581</math>||<math> 6947</math>||<math> 7151</math>||<math> 13469</math>||<math> 14081</math>
+
 
|-
+
Niech liczby <math>x_0, y_0</math> takie, że <math>p \nmid x_0 \,</math> i <math>\, p \nmid y_0</math> spełniają kongruencję
| style="background:#ffd890;"|<math>\mathbf{ 7140}</math>||<math> 3347</math>||<math> 53309</math>||<math> 281557</math>||<math> 370879</math>||<math> 380447</math>||<math> 466897</math>
+
 
|-
+
::<math>x_0^2 + n y_0^2 \equiv 0 \!\! \pmod{p}</math>
| style="background:#ffd890;"|<math>\mathbf{ 7350}</math>||<math> 206047</math>||<math> 348163</math>||<math> 363037</math>||<math> 435661</math>||<math> 576677</math>||<math> 906107</math>
+
 
|-
+
Wybierzmy liczby <math>r, s</math> tak, aby były najbliższymi liczbami całkowitymi odpowiednio dla liczb <math>{\small\frac{x_0}{p}} \,</math> i <math>\, {\small\frac{y_0}{p}}</math>. Z&nbsp;definicji mamy
| style="background:#ffd890;"|<math>\mathbf{ 7560}</math>||<math> 29387</math>||<math> 36947</math>||<math> 39191</math>||<math> 44267</math>||<math> 342389</math>||<math> 349949</math>
+
 
|-
+
::<math>\left| {\small\frac{x_0}{p}} - r \right| \leqslant {\small\frac{1}{2}} \qquad \qquad \text{i} \qquad \qquad \left| {\small\frac{y_0}{p}} - s \right| \leqslant {\small\frac{1}{2}}</math>
| style="background:#ffd890;"|<math>\mathbf{ 7770}</math>||<math> 6553</math>||<math> 14323</math>||<math> 25169</math>||<math> 28549</math>||<math> 36319</math>||<math> 42061</math>
+
 
|-
+
Zatem
| style="background:#ffd890;"|<math>\mathbf{ 7980}</math>||<math> 137</math>||<math> 4091</math>||<math> 7237</math>||<math> 8117</math>||<math> 12071</math>||<math> 24029</math>
+
 
|-
+
::<math>| x_0 - r p | \leqslant {\small\frac{p}{2}} \qquad \qquad \text{i} \qquad \qquad | y_0 - s p | \leqslant {\small\frac{p}{2}}</math>
| style="background:#ffd890;"|<math>\mathbf{ 8190}</math>||<math> 3593</math>||<math> 21017</math>||<math> 35591</math>||<math> 43781</math>||<math> 49727</math>||<math> 59021</math>
+
 
|-
+
Ponieważ liczby po lewej stronie nierówności są liczbami całkowitymi, to nigdy nie będą równe liczbie <math>{\small\frac{p}{2}}</math>, gdzie <math>p</math> jest liczbą nieparzystą. Pozwala to wzmocnić wypisane nierówności.
| style="background:#ffd890;"|<math>\mathbf{ 8400}</math>||<math> 86599</math>||<math> 173909</math>||<math> 788413</math>||<math> 1251869</math>||<math> 1365019</math>||<math> 1392731</math>
+
 
|-
+
::<math>| x_0 - r p | < {\small\frac{p}{2}} \qquad \qquad \text{i} \qquad \qquad | y_0 - s p | < {\small\frac{p}{2}}</math>
| style="background:#ffd890;"|<math>\mathbf{ 8610}</math>||<math> 541</math>||<math> 1867</math>||<math> 63703</math>||<math> 132283</math>||<math> 140893</math>||<math> 175837</math>
+
 
|-
+
Wynika stąd, że dla dowolnego rozwiązania początkowego <math>x_0, y_0</math> możemy wybrać liczby
| style="background:#ffd890;"|<math>\mathbf{ 8820}</math>||<math> 9403</math>||<math> 83563</math>||<math> 84421</math>||<math> 93241</math>||<math> 187823</math>||<math> 296983</math>
+
 
|-
+
::<math>x = x_0 - r p \qquad \qquad \text{i} \qquad \qquad y = y_0 - s p</math>
| style="background:#ffd890;"|<math>\mathbf{ 9030}</math>||<math> 11087</math>||<math> 195203</math>||<math> 219799</math>||<math> 352813</math>||<math> 426973</math>||<math> 487651</math>
+
 
|-
+
takie, że <math>p \nmid x</math> oraz <math>p \nmid y</math> i&nbsp;dla których
| style="background:#ffd890;"|<math>\mathbf{ 9240}</math>||<math> 199</math>||<math> 937</math>||<math> 10177</math>||<math> 21031</math>||<math> 27961</math>||<math> 30271</math>
+
 
|-
+
::<math>0 < x^2 + n y^2 < \left( {\small\frac{p}{2}} \right)^2 + n \left( {\small\frac{p}{2}} \right)^2 = {\small\frac{(n + 1) p}{4}} \cdot p</math>
| style="background:#ffd890;"|<math>\mathbf{ 9450}</math>||<math> 1609</math>||<math> 157181</math>||<math> 182867</math>||<math> 663049</math>||<math> 1028479</math>||<math> 1037929</math>
+
 
|-
+
Ponieważ modulo <math>p</math> jest <math>x \equiv x_0 \,</math> i <math>\, y \equiv y_0</math>, to liczby <math>x, y</math> spełniają kongruencję
| style="background:#ffd890;"|<math>\mathbf{ 9660}</math>||<math> 521</math>||<math> 3449</math>||<math> 10181</math>||<math> 50417</math>||<math> 84229</math>||<math> 218363</math>
+
 
|-
+
::<math>x^2 + n y^2 \equiv 0 \!\! \pmod{p}</math>
| style="background:#ffd890;"|<math>\mathbf{ 9870}</math>||<math> 61</math>||<math> 43013</math>||<math> 89923</math>||<math> 220333</math>||<math> 294479</math>||<math> 490493</math>
+
 
|-
+
Zatem wynikające z&nbsp;powyższej kongruencji równanie
| style="background:#ffd890;"|<math>\mathbf{ 10080}</math>||<math> 6949</math>||<math> 17029</math>||<math> 54293</math>||<math> 99023</math>||<math> 125353</math>||<math> 125899</math>
+
 
|-
+
::<math>x^2 + n y^2 = m p</math>
| style="background:#ffd890;"|<math>\mathbf{ 10290}</math>||<math> 6143</math>||<math> 16433</math>||<math> 179057</math>||<math> 211777</math>||<math> 681949</math>||<math> 1018357</math>
+
 
|-
+
ma rozwiązanie dla liczb
| style="background:#ffd890;"|<math>\mathbf{ 10500}</math>||<math> 9109</math>||<math> 91153</math>||<math> 218527</math>||<math> 447817</math>||<math> 513167</math>||<math> 1113239</math>
+
 
|-
+
::<math>| x | < {\small\frac{p}{2}} , \qquad \qquad | y | < {\small\frac{p}{2}}, \qquad \qquad 1 \leqslant m < {\small\frac{(n + 1) p}{4}}</math>
| style="background:#ffd890;"|<math>\mathbf{ 10710}</math>||<math> 9419</math>||<math> 28603</math>||<math> 28871</math>||<math> 37861</math>||<math> 43691</math>||<math> 75041</math>
+
 
|-
+
Pomysł ze zmniejszaniem liczb stanowiących rozwiązanie za chwilę wykorzystamy ponownie i&nbsp;będzie to istotny element dowodu.
| style="background:#ffd890;"|<math>\mathbf{ 10920}</math>||<math> 14657</math>||<math> 21491</math>||<math> 52321</math>||<math> 63241</math>||<math> 79997</math>||<math> 80621</math>
+
 
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 11130}</math>||<math> 49681</math>||<math> 70607</math>||<math> 187009</math>||<math> 198139</math>||<math> 209269</math>||<math> 219613</math>
+
'''C. Metoda nieskończonego schodzenia Fermata'''<ref name="InfiniteDescent1"/><ref name="Bussey1"/>
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 11340}</math>||<math> 24197</math>||<math> 57143</math>||<math> 68483</math>||<math> 158617</math>||<math> 212297</math>||<math> 237257</math>
+
Pomysł dowodu został zaczerpnięty z&nbsp;książki Hardy'ego i&nbsp;Wrighta<ref name="HardyWright1"/>.
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 11550}</math>||<math> 4483</math>||<math> 4673</math>||<math> 9619</math>||<math> 16223</math>||<math> 21169</math>||<math> 66161</math>
+
Jeżeli w&nbsp;rozwiązaniu <math>m = 1</math>, to <math>p = x^2 + n y^2</math> i&nbsp;twierdzenie jest udowodnione. W&nbsp;przypadku gdy <math>m > 1</math> wskażemy sposób postępowania, który pozwoli nam z&nbsp;istniejącego rozwiązania równania
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 11760}</math>||<math> 3511</math>||<math> 241793</math>||<math> 469613</math>||<math> 517949</math>||<math> 548263</math>||<math> 643469</math>
+
::<math>x^2 + n y^2 = m p</math>
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 11970}</math>||<math> 6221</math>||<math> 10531</math>||<math> 22501</math>||<math> 40343</math>||<math> 216233</math>||<math> 280187</math>
+
otrzymać nowe rozwiązanie tej samej postaci
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 12180}</math>||<math> 18211</math>||<math> 65437</math>||<math> 126943</math>||<math> 137239</math>||<math> 149939</math>||<math> 361213</math>
+
::<math>x_1^2 + n y_1^2 = m_1 p</math>
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 12390}</math>||<math> 7477</math>||<math> 24391</math>||<math> 41669</math>||<math> 76913</math>||<math> 95213</math>||<math> 181211</math>
+
takie, że <math>1 \leqslant m_1 < m</math>. Powtarzając tę procedurę odpowiednią ilość razy, otrzymamy rozwiązanie <math>x_k, y_k, m_k</math>, gdzie <math>m_k = 1</math>. Istnienie takiej procedury stanowi dowód prawdziwości twierdzenia.
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 12600}</math>||<math> 26003</math>||<math> 435577</math>||<math> 448177</math>||<math> 558431</math>||<math> 571031</math>||<math> 583631</math>
+
Zauważmy, że podział na parzyste i&nbsp;nieparzyste liczby <math>m</math> jest konieczny tylko w&nbsp;przypadku gdy <math>n = 3</math>. W&nbsp;pozostałych przypadkach nie musimy wzmacniać nierówności, aby prawdziwe było oszacowanie <math>1 \leqslant m_1 < m</math>.
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 12810}</math>||<math> 19289</math>||<math> 35437</math>||<math> 40949</math>||<math> 53791</math>||<math> 59357</math>||<math> 94309</math>
+
'''Przypadek, gdy''' <math>\boldsymbol{m > 1}</math> '''jest liczbą parzystą'''
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 13020}</math>||<math> 15913</math>||<math> 55843</math>||<math> 77773</math>||<math> 179519</math>||<math> 418927</math>||<math> 670853</math>
+
Jeżeli <math>m > 1</math> jest liczbą parzystą, to z&nbsp;twierdzenia K55 wiemy, że liczba <math>x^2 + n y^2</math> może być zapisana w&nbsp;postaci
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 13230}</math>||<math> 5843</math>||<math> 7433</math>||<math> 9391</math>||<math> 31729</math>||<math> 40543</math>||<math> 53773</math>
+
::<math>x^2 + n y^2 = 2^{\alpha} (x^2_1 + n y^2_1)</math>
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 13440}</math>||<math> 2141</math>||<math> 15581</math>||<math> 270143</math>||<math> 335021</math>||<math> 405269</math>||<math> 448741</math>
+
gdzie <math>x^2_1 + n y^2_1</math> jest liczbą nieparzystą. Wystarczy położyć <math>m_1 = {\small\frac{m}{2^{\alpha}}}</math>, aby z&nbsp;istniejącego rozwiązania otrzymać nowe rozwiązanie tej samej postaci
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 13650}</math>||<math> 3343</math>||<math> 12097</math>||<math> 16993</math>||<math> 19259</math>||<math> 63611</math>||<math> 81001</math>
+
::<math>x_1^2 + n y_1^2 = m_1 p</math>
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 13860}</math>||<math> 6029</math>||<math> 6211</math>||<math> 26171</math>||<math> 27653</math>||<math> 32441</math>||<math> 51839</math>
+
gdzie <math>m_1</math> jest liczbą nieparzystą i <math>1 \leqslant m_1 < m</math>.
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 14070}</math>||<math> 40879</math>||<math> 87793</math>||<math> 87991</math>||<math> 159491</math>||<math> 285497</math>||<math> 485389</math>
+
'''Przypadek, gdy''' <math>\boldsymbol{m > 1}</math> '''jest liczbą nieparzystą'''
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 14280}</math>||<math> 6947</math>||<math> 15923</math>||<math> 27337</math>||<math> 79481</math>||<math> 111227</math>||<math> 364687</math>
+
Niech liczby <math>r, s</math> będą liczbami całkowitymi najbliższymi liczbom <math>{\small\frac{x}{m}} \,</math> i <math>\, {\small\frac{y}{m}}</math>. Z&nbsp;definicji mamy
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 14490}</math>||<math> 41039</math>||<math> 48491</math>||<math> 142049</math>||<math> 144667</math>||<math> 159157</math>||<math> 161263</math>
+
::<math>\left| {\small\frac{x}{m}} - r \right| \leqslant {\small\frac{1}{2}} \qquad \qquad \text{i} \qquad \qquad \left| {\small\frac{y}{m}} - s \right| \leqslant {\small\frac{1}{2}}</math>
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 14700}</math>||<math> 12409</math>||<math> 36583</math>||<math> 51283</math>||<math> 161363</math>||<math> 218989</math>||<math> 578267</math>
+
Zatem
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 14910}</math>||<math> 23957</math>||<math> 74161</math>||<math> 79633</math>||<math> 89071</math>||<math> 109367</math>||<math> 120977</math>
+
::<math>| x - r m | \leqslant {\small\frac{m}{2}} \qquad \qquad \text{i} \qquad \qquad | y - s m | \leqslant {\small\frac{m}{2}}</math>
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 15120}</math>||<math> 33997</math>||<math> 121853</math>||<math> 136973</math>||<math> 203429</math>||<math> 330413</math>||<math> 379369</math>
+
Ponieważ liczby po lewej stronie nierówności są liczbami całkowitymi, to nigdy nie będą równe liczbie <math>{\small\frac{m}{2}}</math>, gdzie <math>m</math> jest liczbą nieparzystą. Pozwala to wzmocnić wypisane nierówności.
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 15330}</math>||<math> 12781</math>||<math> 64613</math>||<math> 505559</math>||<math> 588529</math>||<math> 614071</math>||<math> 873121</math>
+
::<math>| x - r m | < {\small\frac{m}{2}} \qquad \qquad \text{i} \qquad \qquad | y - s m | < {\small\frac{m}{2}}</math>
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 15540}</math>||<math> 15053</math>||<math> 33071</math>||<math> 41131</math>||<math> 160781</math>||<math> 176321</math>||<math> 209357</math>
+
Połóżmy
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 15750}</math>||<math> 7001</math>||<math> 10459</math>||<math> 64579</math>||<math> 80329</math>||<math> 103409</math>||<math> 119159</math>
+
::<math>a = x - r m \qquad \qquad \text{i} \qquad \qquad b = y - s m</math>
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 15960}</math>||<math> 1847</math>||<math> 6037</math>||<math> 17807</math>||<math> 21997</math>||<math> 33767</math>||<math> 71917</math>
+
Zauważmy, że liczba <math>m</math> nie może jednocześnie dzielić liczb <math>x</math> i <math>y</math>, bo mielibyśmy <math>m^2 \mid (x^2 + n y^2)</math>, czyli <math>m \mid p</math>, co jest niemożliwe. Zatem przynajmniej jedna z&nbsp;liczb <math>a, b</math> musi być różna od <math>0</math>.
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 16170}</math>||<math> 32321</math>||<math> 66179</math>||<math> 82349</math>||<math> 99661</math>||<math> 130343</math>||<math> 219451</math>
+
Rozpatrując równanie <math>x^2 + n y^2 = m p</math> modulo <math>m</math> i&nbsp;uwzględniając, że
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 16380}</math>||<math> 22859</math>||<math> 28579</math>||<math> 43759</math>||<math> 43913</math>||<math> 60139</math>||<math> 95107</math>
+
::<math>x \equiv a \!\! \pmod{m}</math>
|-
 
| style="background:#ffd890;"|<math>\mathbf{ 16590}</math>||<math> 6703</math>||<math> 23293</math>||<math> 29009</math>||<math> 45599</math>||<math> 51341</math>||<math> 57917</math>
 
|-
 
| style="background:#ffd890;"|<math>\mathbf{ 16800}</math>||<math> 91463</math>||<math> 276037</math>||<math> 524857</math>||<math> 874063</math>||<math> 940319</math>||<math> 957119</math>
 
|-
 
| style="background:#ffd890;"|<math>\mathbf{ 17010}</math>||<math> 6571</math>||<math> 70529</math>||<math> 117037</math>||<math> 227147</math>||<math> 797119</math>||<math> 814129</math>
 
|-
 
| style="background:#ffd890;"|<math>\mathbf{ 17220}</math>||<math> 120713</math>||<math> 225769</math>||<math> 242989</math>||<math> 343601</math>||<math> 819229</math>||<math> 965711</math>
 
|-
 
| style="background:#ffd890;"|<math>\mathbf{ 17430}</math>||<math> 4219</math>||<math> 6101</math>||<math> 15643</math>||<math> 25471</math>||<math> 33073</math>||<math> 42901</math>
 
|-
 
| style="background:#ffd890;"|<math>\mathbf{ 17640}</math>||<math> 12917</math>||<math> 34877</math>||<math> 59407</math>||<math> 62047</math>||<math> 85667</math>||<math> 193607</math>
 
|-
 
| style="background:#ffd890;"|<math>\mathbf{ 17850}</math>||<math> 9803</math>||<math> 129379</math>||<math> 147229</math>||<math> 238229</math>||<math> 270157</math>||<math> 289253</math>
 
|-
 
| style="background:#ffd890;"|<math>\mathbf{ 18060}</math>||<math> 87613</math>||<math> 90583</math>||<math> 117223</math>||<math> 512671</math>||<math> 574297</math>||<math> 623353</math>
 
|-
 
| style="background:#ffd890;"|<math>\mathbf{ 18270}</math>||<math> 29567</math>||<math> 47837</math>||<math> 86491</math>||<math> 268189</math>||<math> 424819</math>||<math> 511201</math>
 
|-
 
| style="background:#ffd890;"|<math>\mathbf{ 18480}</math>||<math> 1861</math>||<math> 2711</math>||<math> 8093</math>||<math> 10831</math>||<math> 11161</math>||<math> 11909</math>
 
|-
 
| style="background:#ffd890;"|<math>\mathbf{ 18690}</math>||<math> 881</math>||<math> 19571</math>||<math> 79531</math>||<math> 529829</math>||<math> 654767</math>||<math> 812353</math>
 
|-
 
| style="background:#ffd890;"|<math>\mathbf{ 18900}</math>||<math> 6899</math>||<math> 23201</math>||<math> 52267</math>||<math> 73823</math>||<math> 92723</math>||<math> 462079</math>
 
|-
 
| style="background:#ffd890;"|<math>\mathbf{ 19110}</math>||<math> 8941</math>||<math> 30091</math>||<math> 39367</math>||<math> 58603</math>||<math> 63737</math>||<math> 80611</math>
 
|-
 
| style="background:#ffd890;"|<math>\mathbf{ 19320}</math>||<math> 6857</math>||<math> 218761</math>||<math> 236699</math>||<math> 237733</math>||<math> 300319</math>||<math> 300499</math>
 
|-
 
| style="background:#ffd890;"|<math>\mathbf{ 19530}</math>||<math> 33829</math>||<math> 46183</math>||<math> 50929</math>||<math> 70459</math>||<math> 283859</math>||<math> 361651</math>
 
|-
 
| style="background:#ffd890;"|<math>\mathbf{ 19740}</math>||<math> 1117</math>||<math> 2729</math>||<math> 22469</math>||<math> 30757</math>||<math> 50497</math>||<math> 165391</math>
 
|-
 
| style="background:#ffd890;"|<math>\mathbf{ 19950}</math>||<math> 13339</math>||<math> 23767</math>||<math> 44549</math>||<math> 47791</math>||<math> 92399</math>||<math> 142699</math>
 
|-
 
| style="background:#ffd890;"|<math>\mathbf{ 20160}</math>||<math> 2857</math>||<math> 5821</math>||<math> 147089</math>||<math> 948263</math>||<math> 1044859</math>||<math> 1094123</math>
 
|-
 
| style="background:#ffd890;"|<math>\mathbf{ 20370}</math>||<math> 81649</math>||<math> 154073</math>||<math> 164239</math>||<math> 398539</math>||<math> 443881</math>||<math> 556123</math>
 
|-
 
| style="background:#ffd890;"|<math>\mathbf{ 20580}</math>||<math> 9689</math>||<math> 30269</math>||<math> 105379</math>||<math> 316501</math>||<math> 337081</math>||<math> 398023</math>
 
|-
 
| style="background:#ffd890;"|<math>\mathbf{ 20790}</math>||<math> 12713</math>||<math> 20023</math>||<math> 33503</math>||<math> 40813</math>||<math> 69829</math>||<math> 92251</math>
 
|-
 
| style="background:#ffd890;"|<math>\mathbf{ 21000}</math>||<math> 5501</math>||<math> 19471</math>||<math> 26501</math>||<math> 29153</math>||<math> 40471</math>||<math> 56773</math>
 
|}
 
<br/>
 
&#9633;
 
{{\Spoiler}}
 
  
 +
::<math>y \equiv b \!\! \pmod{m}</math>
  
 +
otrzymujemy
  
<span style="font-size: 110%; font-weight: bold;">Przykład C56</span><br/>
+
::<math>a^2 + n b^2 \equiv 0 \pmod{m}</math>
Tabela zawiera przykładowe ciągi arytmetyczne liczb pierwszych o&nbsp;długości <math>n = 9</math> i <math>n = 10</math>.
 
  
{{Spoiler|Style = font-style: italic; font-weight: bold; color: olive; text-decoration: underline;|Show=Pokaż tabele|Hide=Ukryj tabele}}
+
Mamy też oszacowanie
W przypadku <math>n = 9</math> wyszukiwanie ciągów zostało przeprowadzone dla <math>d = 210 k</math>, gdzie <math>1 \leqslant k \leqslant 100</math> i (przy ustalonym <math>d</math>) dla kolejnych liczb pierwszych <math>p_0 \leqslant 10^9</math>.
 
  
W przypadku <math>n = 10</math> wyszukiwanie ciągów zostało przeprowadzone dla <math>d = 210 k</math>, gdzie <math>1 \leqslant k \leqslant 100</math> i (przy ustalonym <math>d</math>) dla kolejnych liczb pierwszych <math>p_0 \leqslant 10^{10}</math>.
+
::<math>0 < a^2 + n b^2 < \left( {\small\frac{m}{2}} \right)^2 + n \cdot \left( {\small\frac{m}{2}} \right)^2 = {\small\frac{(n + 1) m^2}{4}} = {\small\frac{(n + 1) m}{4}} \cdot m</math>
  
Jeżeli w&nbsp;tabeli jest wypisanych sześć wartości <math>p_0</math>, to oznacza to, że zostało znalezionych co najmniej sześć wartości <math>p_0</math>.
+
Wynika stąd, że istnieje taka liczba <math>m_1</math> spełniająca warunek <math>1 \leqslant m_1 < {\small\frac{(n + 1) m}{4}}</math>, że
  
{| class="wikitable plainlinks"  style="display: inline-table; margin-left: 5px; margin-right: 50px; font-size: 80%; text-align: right;"
+
::<math>a^2 + n b^2 = m_1 m</math>
|- style="background: #98fb98; text-align: center;"
+
 
| colspan=7 | <math>\mathbf{n = 9}</math>
+
Mnożąc stronami powyższe równanie i&nbsp;równanie <math>x^2 + n y^2 = m p</math>, otrzymujemy
|- style="text-align: center;"
+
 
| style="background: #ffd890;" | <math>\mathbf{d}</math>
+
::<math>m_1 m^2 p = (a^2 + n b^2) (x^2 + n y^2)</math>
| colspan=6 | <math>\mathbf{p_0}</math>
+
 
|-
+
::::<math>\;\; = (a x + n b y)^2 + n (a y - b x)^2</math>
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 210}</math>||<math> 199</math>||<math> 409</math>||<math> 3499</math>||<math> 10859</math>||<math> 564973</math>||<math> 1288607</math>
+
(zobacz K54). Zauważmy teraz, że
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 420}</math>||<math> 52879</math>||<math> 53299</math>||<math> 56267</math>||<math> 61637</math>||<math> 3212849</math>||<math> 3544939</math>
+
::<math>a x + n b y = (x - r m) x + n (y - s m) y</math>
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 630}</math>||<math> 279857</math>||<math> 514949</math>||<math> 939359</math>||<math> 964417</math>||<math> 965047</math>||<math> 1003819</math>
+
::::<math>\quad \; = x^2 - r m x + n y^2 - n s m y</math>
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 840}</math>||<math> 6043</math>||<math> 10861</math>||<math> 103837</math>||<math> 201781</math>||<math> 915611</math>||<math> 916451</math>
+
::::<math>\quad \; = m (p - r x - n s y)</math>
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 1050}</math>||<math> 26052251</math>||<math> 33267943</math>||<math> 54730813</math>||<math> 87640921</math>||<math> 112704443</math>||<math> 115677517</math>
+
::::<math>\quad \; = m x_1</math>
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 1260}</math>||<math> 2063</math>||<math> 1040089</math>||<math> 2166511</math>||<math> 2202547</math>||<math> 4152847</math>||<math> 4400639</math>
+
 
|-
+
::<math>a y - b x = (x - r m) y - (y - s m) x</math>
| style="background:#ffd890;"|<math>\mathbf{ 1470}</math>||<math> 101027</math>||<math> 363949</math>||<math> 1936289</math>||<math> 2534561</math>||<math> 2536031</math>||<math> 3248197</math>
+
 
|-
+
::::<math>\;\;\, = x y - r m y - y x + s m x</math>
| style="background:#ffd890;"|<math>\mathbf{ 1680}</math>||<math> 31333</math>||<math> 216947</math>||<math> 258527</math>||<math> 316621</math>||<math> 607109</math>||<math> 4635361</math>
+
 
|-
+
::::<math>\;\;\, = m (s x - r y)</math>
| style="background:#ffd890;"|<math>\mathbf{ 1890}</math>||<math> 15607</math>||<math> 45767</math>||<math> 194113</math>||<math> 534211</math>||<math> 997201</math>||<math> 1442173</math>
+
 
|-
+
::::<math>\;\;\, = m y_1</math>
| style="background:#ffd890;"|<math>\mathbf{ 2100}</math>||<math> 34913</math>||<math> 37013</math>||<math> 102871</math>||<math> 176087</math>||<math> 581393</math>||<math> 583493</math>
+
 
|-
+
Gdzie oznaczyliśmy
| style="background:#ffd890;"|<math>\mathbf{ 2310}</math>||<math> 3823</math>||<math> 60317</math>||<math> 80761</math>||<math> 563117</math>||<math> 574813</math>||<math> 1215583</math>
+
 
|-
+
::<math>x_1 = p - r x - n s y</math>
| style="background:#ffd890;"|<math>\mathbf{ 2520}</math>||<math> 19141</math>||<math> 23509</math>||<math> 1058597</math>||<math> 1061117</math>||<math> 1465993</math>||<math> 5650097</math>
+
 
|-
+
::<math>y_1 = s x - r y</math>
| style="background:#ffd890;"|<math>\mathbf{ 2730}</math>||<math> 4721</math>||<math> 65881</math>||<math> 122069</math>||<math> 123059</math>||<math> 124799</math>||<math> 125789</math>
+
 
|-
+
Wynika stąd, że
| style="background:#ffd890;"|<math>\mathbf{ 2940}</math>||<math> 11927</math>||<math> 145723</math>||<math> 1222279</math>||<math> 12424921</math>||<math> 23527081</math>||<math> 33820273</math>
+
 
|-
+
::<math>m_1 m^2 p = (m x_1)^2 + n (m y_1)^2</math>
| style="background:#ffd890;"|<math>\mathbf{ 3150}</math>||<math> 433</math>||<math> 24677</math>||<math> 49031</math>||<math> 348763</math>||<math> 1243393</math>||<math> 1640071</math>
+
 
|-
+
Zatem
| style="background:#ffd890;"|<math>\mathbf{ 3360}</math>||<math> 210391</math>||<math> 213751</math>||<math> 245173</math>||<math> 1863509</math>||<math> 3831437</math>||<math> 6470249</math>
+
 
|-
+
::<math>x^2_1 + n y^2_1 = m_1 p</math>
| style="background:#ffd890;"|<math>\mathbf{ 3570}</math>||<math> 57047</math>||<math> 133271</math>||<math> 150343</math>||<math> 153913</math>||<math> 399433</math>||<math> 920827</math>
+
 
|-
+
gdzie
| style="background:#ffd890;"|<math>\mathbf{ 3780}</math>||<math> 473513</math>||<math> 1282607</math>||<math> 3536881</math>||<math> 4045763</math>||<math> 4049543</math>||<math> 5655283</math>
+
 
|-
+
::<math>1 \leqslant m_1 < {\small\frac{(n + 1) m}{4}}</math>
| style="background:#ffd890;"|<math>\mathbf{ 3990}</math>||<math> 1699</math>||<math> 99877</math>||<math> 103867</math>||<math> 649217</math>||<math> 1614973</math>||<math> 2732441</math>
+
 
|-
+
Czyli powtarzając odpowiednią ilość razy opisaną powyżej procedurę, otrzymamy <math>m_k = 1</math>.
| style="background:#ffd890;"|<math>\mathbf{ 4200}</math>||<math> 12547</math>||<math> 89899</math>||<math> 835721</math>||<math> 2544221</math>||<math> 5013919</math>||<math> 11254637</math>
+
 
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 4410}</math>||<math> 262733</math>||<math> 439009</math>||<math> 12940541</math>||<math> 15091459</math>||<math> 27878321</math>||<math> 29196199</math>
+
'''D. Jednoznaczność rozkładu'''
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 4620}</math>||<math> 55697</math>||<math> 64919</math>||<math> 85363</math>||<math> 89983</math>||<math> 217409</math>||<math> 372751</math>
+
Z założenia <math>p</math> jest liczbą pierwszą, zatem jednoznaczność rozkładu wynika z&nbsp;twierdzenia K53. Co kończy dowód.<br/>
|-
+
&#9633;
| style="background:#ffd890;"|<math>\mathbf{ 4830}</math>||<math> 30427</math>||<math> 35257</math>||<math> 72547</math>||<math> 351749</math>||<math> 2985809</math>||<math> 6020477</math>
+
{{\Spoiler}}
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 5040}</math>||<math> 25073</math>||<math> 57457</math>||<math> 531359</math>||<math> 1245479</math>||<math> 2491381</math>||<math> 7136659</math>
+
 
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 5250}</math>||<math> 3413</math>||<math> 44179</math>||<math> 2117239</math>||<math> 2122489</math>||<math> 2649067</math>||<math> 4895993</math>
+
<span style="font-size: 110%; font-weight: bold;">Uwaga K57</span><br/>
|-
+
Udowodnione wyżej twierdzenie można wykorzystać do znalezienia rozkładu liczby pierwszej <math>p</math> postaci <math>4 k + 1</math> na sumę dwóch kwadratów. Dla dużych liczb pierwszych funkcja działa wolno, bo dużo czasu zajmuje obliczanie silni.
| style="background:#ffd890;"|<math>\mathbf{ 5460}</math>||<math> 144779</math>||<math> 913921</math>||<math> 1280987</math>||<math> 2243491</math>||<math> 2283571</math>||<math> 2289031</math>
+
 
|-
+
{{Spoiler|Style = font-style: italic; font-weight: bold; color: olive; text-decoration: underline;|Show=Pokaż kod|Hide=Ukryj kod}}
| style="background:#ffd890;"|<math>\mathbf{ 5670}</math>||<math> 706463</math>||<math> 915221</math>||<math> 10882211</math>||<math> 21206993</math>||<math> 21212663</math>||<math> 23859467</math>
+
<span style="font-size: 90%; color:black;">SumOfTwoSquares(p) =
|-
+
{
| style="background:#ffd890;"|<math>\mathbf{ 5880}</math>||<math> 152389</math>||<math> 4896887</math>||<math> 6559873</math>||<math> 9131321</math>||<math> 19210043</math>||<math> 24248461</math>
+
'''local'''(m, r, s, x, y, x1, y1);
|-
+
'''if'''( p%4 <> 1 || !'''isprime'''(p), '''return'''("Error") );
| style="background:#ffd890;"|<math>\mathbf{ 6090}</math>||<math> 206191</math>||<math> 357661</math>||<math> 517003</math>||<math> 1910927</math>||<math> 5835283</math>||<math> 10292729</math>
+
x = 1;
|-
+
'''for'''(k = 2, (p-1)/2, x = (x*k)%p); \\ x = { [(p-1)/2]! } % p
| style="background:#ffd890;"|<math>\mathbf{ 6300}</math>||<math> 641327</math>||<math> 1962449</math>||<math> 2797723</math>||<math> 3626881</math>||<math> 4663249</math>||<math> 5601139</math>
+
x = x - '''round'''(x/p)*p;
|-
+
y = 1;
| style="background:#ffd890;"|<math>\mathbf{ 6510}</math>||<math> 20599</math>||<math> 155461</math>||<math> 161971</math>||<math> 573437</math>||<math> 4395739</math>||<math> 6457669</math>
+
m = (x^2 + y^2)/p;
|-
+
'''while'''( m > 1,
| style="background:#ffd890;"|<math>\mathbf{ 6720}</math>||<math> 62347</math>||<math> 69067</math>||<math> 5072869</math>||<math> 9545051</math>||<math> 10379081</math>||<math> 11184743</math>
+
        r = '''round'''(x/m);
|-
+
        s = '''round'''(y/m);
| style="background:#ffd890;"|<math>\mathbf{ 6930}</math>||<math> 17</math>||<math> 7151</math>||<math> 13469</math>||<math> 36469</math>||<math> 38261</math>||<math> 309167</math>
+
        x1 = p - r*x - s*y;
|-
+
        y1 = r*y - s*x;
| style="background:#ffd890;"|<math>\mathbf{ 7140}</math>||<math> 1241197</math>||<math> 1247479</math>||<math> 2614559</math>||<math> 4496813</math>||<math> 4575947</math>||<math> 7799837</math>
+
        x = x1;
|-
+
        y = y1;
| style="background:#ffd890;"|<math>\mathbf{ 7350}</math>||<math> 1445303</math>||<math> 8526533</math>||<math> 12683299</math>||<math> 12690649</math>||<math> 21459209</math>||<math> 21466559</math>
+
        m = (x^2 + y^2)/p;
|-
+
      );
| style="background:#ffd890;"|<math>\mathbf{ 7560}</math>||<math> 29387</math>||<math> 342389</math>||<math> 539839</math>||<math> 2141497</math>||<math> 7573327</math>||<math> 7580887</math>
+
'''return'''([ '''abs'''(x), '''abs'''(y), p ]);
|-
+
}</span>
| style="background:#ffd890;"|<math>\mathbf{ 7770}</math>||<math> 6553</math>||<math> 28549</math>||<math> 36319</math>||<math> 90373</math>||<math> 819317</math>||<math> 827087</math>
+
{{\Spoiler}}
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 7980}</math>||<math> 137</math>||<math> 4091</math>||<math> 24029</math>||<math> 31393</math>||<math> 165313</math>||<math> 182687</math>
+
 
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 8190}</math>||<math> 35591</math>||<math> 59021</math>||<math> 287629</math>||<math> 401627</math>||<math> 410257</math>||<math> 702323</math>
+
<span style="font-size: 110%; font-weight: bold;">Zadanie K58</span><br/>
|-
+
Niech liczby pierwsze <math>p, q</math> będą postaci <math>4 k + 1</math>, a&nbsp;liczba pierwsza <math>r</math>
| style="background:#ffd890;"|<math>\mathbf{ 8400}</math>||<math> 6127909</math>||<math> 8133469</math>||<math> 8528483</math>||<math> 8536883</math>||<math> 14448397</math>||<math> 19175929</math>
+
będzie postaci <math>4 k + 3</math>. Pokazać, że
|-
+
:*&nbsp;&nbsp;liczby <math>r, p r \,</math> i <math>\, r^2</math> nie rozkładają się na sumę dwóch kwadratów liczb całkowitych dodatnich
| style="background:#ffd890;"|<math>\mathbf{ 8610}</math>||<math> 132283</math>||<math> 2164387</math>||<math> 6903121</math>||<math> 10892747</math>||<math> 10901357</math>||<math> 17489623</math>
+
:*&nbsp;&nbsp;liczby <math>p</math>, <math>2 p</math>, <math>p^2 \,</math> i <math>\, p r^2</math> mają jeden rozkład na sumę dwóch kwadratów liczb całkowitych dodatnich
|-
+
:*&nbsp;&nbsp;liczba <math>p q</math>, <math>p \neq q</math> ma dwa rozkłady na sumę dwóch kwadratów liczb całkowitych dodatnich
| style="background:#ffd890;"|<math>\mathbf{ 8820}</math>||<math> 84421</math>||<math> 466451</math>||<math> 3052177</math>||<math> 3905777</math>||<math> 11397371</math>||<math> 53189407</math>
+
 
|-
+
{{Spoiler|Style = font-style: italic; font-weight: bold; color: olive; text-decoration: underline;|Show=Rozwiązanie|Hide=Ukryj rozwiązanie}}
| style="background:#ffd890;"|<math>\mathbf{ 9030}</math>||<math> 2630153</math>||<math> 4927921</math>||<math> 5686141</math>||<math> 6043399</math>||<math> 8411567</math>||<math> 8510357</math>
+
 
|-
+
'''Punkt 1.'''
| style="background:#ffd890;"|<math>\mathbf{ 9240}</math>||<math> 937</math>||<math> 21031</math>||<math> 53681</math>||<math> 62921</math>||<math> 95339</math>||<math> 495791</math>
+
 
|-
+
Ponieważ liczby <math>r \,</math> i <math>\, p r</math> są postaci <math>4 k + 3</math>, to modulo <math>4</math> mamy
| style="background:#ffd890;"|<math>\mathbf{ 9450}</math>||<math> 1028479</math>||<math> 1832711</math>||<math> 8104549</math>||<math> 15802459</math>||<math> 43975031</math>||<math> 97126691</math>
+
 
|-
+
::<math>r, p r \equiv 3 \!\! \pmod{4}</math>
| style="background:#ffd890;"|<math>\mathbf{ 9660}</math>||<math> 521</math>||<math> 464413</math>||<math> 707071</math>||<math> 716731</math>||<math> 1197121</math>||<math> 1259053</math>
+
 
|-
+
Suma <math>x^2 + y^2</math> musi być liczbą nieparzystą, zatem liczby <math>x, y</math> muszą mieć przeciwną parzystość i&nbsp;modulo <math>4</math> mamy
| style="background:#ffd890;"|<math>\mathbf{ 9870}</math>||<math> 576439</math>||<math> 1115923</math>||<math> 7516427</math>||<math> 9249301</math>||<math> 16561691</math>||<math> 16571561</math>
+
 
|-
+
::<math>x^2 + y^2 \equiv 1 \!\! \pmod{4}</math>
| style="background:#ffd890;"|<math>\mathbf{ 10080}</math>||<math> 6949</math>||<math> 125353</math>||<math> 156941</math>||<math> 949517</math>||<math> 3363089</math>||<math> 3373169</math>
+
 
|-
+
Przypuśćmy, że
| style="background:#ffd890;"|<math>\mathbf{ 10290}</math>||<math> 6143</math>||<math> 1535489</math>||<math> 2477177</math>||<math> 4259887</math>||<math> 5294563</math>||<math> 10818191</math>
+
 
|-
+
::<math>r^2 = x^2 + y^2</math>
| style="background:#ffd890;"|<math>\mathbf{ 10500}</math>||<math> 1113239</math>||<math> 1841087</math>||<math> 7005059</math>||<math> 8026327</math>||<math> 13707959</math>||<math> 22837799</math>
+
 
|-
+
gdzie <math>x, y \in \mathbb{Z}_+</math>. Liczby <math>x, y</math> muszą mieć przeciwną parzystość, zatem <math>x \neq y</math>. Z&nbsp;twierdzenia J24 wynika, że liczba <math>x^2 + y^2</math> musi mieć dzielnik pierwszy postaci <math>4 k + 1</math>, co w&nbsp;sposób oczywisty jest niemożliwe.
| style="background:#ffd890;"|<math>\mathbf{ 10710}</math>||<math> 314299</math>||<math> 439123</math>||<math> 735467</math>||<math> 1784911</math>||<math> 1923049</math>||<math> 2781203</math>
+
 
|-
+
'''Punkt 2.'''
| style="background:#ffd890;"|<math>\mathbf{ 10920}</math>||<math> 52321</math>||<math> 285521</math>||<math> 527909</math>||<math> 538829</math>||<math> 1673941</math>||<math> 2214349</math>
+
 
|-
+
W przypadku liczby pierwszej <math>p</math> odpowiedzi udziela twierdzenie K56. Niech <math>p = x^2 + y^2</math>, mamy
| style="background:#ffd890;"|<math>\mathbf{ 11130}</math>||<math> 187009</math>||<math> 198139</math>||<math> 255803</math>||<math> 547499</math>||<math> 2160253</math>||<math> 11518723</math>
+
 
|-
+
::<math>2 p = (x + y)^2 + (x - y)^2</math>
| style="background:#ffd890;"|<math>\mathbf{ 11340}</math>||<math> 57143</math>||<math> 559051</math>||<math> 1091561</math>||<math> 10756139</math>||<math> 13865323</math>||<math> 13876663</math>
+
 
|-
+
::<math>p^2 = (x^2 - y^2)^2 + (2 x y)^2</math>
| style="background:#ffd890;"|<math>\mathbf{ 11550}</math>||<math> 4673</math>||<math> 9619</math>||<math> 89659</math>||<math> 112643</math>||<math> 155317</math>||<math> 166601</math>
+
 
|-
+
::<math>p r^2 = (r x)^2 + (r y)^2</math>
| style="background:#ffd890;"|<math>\mathbf{ 11760}</math>||<math> 3458731</math>||<math> 5759843</math>||<math> 6305939</math>||<math> 6904789</math>||<math> 11527693</math>||<math> 15296227</math>
+
 
|-
+
'''Punkt 3.'''
| style="background:#ffd890;"|<math>\mathbf{ 11970}</math>||<math> 10531</math>||<math> 1911199</math>||<math> 2210573</math>||<math> 2298397</math>||<math> 15519563</math>||<math> 21608347</math>
+
 
|-
+
Niech <math>p = x^2 + y^2</math> i <math>q = a^2 + b^2</math>. Ze wzorów podanych w&nbsp;uwadze K54 mamy
| style="background:#ffd890;"|<math>\mathbf{ 12180}</math>||<math> 1067597</math>||<math> 1778461</math>||<math> 1784599</math>||<math> 3551221</math>||<math> 7384493</math>||<math> 12485003</math>
+
 
|-
+
::<math>p q = (a^2 + b^2) (x^2 + y^2) = (a x + b y)^2 + (a y - b x)^2</math>
| style="background:#ffd890;"|<math>\mathbf{ 12390}</math>||<math> 184291</math>||<math> 651017</math>||<math> 804493</math>||<math> 1536187</math>||<math> 4158103</math>||<math> 4751293</math>
+
 
|-
+
:::::::::<math>\:\, = (a x - b y)^2 + (a y + b x)^2</math>
| style="background:#ffd890;"|<math>\mathbf{ 12600}</math>||<math> 435577</math>||<math> 558431</math>||<math> 571031</math>||<math> 727369</math>||<math> 2890117</math>||<math> 3367363</math>
+
 
|-
+
Co należało pokazać.<br/>
| style="background:#ffd890;"|<math>\mathbf{ 12810}</math>||<math> 116953</math>||<math> 166909</math>||<math> 5627029</math>||<math> 6623117</math>||<math> 10981339</math>||<math> 10994149</math>
+
&#9633;
|-
+
{{\Spoiler}}
| style="background:#ffd890;"|<math>\mathbf{ 13020}</math>||<math> 1691411</math>||<math> 3574871</math>||<math> 22963981</math>||<math> 27098723</math>||<math> 29812603</math>||<math> 31218403</math>
+
 
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 13230}</math>||<math> 40543</math>||<math> 104651</math>||<math> 313219</math>||<math> 4705247</math>||<math> 4718477</math>||<math> 6268289</math>
+
 
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 13440}</math>||<math> 2141</math>||<math> 448741</math>||<math> 815261</math>||<math> 1560997</math>||<math> 1574437</math>||<math> 2070517</math>
+
 
|-
+
== Twierdzenia o&nbsp;istnieniu liczb pierwszych kwadratowych i&nbsp;niekwadratowych modulo ==
| style="background:#ffd890;"|<math>\mathbf{ 13650}</math>||<math> 3343</math>||<math> 96997</math>||<math> 110647</math>||<math> 521047</math>||<math> 1590961</math>||<math> 2276503</math>
+
 
|-
+
<span style="font-size: 110%; font-weight: bold;">Zadanie K59</span><br/>
| style="background:#ffd890;"|<math>\mathbf{ 13860}</math>||<math> 110437</math>||<math> 124297</math>||<math> 138157</math>||<math> 148891</math>||<math> 152017</math>||<math> 152947</math>
+
Niech <math>s = \pm 1</math>. Zbadać podzielność liczby <math>p - s a^2</math>
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 14070}</math>||<math> 2679239</math>||<math> 2886281</math>||<math> 3817111</math>||<math> 6446353</math>||<math> 6460423</math>||<math> 6976289</math>
+
:* przez <math>4</math>, gdy <math>p = 4 k + r</math>, gdzie <math>r = 1, 3</math>
|-
+
:* przez <math>8</math>, gdy <math>p = 8 k + r</math>, gdzie <math>r = 1, 3, 5, 7</math>
| style="background:#ffd890;"|<math>\mathbf{ 14280}</math>||<math> 364687</math>||<math> 749773</math>||<math> 1867573</math>||<math> 2146181</math>||<math> 2434997</math>||<math> 4112627</math>
+
 
 +
{{Spoiler|Style = font-style: italic; font-weight: bold; color: olive; text-decoration: underline;|Show=Rozwiązanie|Hide=Ukryj rozwiązanie}}
 +
Problem sprowadza się do uzyskania odpowiedzi, kiedy kongruencja
 +
 
 +
::<math>p - s a^2 \equiv 0 \pmod{2^n}</math>
 +
 
 +
gdzie <math>n = 2, 3</math>, ma rozwiązanie. Podstawiając, dostajemy
 +
 
 +
::<math>2^n k + r \equiv s a^2 \pmod{2^n}</math>
 +
 
 +
::<math>s a^2 \equiv r \pmod{2^n}</math>
 +
 
 +
::<math>a^2 \equiv s r \pmod{2^n}</math>
 +
 
 +
Z twierdzenia J54 wiemy, że aby powyższa kongruencja miała rozwiązanie, musi być <math>2^n \mid (s r - 1)</math>, co jest możliwe tylko, gdy
 +
 
 +
::<math>s =
 +
\begin{cases}
 +
\;\;\: 1 & \text{gdy } r = 1 \\
 +
      - 1 & \text{gdy } r = 3 \\
 +
\end{cases}</math>
 +
 
 +
dla <math>2^n = 4</math> i&nbsp;gdy
 +
 
 +
::<math>s =
 +
\begin{cases}
 +
\;\;\: 1 & \text{gdy } r = 1 \\
 +
      - 1 & \text{gdy } r = 7 \\
 +
\end{cases}</math>
 +
 
 +
dla <math>2^n = 8</math>. Dla <math>2^n = 8</math> i <math>r = 3, 5</math> rozpatrywana kongruencja nie ma rozwiązania.<br/>
 +
&#9633;
 +
{{\Spoiler}}
 +
 
 +
 
 +
 
 +
<span style="font-size: 110%; font-weight: bold;">Uwaga K60</span><br/>
 +
Poniżej udowodnimy trzy twierdzenia dotyczące istnienia liczb pierwszych, które są liczbami kwadratowymi modulo <math>p</math>. Pomysł ujęcia problemu zaczerpnęliśmy z&nbsp;pracy Alexandru Gicy<ref name="Gica1"/>. Zadanie K59 należy traktować jako uzupełnienie do dowodu twierdzenia K61. Z&nbsp;zadania łatwo widzimy, że powiązanie liczby <math>s</math> z&nbsp;postacią liczby pierwszej <math>p</math> nie jest przypadkowe.
 +
 
 +
Zauważmy, że twierdzenia ograniczają się do liczb pierwszych <math>p</math>, ponieważ dla liczb złożonych nieparzystych <math>m > 0</math> wynik <math>\left( {\small\frac{q}{m}} \right)_{\small{\!\! J}} = 1</math> nie oznacza, że liczba pierwsza <math>q</math> jest liczbą kwadratową modulo <math>m</math>.
 +
 
 +
W tabeli przedstawiamy najmniejsze liczby pierwsze <math>q</math> postaci <math>4 k + 1</math> kwadratowe modulo <math>p</math>.
 +
 
 +
::{| class="wikitable plainlinks"  style="font-size: 90%; text-align: center; margin-right: auto;"
 
|-
 
|-
| style="background:#ffd890;"|<math>\mathbf{ 14490}</math>||<math> 144667</math>||<math> 161263</math>||<math> 259603</math>||<math> 286333</math>||<math> 336251</math>||<math> 377809</math>
+
! <math>\boldsymbol{p}</math>
 +
| <math>3</math> || <math>5</math> || <math>7</math> || <math>11</math> || <math>13</math> || <math>17</math> || <math>19</math> || <math>23</math> || <math>29</math> || <math>31</math> || <math>37</math> || <math>41</math> || <math>43</math> || <math>47</math> || <math>53</math> || <math>59</math> || <math>61</math> || <math>67</math> || <math>71</math> || <math>73</math> || <math>79</math> || <math>83</math> || <math>89</math> || <math>97</math>
 
|-
 
|-
| style="background:#ffd890;"|<math>\mathbf{ 14700}</math>||<math> 36583</math>||<math> 578267</math>||<math> 8529749</math>||<math> 14365553</math>||<math> 14380253</math>||<math> 14830787</math>
+
! <math>\boldsymbol{q}</math>
 +
| style="background-color: red" | <math>13</math> || style="background-color: red" | <math>29</math> || style="background-color: red" | <math>29</math> || <math>5</math> || style="background-color: red" | <math>17</math> || <math>13</math> || <math>5</math> || <math>13</math> || <math>5</math> || <math>5</math> || style="background-color: red" | <math>41</math> || <math>5</math> || <math>13</math> || <math>17</math> || <math>13</math> || <math>5</math> || <math>5</math> || <math>17</math> || <math>5</math> || <math>37</math> || <math>5</math> || <math>17</math> || <math>5</math> || <math>53</math>
 +
|}
 +
 
 +
 
 +
W kolejnej tabeli przedstawiamy najmniejsze liczby pierwsze <math>q</math> postaci <math>4 k + 3</math> kwadratowe modulo <math>p</math>.
 +
 
 +
::{| class="wikitable plainlinks"  style="font-size: 90%; text-align: center; margin-right: auto;"
 
|-
 
|-
| style="background:#ffd890;"|<math>\mathbf{ 14910}</math>||<math> 74161</math>||<math> 109367</math>||<math> 120977</math>||<math> 1260011</math>||<math> 1372211</math>||<math> 11898287</math>
+
! <math>\boldsymbol{p}</math>
 +
| <math>3</math> || <math>5</math> || <math>7</math> || <math>11</math> || <math>13</math> || <math>17</math> || <math>19</math> || <math>23</math> || <math>29</math> || <math>31</math> || <math>37</math> || <math>41</math> || <math>43</math> || <math>47</math> || <math>53</math> || <math>59</math> || <math>61</math> || <math>67</math> || <math>71</math> || <math>73</math> || <math>79</math> || <math>83</math> || <math>89</math> || <math>97</math>
 
|-
 
|-
| style="background:#ffd890;"|<math>\mathbf{ 15120}</math>||<math> 121853</math>||<math> 689459</math>||<math> 822383</math>||<math> 11354437</math>||<math> 37245407</math>||<math> 48384221</math>
+
! <math>\boldsymbol{q}</math>  
|-
+
| style="background-color: red" | <math>7</math> || style="background-color: red" | <math>11</math> || style="background-color: red" | <math>11</math> || <math>3</math> || <math>3</math> || style="background-color: red" | <math>19</math> || <math>7</math> || <math>3</math> || <math>7</math> || <math>7</math> || <math>3</math> || <math>23</math> || <math>11</math> || <math>3</math> || <math>7</math> || <math>3</math> || <math>3</math> || <math>19</math> || <math>3</math> || <math>3</math> || <math>11</math> || <math>3</math> || <math>11</math> || <math>3</math>
| style="background:#ffd890;"|<math>\mathbf{ 15330}</math>||<math> 7713709</math>||<math> 8049187</math>||<math> 11583113</math>||<math> 12934973</math>||<math> 16769749</math>||<math> 30793649</math>
+
|}
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 15540}</math>||<math> 160781</math>||<math> 580577</math>||<math> 4095187</math>||<math> 5838409</math>||<math> 9523079</math>||<math> 10473559</math>
+
 
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 15750}</math>||<math> 64579</math>||<math> 103409</math>||<math> 182587</math>||<math> 849869</math>||<math> 865619</math>||<math> 1468729</math>
+
<span style="font-size: 110%; font-weight: bold;">Twierdzenie K61</span><br/>
|-
+
Jeżeli <math>p \geqslant 11</math> jest liczbą pierwszą i <math>p \neq 17</math>, to istnieje liczba pierwsza <math>q < p</math> postaci <math>4 k + 3</math> kwadratowa modulo <math>p</math>.
| style="background:#ffd890;"|<math>\mathbf{ 15960}</math>||<math> 1847</math>||<math> 6037</math>||<math> 17807</math>||<math> 137147</math>||<math> 652969</math>||<math> 989977</math>
+
 
|-
+
{{Spoiler|Style = font-style: italic; font-weight: bold; color: olive; text-decoration: underline;|Show=Dowód|Hide=Ukryj dowód}}
| style="background:#ffd890;"|<math>\mathbf{ 16170}</math>||<math> 66179</math>||<math> 219451</math>||<math> 511843</math>||<math> 583421</math>||<math> 812431</math>||<math> 848567</math>
+
Niech
|-
+
::<math>s =
| style="background:#ffd890;"|<math>\mathbf{ 16380}</math>||<math> 43759</math>||<math> 339263</math>||<math> 355643</math>||<math> 695047</math>||<math> 2011517</math>||<math> 2893309</math>
+
\begin{cases}
|-
+
\;\;\: 1 & \text{gdy } \, p \, \text{ jest postaci } \, 4 k + 1 \\
| style="background:#ffd890;"|<math>\mathbf{ 16590}</math>||<math> 6703</math>||<math> 29009</math>||<math> 2489183</math>||<math> 4028743</math>||<math> 9340181</math>||<math> 10005263</math>
+
      - 1 & \text{gdy } \, p \, \text{ jest postaci } \, 4 k + 3 \\
|-
+
\end{cases}</math>
| style="background:#ffd890;"|<math>\mathbf{ 16800}</math>||<math> 940319</math>||<math> 3772907</math>||<math> 3873007</math>||<math> 9905921</math>||<math> 79622351</math>||<math> 95679271</math>
+
 
|-
+
Dla ustalonych liczb <math>n</math> i <math>s</math> rozważmy liczbę <math>u(a) = {\small\frac{p - s a^2}{2^n}}</math> taką, że <math>3 \leqslant u (a) < p</math>. Jeżeli liczba ta jest postaci <math>4 k + 3</math>, to ma dzielnik pierwszy <math>q < p</math> postaci <math>4 k + 3</math> (zobacz C21). Zatem możemy napisać <math>u (a) = t q</math>, co oznacza, że
| style="background:#ffd890;"|<math>\mathbf{ 17010}</math>||<math> 797119</math>||<math> 18296627</math>||<math> 23152907</math>||<math> 38133913</math>||<math> 60796007</math>||<math> 83709047</math>
+
 
|-
+
::<math>p - s a^2 = 2^n u (a) = 2^n t q</math>
| style="background:#ffd890;"|<math>\mathbf{ 17220}</math>||<math> 225769</math>||<math> 1452511</math>||<math> 1469731</math>||<math> 1606379</math>||<math> 2415473</math>||<math> 3469069</math>
+
 
|-
+
Czyli
| style="background:#ffd890;"|<math>\mathbf{ 17430}</math>||<math> 15643</math>||<math> 25471</math>||<math> 42901</math>||<math> 1170599</math>||<math> 3120547</math>||<math> 3983249</math>
+
 
|-
+
::<math>p \equiv s a^2 \pmod{q}</math>
| style="background:#ffd890;"|<math>\mathbf{ 17640}</math>||<math> 193607</math>||<math> 211247</math>||<math> 7624613</math>||<math> 10290239</math>||<math> 16104047</math>||<math> 22618907</math>
+
 
|-
+
i otrzymujemy
| style="background:#ffd890;"|<math>\mathbf{ 17850}</math>||<math> 129379</math>||<math> 289253</math>||<math> 1341433</math>||<math> 1728911</math>||<math> 1746761</math>||<math> 2918737</math>
+
 
|-
+
::<math>\left( {\small\frac{q}{p}} \right)_{\small{\!\! J}} = s \cdot \left( {\small\frac{p}{q}} \right)_{\small{\!\! J}} = s \cdot \left( {\small\frac{s a^2}{q}} \right)_{\small{\!\! J}} = s \cdot \left( {\small\frac{s}{q}} \right)_{\small{\!\! J}} \cdot \left( {\small\frac{a^2}{q}} \right)_{\small{\!\! J}} =s \cdot \left( {\small\frac{s}{q}} \right)_{\small{\!\! J}} = 1</math>
| style="background:#ffd890;"|<math>\mathbf{ 18060}</math>||<math> 1013921</math>||<math> 1038209</math>||<math> 2703941</math>||<math> 3580333</math>||<math> 3914689</math>||<math> 11110339</math>
+
 
|-
+
Zatem liczba <math>q < p</math> jest liczbą kwadratową modulo <math>p</math>.
| style="background:#ffd890;"|<math>\mathbf{ 18270}</math>||<math> 29567</math>||<math> 511201</math>||<math> 1615723</math>||<math> 1890701</math>||<math> 1989811</math>||<math> 2008081</math>
+
 
|-
+
Pomysł dowodu polega na wskazaniu kilku liczb <math>u(a_1), \ldots, u(a_r)</math> takich, że
| style="background:#ffd890;"|<math>\mathbf{ 18480}</math>||<math> 2711</math>||<math> 25643</math>||<math> 40853</math>||<math> 149143</math>||<math> 194839</math>||<math> 213319</math>
+
 
|-
+
::<math>3 \leqslant u(a_1) < \ldots < u(a_r) < p</math>
| style="background:#ffd890;"|<math>\mathbf{ 18690}</math>||<math> 881</math>||<math> 9421469</math>||<math> 10687877</math>||<math> 11455753</math>||<math> 14740463</math>||<math> 21499799</math>
+
 
|-
+
z których jedna musi być postaci <math>4 k + 3</math>.
| style="background:#ffd890;"|<math>\mathbf{ 18900}</math>||<math> 73823</math>||<math> 462079</math>||<math> 804113</math>||<math> 823013</math>||<math> 1323799</math>||<math> 1370987</math>
+
 
|-
+
'''Przypadek pierwszy:''' <math>\boldsymbol{p \equiv 3 \!\! \pmod{8}}</math>
| style="background:#ffd890;"|<math>\mathbf{ 19110}</math>||<math> 63737</math>||<math> 322171</math>||<math> 520193</math>||<math> 999763</math>||<math> 1023487</math>||<math> 1032067</math>
+
 
|-
+
Mamy <math>s = - 1</math> i&nbsp;przyjmujemy <math>n = 2</math>. Rozważmy liczby
| style="background:#ffd890;"|<math>\mathbf{ 19320}</math>||<math> 682411</math>||<math> 743747</math>||<math> 1343669</math>||<math> 1373233</math>||<math> 1782499</math>||<math> 2574437</math>
+
 
|-
+
::<math>3 \leqslant {\small\frac{p + 1}{4}} < {\small\frac{p + 9}{4}} < p</math>
| style="background:#ffd890;"|<math>\mathbf{ 19530}</math>||<math> 50929</math>||<math> 738919</math>||<math> 1773689</math>||<math> 1793219</math>||<math> 6121807</math>||<math> 18867007</math>
+
 
|-
+
Oszacowania są jednocześnie spełnione dla <math>p \geqslant 11</math>. Z&nbsp;założenia <math>p = 8 k + 3</math>, zatem rozpatrywane liczby to <math>\{ 2 k + 1, 2 k + 3 \}</math>. Ponieważ są to dwie kolejne liczby nieparzyste, to jedna z&nbsp;nich jest postaci <math>4 k + 3</math>.
| style="background:#ffd890;"|<math>\mathbf{ 19740}</math>||<math> 2729</math>||<math> 30757</math>||<math> 360163</math>||<math> 1652591</math>||<math> 18160973</math>||<math> 18862889</math>
+
 
|-
+
'''Przypadek drugi:''' <math>\boldsymbol{p \equiv 5 \!\! \pmod{8}}</math>
| style="background:#ffd890;"|<math>\mathbf{ 19950}</math>||<math> 142699</math>||<math> 162649</math>||<math> 239957</math>||<math> 302287</math>||<math> 322237</math>||<math> 661547</math>
+
 
|-
+
Mamy <math>s = + 1</math> i&nbsp;przyjmujemy <math>n = 2</math>. Rozważmy liczby
| style="background:#ffd890;"|<math>\mathbf{ 20160}</math>||<math> 3330211</math>||<math> 5620609</math>||<math> 6413401</math>||<math> 15055609</math>||<math> 32094917</math>||<math> 52863893</math>
+
 
|-
+
::<math>3 \leqslant {\small\frac{p - 9}{4}} < {\small\frac{p - 1}{4}} < p</math>
| style="background:#ffd890;"|<math>\mathbf{ 20370}</math>||<math> 1158881</math>||<math> 1216213</math>||<math> 1236583</math>||<math> 3893899</math>||<math> 7991839</math>||<math> 8012209</math>
+
 
|-
+
Oszacowania są jednocześnie spełnione dla <math>p \geqslant 21</math>. Z&nbsp;założenia <math>p = 8 k + 5</math>, zatem rozpatrywane liczby to <math>\{ 2 k - 1, 2 k + 1 \}</math>. Ponieważ są to dwie kolejne liczby nieparzyste, to jedna z&nbsp;nich jest postaci <math>4 k + 3</math>.
| style="background:#ffd890;"|<math>\mathbf{ 20580}</math>||<math> 9689</math>||<math> 316501</math>||<math> 398023</math>||<math> 2047813</math>||<math> 2219557</math>||<math> 2240137</math>
+
 
|-
+
'''Przypadek trzeci:''' <math>\boldsymbol{p \equiv 7 \!\! \pmod{8}}</math>
| style="background:#ffd890;"|<math>\mathbf{ 20790}</math>||<math> 12713</math>||<math> 20023</math>||<math> 141079</math>||<math> 159571</math>||<math> 296117</math>||<math> 914813</math>
+
 
|-
+
Mamy <math>s = - 1</math> i&nbsp;przyjmujemy <math>n = 3</math>. Rozważmy liczby
| style="background:#ffd890;"|<math>\mathbf{ 21000}</math>||<math> 5501</math>||<math> 19471</math>||<math> 65837</math>||<math> 688139</math>||<math> 3980407</math>||<math> 8983031</math>
+
 
|}
+
::<math>3 \leqslant {\small\frac{p + 1}{8}} < {\small\frac{p + 9}{8}} < {\small\frac{p + 25}{8}} < {\small\frac{p + 49}{8}} < p</math>
{| class="wikitable plainlinks"  style="display: inline-table; margin-left: 5px; margin-right: 50px; font-size: 80%; text-align: right;"
+
 
|- style="background: #98fb98; text-align: center;"
+
Oszacowania są jednocześnie spełnione dla <math>p \geqslant 23</math>. Z&nbsp;założenia <math>p = 8 k + 7</math>, zatem rozpatrywane liczby to <math>\{ k + 1, k + 2, k + 4, k + 7 \}</math>. Jeżeli <math>k \equiv r \!\! \pmod{4}</math>, to modulo <math>4</math> mamy zbiór <math>\{ r + 1, r + 2, r, r + 3 \}</math>. Zatem jedna z&nbsp;liczb w&nbsp;tym zbiorze jest postaci <math>4 k + 3</math>.
| colspan=7 | <math>\mathbf{n = 10}</math>
+
 
|- style="text-align: center;"
+
'''Przypadek czwarty:''' <math>\boldsymbol{p \equiv 1 \!\! \pmod{8}}</math>
| style="background: #ffd890;" | <math>\mathbf{d}</math>
+
 
| colspan=6 | <math>\mathbf{p_0}</math>
+
Mamy <math>s = + 1</math> i&nbsp;przyjmujemy <math>n = 3</math>. Rozważmy liczby
|-
+
 
|-
+
::<math>3 \leqslant {\small\frac{p - 49}{8}} < {\small\frac{p - 25}{8}} < {\small\frac{p - 9}{8}} < {\small\frac{p - 1}{8}} < p</math>
| style="background:#ffd890;"|<math>\mathbf{ 210}</math>||<math> 199</math>||<math> 243051733</math>||<math> 498161423</math>||<math> 2490123989</math>||<math> 5417375591</math>||<math> 8785408259</math>
+
 
|-
+
Oszacowania są jednocześnie spełnione dla <math>p \geqslant 73</math>. Z&nbsp;założenia <math>p = 8 k + 1</math>, zatem rozpatrywane liczby to <math>\{ k - 6, k - 3, k - 1, k \}</math>. Jeżeli <math>k \equiv r \!\! \pmod{4}</math>, to modulo <math>4</math> mamy zbiór <math>\{ r + 2, r + 1, r + 3, r \}</math>. Zatem jedna z&nbsp;liczb w&nbsp;tym zbiorze jest postaci <math>4 k + 3</math>.
| style="background:#ffd890;"|<math>\mathbf{ 420}</math>||<math> 52879</math>||<math> 3544939</math>||<math> 725283077</math>||<math> 1580792347</math>||<math> 1931425157</math>||<math> 8392393693</math>
+
 
|-
+
Pozostaje sprawdzić twierdzenie dla liczb pierwszych <math>p < 73</math>. Co kończy dowód.<br/>
| style="background:#ffd890;"|<math>\mathbf{ 630}</math>||<math> 964417</math>||<math> 1021331</math>||<math> 3710699</math>||<math> 174610351</math>||<math> 396598051</math>||<math> 525173641</math>
+
&#9633;
|-
+
{{\Spoiler}}
| style="background:#ffd890;"|<math>\mathbf{ 840}</math>||<math> 915611</math>||<math> 24748189</math>||<math> 33791509</math>||<math> 314727967</math>||<math> 510756371</math>||<math> 1079797657</math>
+
 
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 1050}</math>||<math> 130006783</math>||<math> 208734751</math>||<math> 400663741</math>||<math> 963551671</math>||<math> 1219200119</math>||<math> 1231110787</math>
+
 
|-
+
<span style="font-size: 110%; font-weight: bold;">Twierdzenie K62</span><br/>
| style="background:#ffd890;"|<math>\mathbf{ 1260}</math>||<math> 6722909</math>||<math> 27846803</math>||<math> 63289771</math>||<math> 1000262819</math>||<math> 1476482057</math>||<math> 4565705117</math>
+
Jeżeli <math>p \geqslant 11</math> jest liczbą pierwszą postaci <math>8 k + 1</math> lub <math>8 k + 3</math>, to istnieje liczba pierwsza <math>q < p</math> postaci <math>4 k + 1</math> kwadratowa modulo <math>p</math>.
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 1470}</math>||<math> 2534561</math>||<math> 189999707</math>||<math> 833570987</math>||<math> 1168004581</math>||<math> 2010828277</math>||<math> 3182258251</math>
+
{{Spoiler|Style = font-style: italic; font-weight: bold; color: olive; text-decoration: underline;|Show=Dowód|Hide=Ukryj dowód}}
|-
+
W przypadku, gdy liczba pierwsza <math>p</math> jest postaci <math>8 k + 1</math> lub <math>8 k + 3</math>, to istnieją takie liczby całkowite dodatnie <math>x, y</math>, że <math>p = x^2 + 2 y^2</math> (zobacz K56). Ponieważ z&nbsp;założenia <math>p \geqslant 11</math>, to musi być <math>x \neq y</math>. Z&nbsp;twierdzenia J24 wynika, że liczba <math>x^2 + y^2</math> ma dzielnik pierwszy <math>q</math> postaci <math>4 k + 1</math>. Łatwo widzimy, że <math>q \leqslant x^2 + y^2 < x^2 + 2 y^2 = p</math>.
| style="background:#ffd890;"|<math>\mathbf{ 1680}</math>||<math> 1343205113</math>||<math> 3033769813</math>||<math> 4093882757</math>||<math> 4112814241</math>||<math> 4348188919</math>||<math> 4749575333</math>
+
 
|-
+
Modulo <math>q</math> możemy napisać
| style="background:#ffd890;"|<math>\mathbf{ 1890}</math>||<math> 41513261</math>||<math> 95317913</math>||<math> 6232033069</math>||<math> 6361761239</math>||<math> 6709899029</math>||<math> 8521839071</math>
+
 
|-
+
::<math>x^2 + y^2 \equiv 0 \!\! \pmod{q}</math>
| style="background:#ffd890;"|<math>\mathbf{ 2100}</math>||<math> 34913</math>||<math> 581393</math>||<math> 8397091</math>||<math> 10200607</math>||<math> 31913837</math>||<math> 258411317</math>
+
 
|-
+
Liczba pierwsza <math>q < p</math> nie może dzielić <math>y</math>, bo mielibyśmy <math>q \mid x</math>, czyli <math>q \mid p</math>, co jest niemożliwe. Rozpatrując równość <math>p = x^2 + 2 y^2</math> modulo <math>q</math>, dostajemy
| style="background:#ffd890;"|<math>\mathbf{ 2310}</math>||<math> 2564251</math>||<math> 7245143</math>||<math> 15898823</math>||<math> 34834237</math>||<math> 51404371</math>||<math> 60858179</math>
+
 
|-
+
::<math>p \equiv y^2 \!\! \pmod{q}</math>
| style="background:#ffd890;"|<math>\mathbf{ 2520}</math>||<math> 1058597</math>||<math> 8226307</math>||<math> 438716653</math>||<math> 799422581</math>||<math> 975166567</math>||<math> 983999677</math>
+
 
|-
+
Wynika stąd natychmiast (zobacz J41 p.9)
| style="background:#ffd890;"|<math>\mathbf{ 2730}</math>||<math> 122069</math>||<math> 123059</math>||<math> 158633</math>||<math> 3319219</math>||<math> 3427393</math>||<math> 5082629</math>
+
 
|-
+
::<math>\left( {\small\frac{q}{p}} \right)_{\small{\!\! J}} = \left( {\small\frac{p}{q}} \right)_{\small{\!\! J}} = \left( {\small\frac{y^2}{q}} \right)_{\small{\!\! J}} = 1</math>
| style="background:#ffd890;"|<math>\mathbf{ 2940}</math>||<math> 2546781317</math>||<math> 3736609957</math>||<math> 4895747497</math>||||||
+
 
|-
+
Co kończy dowód.<br/>
| style="background:#ffd890;"|<math>\mathbf{ 3150}</math>||<math> 34071019</math>||<math> 1174379903</math>||<math> 1247572429</math>||<math> 1914733781</math>||<math> 5502174781</math>||<math> 5598860513</math>
+
&#9633;
|-
+
{{\Spoiler}}
| style="background:#ffd890;"|<math>\mathbf{ 3360}</math>||<math> 210391</math>||<math> 762261571</math>||<math> 2289797801</math>||<math> 5842998881</math>||<math> 5973997177</math>||<math> 6486241481</math>
+
 
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 3570}</math>||<math> 150343</math>||<math> 920827</math>||<math> 47896129</math>||<math> 110935963</math>||<math> 124813783</math>||<math> 253908793</math>
+
 
|-
+
<span style="font-size: 110%; font-weight: bold;">Twierdzenie K63</span><br/>
| style="background:#ffd890;"|<math>\mathbf{ 3780}</math>||<math> 4045763</math>||<math> 162045979</math>||<math> 3611162221</math>||<math> 3953439013</math>||<math> 5751477079</math>||<math> 6389572141</math>
+
Jeżeli <math>p \geqslant 19</math> jest liczbą pierwszą postaci <math>12 k + 7</math>, to istnieje liczba pierwsza <math>q < p</math> postaci <math>4 k + 1</math> kwadratowa modulo <math>p</math>.
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 3990}</math>||<math> 99877</math>||<math> 2732441</math>||<math> 145829681</math>||<math> 1512868211</math>||<math> 1519374557</math>||<math> 1905288811</math>
+
{{Spoiler|Style = font-style: italic; font-weight: bold; color: olive; text-decoration: underline;|Show=Dowód|Hide=Ukryj dowód}}
|-
+
Z założenia <math>p \equiv 1 \!\! \pmod{6}</math>, zatem istnieją takie liczby <math>x, y \in \mathbb{Z}_+</math>, że <math>p = x^2 + 3 y^2</math> (zobacz K56).
| style="background:#ffd890;"|<math>\mathbf{ 4200}</math>||<math> 75187297</math>||<math> 436800197</math>||<math> 825073159</math>||<math> 953483507</math>||<math> 1237285949</math>||<math> 1620977257</math>
+
Liczby <math>x, y</math> muszą mieć przeciwną parzystość i&nbsp;być względnie pierwsze. Gdyby liczba <math>x</math> była nieparzysta, to modulo <math>4</math> mielibyśmy
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 4410}</math>||<math> 343475219</math>||<math> 718394137</math>||<math> 1714841501</math>||<math> 4312513897</math>||<math> 4433557501</math>||<math> 7302174197</math>
+
::<math>1 + 3 \cdot 0 \equiv 3 \!\! \pmod{4}</math>
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 4620}</math>||<math> 85363</math>||<math> 372751</math>||<math> 926879</math>||<math> 10645541</math>||<math> 11022827</math>||<math> 11027447</math>
+
Co jest niemożliwe. Zatem <math>x = 2 k</math>, a&nbsp;liczba <math>y</math> musi być nieparzysta. Otrzymujemy
 +
 
 +
::<math>p = 4 k^2 + 3 y^2 = 4 (k^2 + y^2) - y^2</math>
 +
 
 +
Ponieważ <math>p</math> jest liczbą pierwszą, to jedynie w&nbsp;przypadku gdy <math>k = y = 1</math> możliwa jest sytuacja, że <math>k = y</math>. Mielibyśmy wtedy <math>p = 7</math>, ale z&nbsp;założenia musi być <math>p \geqslant 19</math>. Wynika stąd, że <math>k \neq y</math>, zatem liczba <math>k^2 + y^2</math> ma dzielnik pierwszy <math>q</math> postaci <math>4 k + 1</math> (zobacz J24). Oczywiście <math>q \leqslant k^2 + y^2 < 4 k^2 + 3 y^2 = p</math>.
 +
 
 +
Modulo <math>q</math> możemy napisać
 +
 
 +
::<math>k^2 + y^2 \equiv 0 \!\! \pmod{q}</math>
 +
 
 +
Liczba pierwsza <math>q</math> nie może dzielić <math>y</math>, bo mielibyśmy <math>q \mid k</math>, czyli <math>q \mid p</math>, co jest niemożliwe. Rozpatrując równość <math>p = 4 (k^2 + y^2) - y^2</math> modulo <math>q</math>, dostajemy
 +
 
 +
::<math>p \equiv - y^2 \!\! \pmod{q}</math>
 +
 
 +
Wynika stąd natychmiast (zobacz J41 p.9 i&nbsp;p.6)
 +
 
 +
::<math>\left( {\small\frac{q}{p}} \right)_{\small{\!\! J}}
 +
= \left( {\small\frac{p}{q}} \right)_{\small{\!\! J}}
 +
= \left( {\small\frac{- y^2}{q}} \right)_{\small{\!\! J}}  
 +
= \left( {\small\frac{- 1}{q}} \right)_{\small{\!\! J}} \cdot \left( {\small\frac{y^2}{q}} \right)_{\small{\!\! J}}
 +
= \left( {\small\frac{- 1}{q}} \right)_{\small{\!\! J}} = 1</math>
 +
 
 +
Co kończy dowód.<br/>
 +
&#9633;
 +
{{\Spoiler}}
 +
 
 +
 
 +
 
 +
Twierdzenia K62 i&nbsp;K63 można uogólnić na wszystkie liczby pierwsze.<ref name="Gica1"/><br/>
 +
<span style="font-size: 110%; font-weight: bold;">Twierdzenie K64*</span><br/>
 +
Jeżeli <math>p \geqslant 11</math> jest liczbą pierwszą i <math>p \neq 13, 37</math>, to istnieje liczba pierwsza <math>q < p</math> postaci <math>4 k + 1</math> kwadratowa modulo <math>p</math>.
 +
 
 +
 
 +
 
 +
<span style="font-size: 110%; font-weight: bold;">Uwaga K65</span><br/>
 +
W tabeli przedstawiamy najmniejsze liczby pierwsze <math>q</math> postaci <math>4 k + 1</math> niekwadratowe modulo <math>m</math>.
 +
 
 +
:{| class="wikitable plainlinks"  style="font-size: 80%; text-align: center; margin-right: auto;"
 
|-
 
|-
| style="background:#ffd890;"|<math>\mathbf{ 4830}</math>||<math> 30427</math>||<math> 6020477</math>||<math> 16424981</math>||<math> 151254533</math>||<math> 229780123</math>||<math> 482610239</math>
+
! <math>\boldsymbol{m}</math>
 +
| <math>2</math> || <math>3</math> || <math>4</math> || <math>5</math> || <math>6</math> || <math>7</math> || <math>8</math> || <math>9</math> || <math>10</math> || <math>11</math> || <math>12</math> || <math>13</math> || <math>14</math> || <math>15</math> || <math>16</math> || <math>17</math> || <math>18</math> || <math>19</math> || <math>20</math> || <math>21</math> || <math>22</math> || <math>23</math> || <math>24</math> || <math>25</math> || <math>26</math> || <math>27</math> || <math>28</math> || <math>29</math> || <math>30</math> || <math>31</math> || <math>32</math> || <math>33</math> || <math>34</math> || <math>35</math> || <math>36</math> || <math>37</math> || <math>38</math> || <math>39</math> || <math>40</math>
 
|-
 
|-
| style="background:#ffd890;"|<math>\mathbf{ 5040}</math>||<math> 145866041</math>||<math> 226851517</math>||<math> 292104419</math>||<math> 517266257</math>||<math> 986618569</math>||<math> 1785262393</math>
+
! <math>\boldsymbol{q}</math>
 +
| style="background-color: red" | <math>-</math> || style="background-color: red" | <math>5</math> || style="background-color: red" | <math>-</math> || style="background-color: red" | <math>13</math> || <math>5</math> || <math>5</math> || <math>5</math> || <math>5</math> || style="background-color: red" | <math>13</math> || style="background-color: red" | <math>13</math> || <math>5</math> || <math>5</math> || <math>5</math> || <math>13</math> || <math>5</math> || <math>5</math> || <math>5</math> || <math>13</math> || <math>13</math> || <math>5</math> || <math>13</math> || <math>5</math> || <math>5</math> || <math>13</math> || <math>5</math> || <math>5</math> || <math>5</math> || <math>17</math> || <math>13</math> || <math>13</math> || <math>5</math> || <math>5</math> || <math>5</math> || <math>13</math> || <math>5</math> || <math>5</math> || <math>13</math> || <math>5</math> || <math>13</math>
 +
|}
 +
 
 +
 
 +
W kolejnej tabeli przedstawiamy najmniejsze liczby pierwsze <math>q</math> postaci <math>4 k + 3</math> niekwadratowe modulo <math>m</math>.
 +
 
 +
:{| class="wikitable plainlinks"  style="font-size: 80%; text-align: center; margin-right: auto;"
 
|-
 
|-
| style="background:#ffd890;"|<math>\mathbf{ 5250}</math>||<math> 2117239</math>||<math> 134051459</math>||<math> 444256783</math>||<math> 635071121</math>||<math> 3239335223</math>||<math> 3689988833</math>
+
! <math>\boldsymbol{m}</math>
 +
| <math>2</math> || <math>3</math> || <math>4</math> || <math>5</math> || <math>6</math> || <math>7</math> || <math>8</math> || <math>9</math> || <math>10</math> || <math>11</math> || <math>12</math> || <math>13</math> || <math>14</math> || <math>15</math> || <math>16</math> || <math>17</math> || <math>18</math> || <math>19</math> || <math>20</math> || <math>21</math> || <math>22</math> || <math>23</math> || <math>24</math> || <math>25</math> || <math>26</math> || <math>27</math> || <math>28</math> || <math>29</math> || <math>30</math> || <math>31</math> || <math>32</math> || <math>33</math> || <math>34</math> || <math>35</math> || <math>36</math> || <math>37</math> || <math>38</math> || <math>39</math> || <math>40</math>
 
|-
 
|-
| style="background:#ffd890;"|<math>\mathbf{ 5460}</math>||<math> 2283571</math>||<math> 11988607</math>||<math> 17327831</math>||<math> 18230447</math>||<math> 97175423</math>||<math> 168445523</math>
+
! <math>\boldsymbol{q}</math>  
|-
+
| style="background-color: red" | <math>-</math> || style="background-color: red" | <math>11</math> || <math>3</math> || <math>3</math> || style="background-color: red" | <math>11</math> || <math>3</math> || <math>3</math> || style="background-color: red" | <math>11</math> || <math>3</math> || <math>7</math> || <math>7</math> || <math>7</math> || <math>3</math> || <math>7</math> || <math>3</math> || <math>3</math> || <math>11</math> || <math>3</math> || <math>3</math> || <math>11</math> || <math>7</math> || <math>7</math> || <math>7</math> || <math>3</math> || <math>7</math> || <math>11</math> || <math>3</math> || <math>3</math> || <math>7</math> || <math>3</math> || <math>3</math> || <math>7</math> || <math>3</math> || <math>3</math> || <math>7</math> || <math>19</math> || <math>3</math> || <math>7</math> || <math>3</math>
| style="background:#ffd890;"|<math>\mathbf{ 5670}</math>||<math> 21206993</math>||<math> 42322087</math>||<math> 232282121</math>||<math> 530515507</math>||<math> 2074726021</math>||<math> 2176462667</math>
+
|}
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 5880}</math>||<math> 769792447</math>||<math> 1028745119</math>||<math> 2716511507</math>||<math> 2850255403</math>||<math> 4059527753</math>||<math> 4338343433</math>
+
 
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 6090}</math>||<math> 98202331</math>||<math> 218657237</math>||<math> 508050341</math>||<math> 965528153</math>||<math> 1963343323</math>||<math> 2133623147</math>
+
<span style="font-size: 110%; font-weight: bold;">Twierdzenie K66</span><br/>
|-
+
Jeżeli <math>m \geqslant 7</math> jest liczbą całkowitą postaci <math>4 k + 3</math>, to istnieje liczba pierwsza <math>q < m</math> postaci <math>4 k + 3</math> niekwadratowa modulo <math>m</math>.
| style="background:#ffd890;"|<math>\mathbf{ 6300}</math>||<math> 46452799</math>||<math> 161073877</math>||<math> 416581987</math>||<math> 444443777</math>||<math> 799148171</math>||<math> 1536915817</math>
+
 
|-
+
{{Spoiler|Style = font-style: italic; font-weight: bold; color: olive; text-decoration: underline;|Show=Dowód|Hide=Ukryj dowód}}
| style="background:#ffd890;"|<math>\mathbf{ 6510}</math>||<math> 155461</math>||<math> 11699279</math>||<math> 59259649</math>||<math> 82736531</math>||<math> 138908647</math>||<math> 156852947</math>
+
Ponieważ liczba <math>m - 4 \geqslant 3</math> jest postaci <math>4 k + 3</math>, to ma dzielnik pierwszy <math>q < m</math> postaci <math>4 k + 3</math> (zobacz C21). Czyli <math>m - 4 = k q</math> i&nbsp;z&nbsp;twierdzenia J41 p.9 dostajemy
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 6720}</math>||<math> 62347</math>||<math> 18249241</math>||<math> 402509117</math>||<math> 646946233</math>||<math> 694032349</math>||<math> 748855249</math>
+
::<math>\left( {\small\frac{q}{m}} \right)_{\small{\!\! J}} =
|-
+
- \left( {\small\frac{m}{q}} \right)_{\small{\!\! J}} =
| style="background:#ffd890;"|<math>\mathbf{ 6930}</math>||<math> 1664417</math>||<math> 3306839</math>||<math> 6703841</math>||<math> 10343167</math>||<math> 16988767</math>||<math> 17046329</math>
+
- \left( {\small\frac{k q + 4}{q}} \right)_{\small{\!\! J}} =
|-
+
- \left( {\small\frac{4}{q}} \right)_{\small{\!\! J}} = - 1</math>
| style="background:#ffd890;"|<math>\mathbf{ 7140}</math>||<math> 12331793</math>||<math> 21994589</math>||<math> 32695477</math>||<math> 135554233</math>||<math> 355138829</math>||<math> 730901161</math>
+
 
|-
+
Zatem <math>q</math> jest liczbą niekwadratową modulo <math>m</math>. Co należało pokazać.<br/>
| style="background:#ffd890;"|<math>\mathbf{ 7350}</math>||<math> 12683299</math>||<math> 21459209</math>||<math> 38446267</math>||<math> 423264613</math>||<math> 3158377081</math>||<math> 5208862573</math>
+
&#9633;
|-
+
{{\Spoiler}}
| style="background:#ffd890;"|<math>\mathbf{ 7560}</math>||<math> 7573327</math>||<math> 369901513</math>||<math> 2755541693</math>||<math> 2774476609</math>||<math> 3311703233</math>||<math> 5004136327</math>
+
 
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 7770}</math>||<math> 28549</math>||<math> 819317</math>||<math> 3721051</math>||<math> 11941571</math>||<math> 35273473</math>||<math> 46949093</math>
+
 
|-
+
Można też pokazać, że<ref name="Pollack2"/><br/>
| style="background:#ffd890;"|<math>\mathbf{ 7980}</math>||<math> 1024853</math>||<math> 355670309</math>||<math> 446786191</math>||<math> 547343483</math>||<math> 682871447</math>||<math> 1772834893</math>
+
<span style="font-size: 110%; font-weight: bold;">Twierdzenie K67*</span><br/>
|-
+
'''A.''' Jeżeli <math>p \geqslant 13</math> jest liczbą pierwszą, to istnieje liczba pierwsza <math>q < p</math> postaci <math>4 k + 1</math> niekwadratowa modulo <math>p</math>.
| style="background:#ffd890;"|<math>\mathbf{ 8190}</math>||<math> 7328437</math>||<math> 15275849</math>||<math> 17503261</math>||<math> 22737017</math>||<math> 27294053</math>||<math> 45150331</math>
+
 
|-
+
'''B.''' Jeżeli <math>p \geqslant 5</math> jest liczbą pierwszą, to istnieje liczba pierwsza <math>q < p</math> postaci <math>4 k + 3</math> niekwadratowa modulo <math>p</math>.
| style="background:#ffd890;"|<math>\mathbf{ 8400}</math>||<math> 8528483</math>||<math> 40313929</math>||<math> 243787771</math>||<math> 385895737</math>||<math> 467671013</math>||<math> 797154607</math>
+
 
 +
 
 +
 
 +
Zauważmy, że twierdzenie K67 można łatwo uogólnić na liczby całkowite dodatnie.<br/>
 +
<span style="font-size: 110%; font-weight: bold;">Twierdzenie K68</span><br/>
 +
'''A.''' Jeżeli <math>m \geqslant 6</math> jest liczbą całkowitą i <math>m \neq 10 , 11</math>, to istnieje liczba pierwsza <math>q < m</math> postaci <math>4 k + 1</math> niekwadratowa modulo <math>m</math>.
 +
 
 +
'''B.''' Jeżeli <math>m \geqslant 4</math> jest liczbą całkowitą i <math>m \neq 6 , 9</math>, to istnieje liczba pierwsza <math>q < m</math> postaci <math>4 k + 3</math> niekwadratowa modulo <math>m</math>.
 +
 
 +
{{Spoiler|Style = font-style: italic; font-weight: bold; color: olive; text-decoration: underline;|Show=Dowód|Hide=Ukryj dowód}}
 +
 
 +
'''Punkt B'''
 +
 
 +
Rozważmy liczby <math>m</math> postaci <math>m = 2^a 3^b</math>.
 +
 
 +
Jeżeli <math>3 \mid m</math>, to <math>11</math> jest liczbą niekwadratową modulo <math>m</math>, bo <math>\left( {\small\frac{11}{3}} \right)_{\small{\!\! J}} = - 1</math> (zobacz J55 i&nbsp;K41).
 +
 
 +
Jeżeli <math>3 \nmid m</math>, ale <math>8 \mid m</math>, to <math>8 \nmid (11 - 1)</math>, zatem liczba <math>11</math> jest liczbą niekwadratową modulo <math>m</math> (zobacz J55).
 +
 
 +
Jeżeli <math>3 \nmid m</math> i <math>8 \nmid m</math>, ale <math>4 \mid m</math>, to <math>4 \nmid (11 - 1)</math>, zatem liczba <math>11</math> jest liczbą niekwadratową modulo <math>m</math> (zobacz J55).
 +
 
 +
Jeżeli <math>m = 2</math>, to łatwo zauważamy, że nie istnieją liczby niekwadratowe modulo <math>2</math>.
 +
 
 +
 
 +
Zbierając:
 +
 
 +
:* jeśli liczba <math>m \geqslant 12</math> nie ma dzielnika pierwszego <math>p \geqslant 5</math>, czyli jest postaci <math>m = 2^a 3^b</math>, to liczba pierwsza <math>q = 11</math> jest mniejsza od <math>m</math>, jest postaci <math>4 k + 3</math> i&nbsp;jest liczbą niekwadratową modulo <math>m</math>.
 +
:* jeśli liczba <math>m \geqslant 12</math> ma dzielnik pierwszy <math>p \geqslant 5</math>, to istnieje liczba pierwsza <math>q < p \leqslant m</math> taka, że <math>q</math> jest postaci <math>4 k + 3</math> i&nbsp;jest liczbą niekwadratową modulo <math>m</math> (zobacz K67 i&nbsp;K41).
 +
 
 +
 
 +
Pozostaje wypisać dla liczb <math>3 \leqslant m \leqslant 11</math> najmniejsze liczby niekwadratowe, które są liczbami pierwszymi postaci <math>4 k + 3</math>.
 +
 
 +
<span style="font-size: 90%; color:black;">'''for'''(m = 3, 15, '''forprimestep'''(q = 3, 100, 4, '''if'''( isQR(q,m) == -1, '''print'''(m, "  ", q); '''break'''() )))</span>
 +
 
 +
::{| class="wikitable plainlinks"  style="font-size: 90%; text-align: center; margin-right: auto;"
 
|-
 
|-
| style="background:#ffd890;"|<math>\mathbf{ 8610}</math>||<math> 10892747</math>||<math> 17489623</math>||<math> 28416517</math>||<math> 55350017</math>||<math> 200631439</math>||<math> 449962543</math>
+
! <math>\boldsymbol{m}</math>
 +
| <math>3</math> || <math>4</math> || <math>5</math> || <math>6</math> || <math>7</math> || <math>8</math> || <math>9</math> || <math>10</math> || <math>11</math> || <math>12</math> || <math>13</math> || <math>14</math> || <math>15</math>
 
|-
 
|-
| style="background:#ffd890;"|<math>\mathbf{ 8820}</math>||<math> 275550449</math>||<math> 340210649</math>||<math> 375439381</math>||<math> 1299902701</math>||<math> 7189505563</math>||<math> 8000213747</math>
+
! <math>\boldsymbol{q}</math>  
|-
+
| style="background-color: red" | <math>11</math> || <math>3</math> || <math>3</math> || style="background-color: red" | <math>11</math> || <math>3</math> || <math>3</math> || style="background-color: red" | <math>11</math> || <math>3</math> || <math>7</math> || <math>7</math> || <math>7</math> || <math>3</math> || <math>7</math>
| style="background:#ffd890;"|<math>\mathbf{ 9030}</math>||<math> 31057003</math>||<math> 150282967</math>||<math> 634308509</math>||<math> 643690123</math>||<math> 2295863833</math>||<math> 2515095703</math>
+
|}
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 9240}</math>||<math> 53681</math>||<math> 14224981</math>||<math> 14432399</math>||<math> 23559377</math>||<math> 28467293</math>||<math> 42049001</math>
+
Widzimy, że twierdzenie jest prawdziwe dla <math>m \geqslant 4</math>, o ile <math>m \neq 6 , 9</math>.
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 9450}</math>||<math> 334554023</math>||<math> 488051653</math>||<math> 2038389299</math>||<math> 2162899399</math>||<math> 2445407273</math>||<math> 3057392207</math>
+
'''Punkt A'''
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 9660}</math>||<math> 707071</math>||<math> 125628439</math>||<math> 303544463</math>||<math> 441911263</math>||<math> 449336813</math>||<math> 511484261</math>
+
Rozważmy liczby <math>m</math> postaci <math>m = 2^a 3^b 5^c 7^d 11^e</math>.
 +
 
 +
Jeżeli jedna z&nbsp;liczb <math>3, 5, 7, 11</math> dzieli <math>m</math>, to <math>17</math> jest liczbą niekwadratową modulo <math>m</math>, bo
 +
<math>\left( {\small\frac{17}{3}} \right)_{\small{\!\! J}}
 +
= \left( {\small\frac{17}{5}} \right)_{\small{\!\! J}}
 +
= \left( {\small\frac{17}{7}} \right)_{\small{\!\! J}}
 +
= \left( {\small\frac{17}{11}} \right)_{\small{\!\! J}}
 +
= - 1</math>.
 +
 
 +
Jeżeli żadna z&nbsp;liczb <math>3, 5, 7, 11</math> nie dzieli <math>m</math>, ale <math>8 \mid m</math>, to <math>8 \nmid (5 - 1)</math>, zatem liczba <math>5</math> jest liczbą niekwadratową modulo <math>m</math>.
 +
 
 +
Jeżeli żadna z&nbsp;liczb <math>3, 5, 7, 11</math> nie dzieli <math>m</math> i <math>8 \nmid m</math>, ale <math>4 \mid m</math>, to nie istnieją liczby pierwsze postaci <math>4 k + 1</math> niekwadratowe modulo <math>m</math>, bo <math>4 \mid [(4 k + 1) - 1]</math>
 +
 
 +
Jeżeli <math>m = 2</math>, to łatwo zauważamy, że nie istnieją liczby niekwadratowe modulo <math>2</math>.
 +
 
 +
Zbierając:
 +
 
 +
:* jeśli liczba <math>m \geqslant 18</math> nie ma dzielnika pierwszego <math>p \geqslant 13</math>, czyli jest postaci <math>m = 2^a 3^b 5^c 7^d 11^e</math>, to liczba pierwsza <math>q = 5</math> lub <math>q = 17</math> jest mniejsza od <math>m</math>, jest postaci <math>4 k + 1</math> i&nbsp;jest liczbą niekwadratową modulo <math>m</math>.
 +
:* jeśli liczba <math>m \geqslant 18</math> ma dzielnik pierwszy <math>p \geqslant 13</math>, to istnieje liczba pierwsza <math>q < p \leqslant m</math> taka, że <math>q</math> jest postaci <math>4 k + 1</math> i&nbsp;jest liczbą niekwadratową modulo <math>m</math> (zobacz K67 i&nbsp;K41).
 +
 
 +
Pozostaje wypisać dla liczb <math>3 \leqslant m \leqslant 17</math> najmniejsze liczby niekwadratowe, które są liczbami pierwszymi postaci <math>4 k + 1</math>.
 +
 
 +
<span style="font-size: 90%; color:black;">'''for'''(m = 3, 20, '''forprimestep'''(q = 1, 100, 4, '''if'''( isQR(q,m) == -1, '''print'''(m, "  ", q); '''break'''() )))</span>
 +
 
 +
::{| class="wikitable plainlinks"  style="font-size: 90%; text-align: center; margin-right: auto;"
 
|-
 
|-
| style="background:#ffd890;"|<math>\mathbf{ 9870}</math>||<math> 16561691</math>||<math> 26691349</math>||<math> 373909451</math>||<math> 558247033</math>||<math> 626630117</math>||<math> 1074793063</math>
+
! <math>\boldsymbol{m}</math>
 +
| <math>3</math> || <math>4</math> || <math>5</math> || <math>6</math> || <math>7</math> || <math>8</math> || <math>9</math> || <math>10</math> || <math>11</math> || <math>12</math> || <math>13</math> || <math>14</math> || <math>15</math> || <math>16</math> || <math>17</math> || <math>18</math> || <math>19</math> || <math>20</math>
 
|-
 
|-
| style="background:#ffd890;"|<math>\mathbf{ 10080}</math>||<math> 3363089</math>||<math> 35937059</math>||<math> 57814343</math>||<math> 83864653</math>||<math> 264068017</math>||<math> 2293066417</math>
+
! <math>\boldsymbol{q}</math>
|-
+
| style="background-color: red" | <math>5</math> || style="background-color: red" | <math>-</math> || style="background-color: red" | <math>13</math> || <math>5</math> || <math>5</math> || <math>5</math> || <math>5</math> || style="background-color: red" | <math>13</math> || style="background-color: red" | <math>13</math> || <math>5</math> || <math>5</math> || <math>5</math> || <math>13</math> || <math>5</math> || <math>5</math> || <math>5</math> || <math>13</math> || <math>13</math>
| style="background:#ffd890;"|<math>\mathbf{ 10290}</math>||<math> 459609859</math>||<math> 522069971</math>||<math> 535273337</math>||<math> 720980111</math>||<math> 1617247087</math>||<math> 1769323693</math>
+
|}
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 10500}</math>||<math> 38610347</math>||<math> 185388121</math>||<math> 511207351</math>||<math> 512002717</math>||<math> 573447551</math>||<math> 728734969</math>
+
Widzimy, że twierdzenie jest prawdziwe dla <math>m \geqslant 6</math>, o ile <math>m \neq 10 , 11</math>.<br/>
|-
+
&#9633;
| style="background:#ffd890;"|<math>\mathbf{ 10710}</math>||<math> 2781203</math>||<math> 10327159</math>||<math> 15741997</math>||<math> 161184019</math>||<math> 290334601</math>||<math> 387848743</math>
+
{{\Spoiler}}
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 10920}</math>||<math> 527909</math>||<math> 8754457</math>||<math> 19711711</math>||<math> 68442943</math>||<math> 70092481</math>||<math> 108555763</math>
+
 
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 11130}</math>||<math> 187009</math>||<math> 74743931</math>||<math> 1717072597</math>||<math> 2241197341</math>||<math> 3885152797</math>||<math> 5442728839</math>
+
<span style="font-size: 110%; font-weight: bold;">Twierdzenie K69</span><br/>
|-
+
Jeżeli <math>p \geqslant 5</math> jest liczbą pierwszą, to istnieje liczba pierwsza nieparzysta <math>q < p</math> taka, że <math>\left( {\small\frac{p}{q}} \right)_{\small{\!\! J}} = - 1 .</math>
| style="background:#ffd890;"|<math>\mathbf{ 11340}</math>||<math> 13865323</math>||<math> 151172779</math>||<math> 155052347</math>||<math> 169766761</math>||<math> 417004037</math>||<math> 759377761</math>
+
 
|-
+
{{Spoiler|Style = font-style: italic; font-weight: bold; color: olive; text-decoration: underline;|Show=Dowód|Hide=Ukryj dowód}}
| style="background:#ffd890;"|<math>\mathbf{ 11550}</math>||<math> 166601</math>||<math> 178151</math>||<math> 189701</math>||<math> 2902951</math>||<math> 2939267</math>||<math> 6906061</math>
+
Łatwo sprawdzamy, że
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 11760}</math>||<math> 15296227</math>||<math> 115733179</math>||<math> 793412467</math>||<math> 2045327461</math>||<math> 3317282629</math>||<math> 3405094727</math>
+
::<math>\left( {\small\frac{5}{3}} \right)_{\small{\!\! J}} = \left( {\small\frac{7}{5}} \right)_{\small{\!\! J}} = \left( {\small\frac{11}{3}} \right)_{\small{\!\! J}} = - 1</math>
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 11970}</math>||<math> 70627031</math>||<math> 81131437</math>||<math> 190977547</math>||<math> 295424263</math>||<math> 435613939</math>||<math> 436230467</math>
+
(zobacz J41&nbsp;p.7). Zatem dowód wystarczy przeprowadzić dla <math>p \geqslant 13</math>.
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 12180}</math>||<math> 96579871</math>||<math> 196123667</math>||<math> 1414855181</math>||<math> 1594532899</math>||<math> 1852156771</math>||<math> 5477685029</math>
+
'''A. Liczba pierwsza''' <math>\, \boldsymbol{p} \,</math> '''jest postaci''' <math>\, \boldsymbol{4 k + 1}</math>
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 12390}</math>||<math> 355974491</math>||<math> 1228212781</math>||<math> 1597738157</math>||<math> 2356239043</math>||<math> 2537515919</math>||<math> 2664004501</math>
+
Niech liczba <math>q</math> będzie najmniejszą '''nieparzystą''' liczbą niekwadratową modulo <math>p</math>. Z&nbsp;twierdzenia K25 wiemy, że dla <math>p \geqslant 5</math> liczba <math>q</math> jest liczbą pierwszą i&nbsp;jest mniejsza od <math>p</math>. Ponieważ <math>p \equiv 1 \!\! \pmod{4}</math>, to z&nbsp;twierdzenia J41&nbsp;p.9 otrzymujemy natychmiast
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 12600}</math>||<math> 558431</math>||<math> 4885897</math>||<math> 62631409</math>||<math> 222308641</math>||<math> 247236973</math>||<math> 597208309</math>
+
<div style="margin-top: 1em; margin-bottom: 1em;">
|-
+
::<math>\left( {\small\frac{p}{q}} \right)_{\small{\!\! J}} = \left( {\small\frac{q}{p}} \right)_{\small{\!\! J}} = - 1</math>
| style="background:#ffd890;"|<math>\mathbf{ 12810}</math>||<math> 10981339</math>||<math> 73391203</math>||<math> 614195423</math>||<math> 722428933</math>||<math> 1804485667</math>||<math> 2011342889</math>
+
</div>
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 13020}</math>||<math> 37278391</math>||<math> 396360829</math>||<math> 477013687</math>||<math> 1035592279</math>||<math> 1668997513</math>||<math> 1740405707</math>
+
'''B. Liczba pierwsza''' <math>\, \boldsymbol{p} \,</math> '''jest postaci''' <math>\, \boldsymbol{4 k + 3}</math>
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 13230}</math>||<math> 4705247</math>||<math> 43971617</math>||<math> 150462859</math>||<math> 3214143193</math>||<math> 4385611183</math>||<math> 6156888427</math>
+
Z twierdzenia K61 wynika, że dla każdej liczby pierwszej <math>p \geqslant 11</math> postaci <math>4 k + 3</math> istnieje liczba pierwsza <math>q < p</math> taka, że <math>q</math> jest postaci <math>4 k + 3</math> i&nbsp;jest liczbą kwadratową modulo <math>p</math>. Ponieważ <math>p \equiv q \equiv 3 \!\! \pmod{4}</math>, to z&nbsp;twierdzenia J41 p.9 otrzymujemy natychmiast
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 13440}</math>||<math> 1560997</math>||<math> 2070517</math>||<math> 319796189</math>||<math> 397320779</math>||<math> 534628103</math>||<math> 1466338729</math>
+
<div style="margin-top: 1em; margin-bottom: 1em;">
|-
+
::<math>\left( {\small\frac{p}{q}} \right)_{\small{\!\! J}} = - \left( {\small\frac{q}{p}} \right)_{\small{\!\! J}} = - 1</math>
| style="background:#ffd890;"|<math>\mathbf{ 13650}</math>||<math> 96997</math>||<math> 8628157</math>||<math> 23309989</math>||<math> 84831493</math>||<math> 95865989</math>||<math> 183786877</math>
+
</div>
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 13860}</math>||<math> 110437</math>||<math> 124297</math>||<math> 138157</math>||<math> 152947</math>||<math> 166807</math>||<math> 180667</math>
+
Co kończy dowód.<br/>
|-
+
&#9633;
| style="background:#ffd890;"|<math>\mathbf{ 14070}</math>||<math> 6446353</math>||<math> 6976289</math>||<math> 9167027</math>||<math> 315420997</math>||<math> 324294169</math>||<math> 850130293</math>
+
{{\Spoiler}}
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 14280}</math>||<math> 8022137</math>||<math> 46017523</math>||<math> 49573471</math>||<math> 84264127</math>||<math> 201286747</math>||<math> 664107853</math>
+
 
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 14490}</math>||<math> 4421849</math>||<math> 7258067</math>||<math> 55181701</math>||<math> 266196461</math>||<math> 400560449</math>||<math> 658093439</math>
+
<span style="font-size: 110%; font-weight: bold;">Zadanie K70</span><br/>
|-
+
Udowodnić twierdzenie K69 w&nbsp;przypadku, gdy liczba pierwsza <math>p \geqslant 19</math> jest postaci <math>4 k + 3</math>, nie korzystając z&nbsp;twierdzenia K61.
| style="background:#ffd890;"|<math>\mathbf{ 14700}</math>||<math> 14365553</math>||<math> 79088123</math>||<math> 578429339</math>||<math> 1590374273</math>||<math> 1620663103</math>||<math> 1692678277</math>
+
 
|-
+
{{Spoiler|Style = font-style: italic; font-weight: bold; color: olive; text-decoration: underline;|Show=Rozwiązanie|Hide=Ukryj rozwiązanie}}
| style="background:#ffd890;"|<math>\mathbf{ 14910}</math>||<math> 1313271217</math>||<math> 1398822683</math>||<math> 3458123993</math>||<math> 5050258823</math>||<math> 8564509277</math>||
+
Z założenia <math>p = 4 k + 3</math>. Liczba <math>k</math> może być postaci <math>k = 3 j</math>, <math>k = 3 j + 1</math> i <math>k = 3 j + 2</math>. Odpowiada to liczbom pierwszym postaci <math>p = 12 j + 3</math>, <math>p = 12 j + 7</math> i <math>p = 12 j + 11</math>.
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 15120}</math>||<math> 643929523</math>||<math> 1697175937</math>||<math> 3456724013</math>||<math> 3604668029</math>||<math> 5105194837</math>||<math> 5972188679</math>
+
Ponieważ nie ma liczb pierwszych <math>p \geqslant 19</math> i&nbsp;będących postaci <math>p = 12 j + 3</math>, to pozostaje rozważyć przypadki <math>p = 12 j + 7</math> i <math>p = 12 j + 11</math>.
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 15330}</math>||<math> 423644591</math>||<math> 792183047</math>||<math> 1013912467</math>||<math> 1239474463</math>||<math> 1707297247</math>||<math> 1918187839</math>
+
'''A. Liczba pierwsza''' <math>\, \boldsymbol{p} \,</math> '''jest postaci''' <math>\, \boldsymbol{12 j + 11}</math>
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 15540}</math>||<math> 15113711</math>||<math> 49877209</math>||<math> 90195289</math>||<math> 113317157</math>||<math> 542625751</math>||<math> 801528769</math>
+
Wiemy, że w&nbsp;tym przypadku <math>\left( {\small\frac{3}{p}} \right)_{\small{\!\! J}} = + 1</math> (zobacz J46). Mamy
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 15750}</math>||<math> 849869</math>||<math> 281904709</math>||<math> 741349123</math>||<math> 1196157763</math>||<math> 1264569469</math>||<math> 1628362679</math>
+
<div style="margin-top: 1em; margin-bottom: 1em;">
|-
+
::<math>\left( {\small\frac{p}{3}} \right)_{\small{\!\! J}} = - \left( {\small\frac{3}{p}} \right)_{\small{\!\! J}} = - 1</math>
| style="background:#ffd890;"|<math>\mathbf{ 15960}</math>||<math> 1847</math>||<math> 3178141</math>||<math> 47378869</math>||<math> 105168887</math>||<math> 140273363</math>||<math> 315104063</math>
+
</div>
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 16170}</math>||<math> 3360767</math>||<math> 7292851</math>||<math> 8511059</math>||<math> 10038841</math>||<math> 26643899</math>||<math> 35098631</math>
+
Czyli wystarczy przyjąć <math>q = 3</math>.
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 16380}</math>||<math> 339263</math>||<math> 2893309</math>||<math> 7118387</math>||<math> 189387287</math>||<math> 209606629</math>||<math> 266620267</math>
+
'''B. Liczba pierwsza''' <math>\, \boldsymbol{p} \,</math> '''jest postaci''' <math>\, \boldsymbol{12 j + 7}</math>
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 16590}</math>||<math> 381816437</math>||<math> 695288453</math>||<math> 1555003309</math>||<math> 2096563163</math>||<math> 2844269837</math>||<math> 4876784057</math>
+
Wiemy, że w&nbsp;tym przypadku <math>\left( {\small\frac{- 1}{p}} \right)_{\small{\!\! J}} = \left( {\small\frac{3}{p}} \right)_{\small{\!\! J}} = - 1</math> (zobacz J41&nbsp;p.6 oraz J46). Otrzymujemy
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 16800}</math>||<math> 143614397</math>||<math> 681135667</math>||<math> 1337835403</math>||<math> 1547432483</math>||<math> 1809315247</math>||<math> 2850704453</math>
+
<div style="margin-top: 1em; margin-bottom: 1em;">
|-
+
::<math>\left( {\small\frac{p}{p - 12}} \right)_{\small{\!\! J}} = - \left( {\small\frac{p - 12}{p}} \right)_{\small{\!\! J}} = - \left( {\small\frac{- 12}{p}} \right)_{\small{\!\! J}} = \left[ - \left( {\small\frac{- 1}{p}} \right)_{\small{\!\! J}} \right] \cdot \left( {\small\frac{2^2}{p}} \right)_{\small{\!\! J}} \cdot \left( {\small\frac{3}{p}} \right)_{\small{\!\! J}} = \left( {\small\frac{3}{p}} \right)_{\small{\!\! J}} = -1</math>
| style="background:#ffd890;"|<math>\mathbf{ 17010}</math>||<math> 83709047</math>||<math> 1041057263</math>||<math> 1265416651</math>||<math> 1665987569</math>||<math> 2529254831</math>||<math> 4576482871</math>
+
</div>
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 17220}</math>||<math> 1452511</math>||<math> 10612519</math>||<math> 16814099</math>||<math> 216348577</math>||<math> 382728461</math>||<math> 532388587</math>
+
Ponieważ liczba <math>p - 12 \geqslant 7</math> jest nieparzysta, to musi istnieć nieparzysty dzielnik pierwszy <math>q < p</math> liczby <math>p - 12</math> taki, że <math>\left( {\small\frac{p}{q}} \right)_{\small{\!\! J}} = - 1</math>. W&nbsp;przeciwnym razie z&nbsp;twierdzenia J41&nbsp;p.4 mielibyśmy <math>\left( {\small\frac{p}{p - 12}} \right)_{\small{\!\! J}} = 1</math>. Co kończy dowód.<br/>
|-
+
&#9633;
| style="background:#ffd890;"|<math>\mathbf{ 17430}</math>||<math> 25471</math>||<math> 137293657</math>||<math> 632342783</math>||<math> 960368107</math>||<math> 5503090291</math>||<math> 6704824913</math>
+
{{\Spoiler}}
|-
+
 
| style="background:#ffd890;"|<math>\mathbf{ 17640}</math>||<math> 193607</math>||<math> 33411011</math>||<math> 511632469</math>||<math> 819466853</math>||<math> 960062011</math>||<math> 1178974859</math>
 
|-
 
| style="background:#ffd890;"|<math>\mathbf{ 17850}</math>||<math> 1728911</math>||<math> 4584401</math>||<math> 7627309</math>||<math> 77294621</math>||<math> 99462899</math>||<math> 170832131</math>
 
|-
 
| style="background:#ffd890;"|<math>\mathbf{ 18060}</math>||<math> 51826531</math>||<math> 210101329</math>||<math> 235062067</math>||<math> 605501191</math>||<math> 1083324911</math>||<math> 2230437163</math>
 
|-
 
| style="background:#ffd890;"|<math>\mathbf{ 18270}</math>||<math> 1989811</math>||<math> 825611753</math>||<math> 2281896011</math>||<math> 2468212757</math>||<math> 2968471043</math>||<math> 4958366753</math>
 
|-
 
| style="background:#ffd890;"|<math>\mathbf{ 18480}</math>||<math> 194839</math>||<math> 1044739</math>||<math> 1075237</math>||<math> 2169967</math>||<math> 2467369</math>||<math> 3135841</math>
 
|-
 
| style="background:#ffd890;"|<math>\mathbf{ 18690}</math>||<math> 90365419</math>||<math> 551760331</math>||<math> 1165944209</math>||<math> 1887703247</math>||<math> 1932471091</math>||<math> 3396823123</math>
 
|-
 
| style="background:#ffd890;"|<math>\mathbf{ 18900}</math>||<math> 804113</math>||<math> 1087721813</math>||<math> 2462595313</math>||<math> 3420103007</math>||<math> 5068097201</math>||<math> 5268928117</math>
 
|-
 
| style="background:#ffd890;"|<math>\mathbf{ 19110}</math>||<math> 1023487</math>||<math> 6202067</math>||<math> 6640901</math>||<math> 19304167</math>||<math> 78325591</math>||<math> 152030453</math>
 
|-
 
| style="background:#ffd890;"|<math>\mathbf{ 19320}</math>||<math> 13154717</math>||<math> 123351947</math>||<math> 180065461</math>||<math> 191400653</math>||<math> 307980523</math>||<math> 526607503</math>
 
|-
 
| style="background:#ffd890;"|<math>\mathbf{ 19530}</math>||<math> 1773689</math>||<math> 128832049</math>||<math> 226504217</math>||<math> 544697521</math>||<math> 880832749</math>||<math> 1511819633</math>
 
|-
 
| style="background:#ffd890;"|<math>\mathbf{ 19740}</math>||<math> 216443629</math>||<math> 1460073841</math>||<math> 2172351869</math>||<math> 3696955411</math>||<math> 4020404251</math>||<math> 4234603313</math>
 
|-
 
| style="background:#ffd890;"|<math>\mathbf{ 19950}</math>||<math> 142699</math>||<math> 302287</math>||<math> 661547</math>||<math> 64740661</math>||<math> 176566177</math>||<math> 562542581</math>
 
|-
 
| style="background:#ffd890;"|<math>\mathbf{ 20160}</math>||<math> 77727823</math>||<math> 585546277</math>||<math> 1013154997</math>||<math> 1309662637</math>||<math> 2007871577</math>||<math> 2231189419</math>
 
|-
 
| style="background:#ffd890;"|<math>\mathbf{ 20370}</math>||<math> 1216213</math>||<math> 7991839</math>||<math> 156234857</math>||<math> 1222246309</math>||<math> 2382533789</math>||<math> 2523592993</math>
 
|-
 
| style="background:#ffd890;"|<math>\mathbf{ 20580}</math>||<math> 2219557</math>||<math> 508048529</math>||<math> 906000787</math>||<math> 1111806827</math>||<math> 2134225213</math>||<math> 6894499589</math>
 
|-
 
| style="background:#ffd890;"|<math>\mathbf{ 20790}</math>||<math> 2397931</math>||<math> 4022297</math>||<math> 4043087</math>||<math> 15314617</math>||<math> 26974879</math>||<math> 35575247</math>
 
|-
 
| style="background:#ffd890;"|<math>\mathbf{ 21000}</math>||<math> 49402277</math>||<math> 263368843</math>||<math> 701455591</math>||<math> 2403274567</math>||<math> 3097244987</math>||<math> 5984865767</math>
 
|}
 
<br/>
 
&#9633;
 
{{\Spoiler}}
 
  
  
  
<span style="font-size: 110%; font-weight: bold;">Twierdzenie C57</span><br/>
 
Niech <math>n \in \mathbb{Z}_+</math> oraz <math>a, d, k, k_0 \in \mathbb{Z}</math>. Jeżeli liczby <math>d</math> i <math>n</math> są względnie pierwsze, to reszty <math>r_1, r_2, \ldots, r_n</math> z&nbsp;dzielenia <math>n</math> liczb <math>x_k</math> postaci
 
  
::<math>x_k = a + k d \qquad</math> dla <math>\; k = k_0 + 1, \ldots, k_0 + n</math>
 
  
przez liczbę <math>n</math> są wszystkie różne i&nbsp;tworzą zbiór <math>S = \{ 0, 1, \ldots, n - 1 \}</math>. W&nbsp;szczególności wynika stąd, że wśród liczb <math>x_k</math> jedna jest podzielna przez <math>n</math>.
 
  
{{Spoiler|Style = font-style: italic; font-weight: bold; color: olive; text-decoration: underline;|Show=Dowód|Hide=Ukryj dowód}}
 
Przypuśćmy, że dla pewnych różnych liczb naturalnych <math>i, j</math> takich, że <math>1 \leqslant i < j \leqslant n</math> liczby <math>a + (k_0 + i) d</math> oraz <math>a + (k_0 + j) d</math> dają tę samą resztę przy dzieleniu przez <math>n</math>. Zatem różnica tych liczb jest podzielna przez <math>n</math>
 
  
::<math>n \mid [a + (k_0 + j) d] - [a + (k_0 + i) d]</math>
 
  
Czyli
 
  
::<math>n \mid d (j - i)</math>
 
 
Ponieważ liczby <math>d</math> i <math>n</math> są względnie pierwsze, to na mocy lematu Euklidesa (twierdzenie C74), mamy
 
 
::<math>n \mid (j - i)</math>
 
 
Co jest niemożliwe, bo <math>1 \leqslant j - i \leqslant n - 1 < n</math>.
 
 
Zatem reszty <math>r_1, r_2, \ldots, r_n</math> są wszystkie różne, a&nbsp;ponieważ jest ich <math>n</math>, czyli tyle ile jest różnych reszt z&nbsp;dzielenia przez liczbę <math>n</math>, to zbiór tych reszt jest identyczny ze zbiorem reszt z&nbsp;dzielenia przez <math>n</math>, czyli ze zbiorem <math>S = \{ 0, 1, 2, \ldots, n - 1 \}</math>.<br/>
 
&#9633;
 
{{\Spoiler}}
 
 
 
 
<span style="font-size: 110%; font-weight: bold;">Twierdzenie C58</span><br/>
 
Niech <math>d \in \mathbb{Z}_+</math> i&nbsp;niech będzie dany ciąg arytmetyczny liczb pierwszych o&nbsp;długości <math>n</math>
 
 
::<math>p_k = p_0 + k d \qquad</math> dla <math>\; k = 0, 1, \ldots, n - 1</math>
 
 
Z żądania, aby dany ciąg arytmetyczny był ciągiem arytmetycznym liczb pierwszych, wynika, że muszą być spełnione następujące warunki
 
 
:* <math>p_0 \nmid d</math>
 
:* <math>n \leqslant p_0</math>
 
:* <math>P(n - 1) \mid d</math>
 
:* jeżeli liczba pierwsza <math>q</math> nie dzieli <math>d</math>, to <math>n \leqslant q</math>
 
 
gdzie <math>P(t)</math> jest iloczynem wszystkich liczb pierwszych nie większych od <math>t</math>.
 
 
{{Spoiler|Style = font-style: italic; font-weight: bold; color: olive; text-decoration: underline;|Show=Dowód|Hide=Ukryj dowód}}
 
'''Punkt 1.'''<br/>
 
Gdyby <math>p_0 \mid d</math>, to dla <math>k \geqslant 1</math> mielibyśmy <math>p_k = p_0 \left( 1 + k \cdot \frac{d}{p_0} \right)</math> i&nbsp;wszystkie te liczby byłyby złożone.
 
 
'''Punkt 2.'''<br/>
 
Ponieważ <math>p_0</math> dzieli <math>p_0 + p_0 d</math>, więc musi być <math>n - 1 < p_0</math>, czyli <math>n \leqslant p_0</math>.
 
 
'''Punkt 3.'''<br/>
 
Niech <math>q</math> będzie liczbą pierwszą mniejszą od <math>n</math>, a&nbsp;liczby <math>r_k</math> będą resztami uzyskanymi z&nbsp;dzielenia liczb <math>p_k = p_0 + k d</math> przez <math>q</math>, dla <math>k = 0, 1, \ldots, q - 1</math>. Ponieważ z&nbsp;założenia liczby <math>p_0, \ldots, p_{n - 1}</math> są liczbami pierwszymi większymi od <math>q</math> (zauważmy, że <math>p_0 \geqslant n</math>), to żadna z&nbsp;reszt <math>r_k</math> nie może być równa zeru. Czyli mamy <math>q</math> reszt mogących przyjmować jedynie <math>q - 1</math> różnych wartości. Zatem istnieją różne liczby <math>i, j</math>, takie że <math>0 \leqslant i < j \leqslant q - 1</math>, dla których <math>r_i = r_j</math>. Wynika stąd, że różnica liczb
 
 
::<math>p_j - p_i = (p_0 + j d) - (p_0 + i d) = d (j - i)</math>
 
 
musi być podzielna przez <math>q</math>. Ponieważ <math>q \nmid (j - i)</math>, bo <math>1 \leqslant j - i \leqslant q - 1 < q</math>, zatem z&nbsp;lematu Euklidesa <math>q \mid d</math>.
 
 
Z uwagi na fakt, że jest tak dla każdej liczby pierwszej <math>q < n</math>, liczba <math>d</math> musi być podzielna przez
 
 
::<math>P(n - 1) = \prod_{q < n} q</math>
 
 
'''Punkt 4.'''<br/>
 
Ponieważ <math>P(n - 1)|d</math>, to wszystkie liczby pierwsze mniejsze od <math>n</math> muszą być dzielnikami <math>d</math>. Wynika stąd, że jeśli liczba pierwsza <math>q</math> nie dzieli <math>d</math>, to musi być <math>q \geqslant n</math>. Co należało pokazać.<br/>
 
&#9633;
 
{{\Spoiler}}
 
 
 
 
<span style="font-size: 110%; font-weight: bold;">Uwaga C59</span><br/>
 
Czasami, zamiast pisać „ciąg arytmetyczny liczb pierwszych”, będziemy posługiwali się skrótem PAP od angielskiej nazwy „''prime arithmetic progression''”. Konsekwentnie zapis PAP-<math>n</math> będzie oznaczał ciąg arytmetyczny liczb pierwszych o&nbsp;długości <math>n</math>, a&nbsp;zapis PAP<math>(n, d, q)</math> ciąg arytmetyczny liczb pierwszych o&nbsp;długości <math>n</math>, pierwszym wyrazie <math>q</math> i&nbsp;różnicy <math>d</math>.
 
 
 
 
<span style="font-size: 110%; font-weight: bold;">Uwaga C60</span><br/>
 
Jakkolwiek sądzimy, że istnieje nieskończenie wiele ciągów arytmetycznych liczb pierwszych rozpoczynających się od dowolnej liczby pierwszej <math>q</math> i&nbsp;o&nbsp;dowolnej długości <math>3 \leqslant n \leqslant q</math>, to obecnie jest to tylko nieudowodnione przypuszczenie.
 
 
Dlatego '''nawet dla najmniejszej''' liczby pierwszej <math>q</math> takiej, że <math>q \nmid d</math> nierówność <math>n \leqslant q</math>, pokazana w&nbsp;twierdzeniu C58, pozostaje nadal tylko oszacowaniem. W&nbsp;szczególności nie możemy z&nbsp;góry przyjmować, że dla liczby <math>n = q</math> znajdziemy taką liczbę <math>d</math> będącą wielokrotnością liczby <math>P(q - 1)</math> i&nbsp;niepodzielną przez <math>q</math>, że będzie istniał PAP<math>(q, d, q)</math>.
 
 
 
 
<span style="font-size: 110%; font-weight: bold;">Przykład C61</span><br/>
 
Rozważmy dwie różnice <math>d_1 = 6 = 2 \cdot 3</math> oraz <math>d_2 = 42 = 2 \cdot 3 \cdot 7</math>. Zauważmy, że liczba pierwsza <math>5</math> nie dzieli ani <math>d_1</math>, ani <math>d_2</math>. Co więcej, liczba pierwsza <math>5</math> jest '''najmniejszą''' liczbą pierwszą, która nie dzieli rozpatrywanych różnic, zatem nierówność <math>n \leqslant 5</math> zapewnia najmocniejsze oszacowanie długości ciągu <math>n</math>. Łatwo sprawdzamy w&nbsp;zamieszczonych tabelach, że dla <math>d = 6</math> oraz dla <math>d = 42</math> są ciągi o&nbsp;długości <math>3, 4, 5</math>, ale nie ma ciągów o&nbsp;długości <math>6, 7, \ldots</math>
 
 
W szczególności z&nbsp;twierdzenia C58 wynika, że szukając ciągów arytmetycznych liczb pierwszych o&nbsp;określonej długości <math>n</math>, należy szukać ich tylko dla różnic <math>d</math> będących wielokrotnością liczby <math>P(n - 1)</math>.
 
 
 
 
<span style="font-size: 110%; font-weight: bold;">Zadanie C62</span><br/>
 
Wiemy, że liczby pierwsze <math>p > 3</math> można przedstawić w&nbsp;jednej z&nbsp;postaci <math>6 k - 1</math> lub <math>6 k + 1</math>. Pokazać, że jeżeli <math>p_0 = 3</math>, to dwa następne wyrazu rosnącego ciągu arytmetycznego liczb pierwszych są różnych postaci.
 
 
{{Spoiler|Style = font-style: italic; font-weight: bold; color: olive; text-decoration: underline;|Show=Rozwiązanie|Hide=Ukryj rozwiązanie}}
 
Ponieważ <math>p_0 = 3</math>, a&nbsp;rozpatrywany PAP jest rosnący, to kolejne wyrazy ciągu są większe od liczby <math>3</math> i&nbsp;mogą być przedstawione w&nbsp;jednej z&nbsp;postaci <math>6 k - 1</math> lub <math>6 k + 1</math>. Z&nbsp;twierdzenia C58 wiemy, że musi być <math>n \leqslant p_0 = 3</math>, czyli długość rozpatrywanego ciągu arytmetycznego liczb pierwszych wynosi dokładnie <math>3</math> i&nbsp;istnieją tylko dwa następne wyrazy.
 
 
Rozważmy ciąg arytmetyczny liczb pierwszych składający się z&nbsp;trzech wyrazów <math>p, q, r</math> takich, że <math>p = 3</math>. Mamy
 
 
::<math>r = q + d = q + (q - p) = 2 q - p</math>
 
 
Zatem
 
 
::<math>r + q = 3 q - 3</math>
 
 
Widzimy, że prawa strona powyższej równości jest podzielna przez <math>3</math>. Zatem liczby po lewej stronie wypisanych wyżej równości muszą być różnych postaci, bo tylko w&nbsp;takim przypadku lewa strona równości będzie również podzielna przez <math>3</math>.<br/>
 
&#9633;
 
{{\Spoiler}}
 
 
 
 
<span style="font-size: 110%; font-weight: bold;">Zadanie C63</span><br/>
 
Wiemy, że liczby pierwsze <math>p > 3</math> można przedstawić w&nbsp;jednej z&nbsp;postaci <math>6 k - 1</math> lub <math>6 k + 1</math>. Pokazać, że wszystkie wyrazy rosnącego ciągu arytmetycznego liczb pierwszych <math>p_0, p_1, \ldots, p_{n - 1}</math>, gdzie <math>p_0 \geqslant 5</math> i <math>n \geqslant 3</math> muszą być jednakowej postaci.
 
 
{{Spoiler|Style = font-style: italic; font-weight: bold; color: olive; text-decoration: underline;|Show=Rozwiązanie|Hide=Ukryj rozwiązanie}}
 
Niech liczby <math>p, q, r</math> będą trzema kolejnymi (dowolnie wybranymi) wyrazami rozpatrywanego ciągu. Łatwo zauważmy, że
 
 
::<math>r = q + d = q + (q - p) = 2 q - p</math>
 
 
Zatem
 
 
::<math>p + q = 3 q - r</math>
 
 
::<math>q + r = 3 q - p</math>
 
 
::<math>p + r = 2 q</math>
 
 
Zauważmy, że prawa strona wypisanych wyżej równości nie jest podzielna przez <math>3</math>, bo liczby <math>p, q, r</math> są liczbami pierwszymi większymi od liczby <math>3</math>. Zatem liczby po lewej stronie wypisanych wyżej równości muszą być tej samej postaci, bo gdyby było inaczej, to lewa strona tych równości byłaby podzielna przez <math>3</math>, a&nbsp;prawa nie. Czyli każda para liczb z&nbsp;trójki <math>p, q, r</math> musi być tej samej postaci i&nbsp;wynika stąd, że wszystkie trzy liczby muszą być tej samej postaci. Ponieważ trzy kolejne wyrazy ciągu <math>p_0, p_1, \ldots, p_{n - 1}</math> były wybrane dowolnie, to wszystkie wyrazy tego ciągu muszą być tej samej postaci.<br/>
 
&#9633;
 
{{\Spoiler}}
 
 
 
 
<span style="font-size: 110%; font-weight: bold;">Zadanie C64</span><br/>
 
Niech <math>d > 0</math> będzie różnicą ciągu arytmetycznego liczb pierwszych o&nbsp;długości <math>n</math>
 
 
::<math>p_k = p_0 + k d \qquad</math> dla <math>\; k = 0, 1, \ldots, n - 1</math>
 
 
Pokazać, nie korzystając z&nbsp;twierdzenia C58, że jeżeli liczba pierwsza <math>q</math> nie dzieli <math>d</math>, to <math>n \leqslant q</math>.
 
 
{{Spoiler|Style = font-style: italic; font-weight: bold; color: olive; text-decoration: underline;|Show=Rozwiązanie|Hide=Ukryj rozwiązanie}}
 
Przypuśćmy, że <math>n > q</math> tak, że <math>q < n \leqslant p_0</math>, zatem
 
 
::<math>q < p_k = p_0 + k d \qquad</math> dla <math>\; k = 0, 1, \ldots, n - 1</math>
 
 
Ponieważ <math>q \nmid d</math>, to na mocy twierdzenia C57 wśród <math>q</math> kolejnych wyrazów <math>p_0, p_1, \ldots, p_{q - 1}</math> (zauważmy, że <math>q - 1 < n - 1</math>) jedna liczba pierwsza <math>p_k</math> musi być podzielna przez <math>q</math>, zatem musi być równa <math>q</math>. Jednak jest to niemożliwe, bo <math>q < p_k</math> dla wszystkich <math>k = 0, 1, \ldots, n - 1</math>. Zatem nie może być <math>n > q</math>.<br/>
 
&#9633;
 
{{\Spoiler}}
 
 
 
 
<span style="font-size: 110%; font-weight: bold;">Twierdzenie C65</span><br/>
 
Niech <math>q</math> będzie liczbą pierwszą, a&nbsp;liczby pierwsze
 
 
::<math>p_k = p_0 + k d \qquad</math> gdzie <math>\; k = 0, 1, \ldots, q - 1</math>
 
 
tworzą ciąg arytmetyczny o&nbsp;długości <math>q</math> i&nbsp;różnicy <math>d > 0</math>.
 
 
Równość <math>p_0 = q</math> zachodzi wtedy i&nbsp;tylko wtedy, gdy <math>q \nmid d</math>.
 
 
{{Spoiler|Style = font-style: italic; font-weight: bold; color: olive; text-decoration: underline;|Show=Dowód|Hide=Ukryj dowód}}
 
<math>\Longrightarrow</math><br/>
 
Jeżeli <math>p_0 = q</math>, to <math>q</math>-wyrazowy ciąg arytmetyczny liczb pierwszych ma postać
 
 
::<math>p_k = q + k d \qquad</math> dla <math>\; k = 0, 1, \ldots, q - 1</math>
 
 
Gdyby <math>q \mid d</math>, to mielibyśmy
 
 
::<math>p_k = q \left( 1 + k \cdot \frac{d}{q} \right)</math>
 
 
i wszystkie liczby <math>p_k</math> dla <math>k \geqslant 1</math> byłyby złożone, wbrew założeniu, że <math>p_k</math> tworzą <math>q</math>-wyrazowy ciąg arytmetyczny liczb pierwszych.
 
 
<math>\Longleftarrow</math><br/>
 
Ponieważ <math>q</math> jest długością rozpatrywanego ciągu arytmetycznego liczb pierwszych, to z&nbsp;twierdzenia C58 wynika, że musi być <math>q \leqslant p_0</math>.
 
 
Z założenia liczba pierwsza <math>q</math> nie dzieli <math>d</math>, zatem z&nbsp;twierdzenia C57 wiemy, że <math>q</math> musi dzielić jedną z&nbsp;liczb <math>p_0, p_1, \ldots, p_{q - 1}</math>.
 
 
Jeżeli <math>q \mid p_k</math>, to <math>p_k = q</math>. Ponieważ <math>q \leqslant p_0</math>, to możliwe jest jedynie <math>q \mid p_0</math> i&nbsp;musi być <math>p_0 = q</math>.<br/>
 
&#9633;
 
{{\Spoiler}}
 
 
 
 
<span style="font-size: 110%; font-weight: bold;">Uwaga C66</span><br/>
 
Niech ciąg arytmetyczny liczb pierwszych o&nbsp;długości <math>n</math> ma postać
 
 
::<math>p_k = p_0 + k d \qquad</math> dla <math>\; k = 0, 1, \ldots, n - 1</math>
 
 
Z udowodnionych wyżej twierdzeń C58 i&nbsp;C65 wynika, że ciągi arytmetyczne liczb pierwszych o&nbsp;długości <math>n</math> można podzielić na dwie grupy
 
 
:* jeżeli <math>n</math> jest liczbą pierwszą i <math>n \nmid d</math>, to <math>P(n - 1) \mid d</math> oraz <math>p_0 = n</math> (dla ustalonego <math>d</math> może istnieć tylko jeden ciąg)
 
:* jeżeli <math>n</math> jest liczbą złożoną lub <math>n \mid d</math>, to <math>P(n) \mid d</math> oraz <math>p_0 > n</math>
 
 
Funkcja <math>P(t)</math> jest iloczynem wszystkich liczb pierwszych nie większych od <math>t</math>.
 
 
 
 
<span style="font-size: 110%; font-weight: bold;">Przykład C67</span><br/>
 
Niech różnica ciągu arytmetycznego liczb pierwszych wynosi <math>d = 10^t</math>, gdzie <math>t \geqslant 1</math>. Zauważmy, że dla dowolnego <math>t</math> liczba <math>3</math> jest najmniejszą liczbą pierwszą, która nie dzieli <math>d</math>. Z&nbsp;oszacowania <math>n \leqslant 3</math> wynika, że musi być <math>n = 3</math>.
 
 
Jeżeli długość ciągu <math>n = 3</math> i <math>n \nmid d</math>, to musi być <math>p_0 = n = 3</math> i&nbsp;może istnieć tylko jeden PAP dla każdego <math>d</math>. W&nbsp;przypadku <math>t \leqslant 10000</math> jedynie dla <math>t = 1, 5, 6, 17</math> wszystkie liczby ciągu arytmetycznego <math>(3, 3 + 10^t, 3 + 2 \cdot 10^t)</math> są pierwsze.
 
 
 
 
<span style="font-size: 110%; font-weight: bold;">Zadanie C68</span><br/>
 
Znaleźć wszystkie PAP<math>(n, d, p)</math> dla <math>d = 2, 4, 8, 10, 14, 16</math>.
 
 
{{Spoiler|Style = font-style: italic; font-weight: bold; color: olive; text-decoration: underline;|Show=Rozwiązanie|Hide=Ukryj rozwiązanie}}
 
Zauważmy, że dla każdej z&nbsp;podanych różnic <math>d</math>, liczba <math>3</math> jest najmniejszą liczbą pierwszą, która nie dzieli <math>d</math>. Z&nbsp;oszacowania <math>n \leqslant 3</math> wynika, że musi być <math>n = 3</math>.
 
 
Ponieważ <math>n = 3</math> jest liczbą pierwszą i&nbsp;dla wypisanych <math>d</math> liczba <math>n \nmid d</math>, to w&nbsp;każdym przypadku może istnieć tylko jeden ciąg, którego pierwszym wyrazem jest liczba pierwsza <math>p_0 = n = 3</math>. Dla <math>d = 2, 4, 8, 10, 14</math> łatwo znajdujemy odpowiednie ciągi
 
 
::<math>(3, 5, 7)</math>, <math>\qquad (3, 7, 11)</math>, <math>\qquad (3, 11, 19)</math>, <math>\qquad (3, 13, 23)</math>, <math>\qquad (3, 17, 31)</math>
 
 
Dla <math>d = 16</math> szukany ciąg nie istnieje, bo <math>35 = 5 \cdot 7</math>.<br/>
 
&#9633;
 
{{\Spoiler}}
 
 
 
 
<span style="font-size: 110%; font-weight: bold;">Zadanie C69</span><br/>
 
Znaleźć wszystkie PAP<math>(n, d, p)</math> dla <math>n = 3, 5, 7, 11</math> i <math>d = P (n - 1)</math>.
 
 
{{Spoiler|Style = font-style: italic; font-weight: bold; color: olive; text-decoration: underline;|Show=Rozwiązanie|Hide=Ukryj rozwiązanie}}
 
Z założenia PAP ma długość <math>n</math>, liczba <math>n</math> jest liczbą pierwszą i <math>n \nmid d</math>. Zatem może istnieć tylko jeden PAP taki, że <math>p_0 = n</math>. Dla <math>n = 3, 5</math> i&nbsp;odpowiednio <math>d = 2, 6</math> otrzymujemy ciągi arytmetyczne liczb pierwszych
 
 
::<math>(3, 5, 7)</math>, <math>\qquad (5, 11, 17, 23, 29)</math>
 
 
Ale dla <math>n = 7, 11</math> i&nbsp;odpowiednio <math>d = 30, 210</math> szukane ciągi nie istnieją, bo
 
 
::<math>(7, 37, 67, 97, 127, 157, {\color{Red} 187 = 11 \cdot 17})</math>
 
 
::<math>(11, {\color{Red} 221 = 13 \cdot 17}, 431, 641, {\color{Red} 851 = 23 \cdot 37}, 1061, {\color{Red} 1271 = 31 \cdot 41}, 1481, {\color{Red} 1691 = 19 \cdot 89}, 1901, 2111)</math><br/>
 
&#9633;
 
{{\Spoiler}}
 
 
 
 
<span style="font-size: 110%; font-weight: bold;">Przykład C70</span><br/>
 
Przedstawiamy przykładowe ciągi arytmetyczne liczb pierwszych, takie że <math>n = p_0</math> dla <math>n = 3, 5, 7, 11, 13</math>. Zauważmy, że wypisane w&nbsp;tabeli wartości <math>d</math> są wielokrotnościami liczby <math>P(n - 1)</math>.
 
 
{{Spoiler|Style = font-style: italic; font-weight: bold; color: olive; text-decoration: underline;|Show=Pokaż tabelę|Hide=Ukryj tabelę}}
 
{| class="wikitable plainlinks"  style="display: inline-table; font-size: 80%; text-align: right;"
 
|- style="text-align: center;"
 
| style="background:#98fb98;"|<math>\mathbf{n = p_0}</math>
 
| colspan=10 style="background:#ffd890;"| <math>\mathbf{d}</math>
 
|-
 
|-
 
| style="background:#98fb98; text-align: center;"|<math>\mathbf{3}</math>||<math>2</math>||<math>4</math>||<math>8</math>||<math>10</math>||<math>14</math>||<math>20</math>||<math>28</math>||<math>34</math>||<math>38</math>||<math>40</math>
 
|-
 
| style="background:#98fb98; text-align: center;"|<math>\mathbf{5}</math>||<math>6</math>||<math>12</math>||<math>42</math>||<math>48</math>||<math>96</math>||<math>126</math>||<math>252</math>||<math>426</math>||<math>474</math>||<math>594</math>
 
|-
 
| style="background:#98fb98; text-align: center;"|<math>\mathbf{7}</math>||<math>150</math>||<math>2760</math>||<math>3450</math>||<math>9150</math>||<math>14190</math>||<math>20040</math>||<math>21240</math>||<math>63600</math>||<math>76710</math>||<math>117420</math>
 
|-
 
| style="background:#98fb98; text-align: center;"|<math>\mathbf{11}</math>||<math>1536160080</math>||<math>4911773580</math>||<math>25104552900</math>||<math>77375139660</math>||<math>83516678490</math>||<math>100070721660</math>||<math>150365447400</math>||<math>300035001630</math>||<math>318652145070</math>||<math>369822103350</math>
 
|-
 
| style="background:#98fb98; text-align: center;"|<math>\mathbf{13}</math>||<math>9918821194590</math>||<math>104340979077720</math>||<math>187635245859600</math>||<math>232320390245790</math>||<math>391467874710990</math>||<math>859201916576850</math>||<math>1024574038282410</math>||<math>1074380369464710</math>||<math>1077624363457950</math>||<math>1185763337651970</math>
 
|}
 
 
 
Przykłady takich ciągów dla jeszcze większych liczb pierwszych Czytelnik znajdzie na stronie [http://oeis.org/A088430 A088430].<br/>
 
&#9633;
 
{{\Spoiler}}
 
 
 
 
<span style="font-size: 110%; font-weight: bold;">Przykład C71</span><br/>
 
Liczby <math>3, 5, 7</math> są najprostszym przykładem ciągu arytmetycznego '''kolejnych''' liczb pierwszych. Zauważmy, że tylko w&nbsp;przypadku <math>n = 3</math> możliwa jest sytuacja, że <math>n = p_0 = 3</math>. Istotnie, łatwo stwierdzamy, że
 
 
:* ponieważ <math>p_0</math> i <math>p_1</math> są '''kolejnymi''' liczbami pierwszymi, to <math>p_1 - p_0 < p_0</math> (zobacz zadanie B22)
 
:* dla dowolnej liczby pierwszej <math>q \geqslant 5</math> jest <math>q < P (q - 1)</math> (zobacz zadanie B26)
 
 
Przypuśćmy teraz, że istnieje ciąg arytmetyczny '''kolejnych''' liczb pierwszych, taki że <math>n = p_0 \geqslant 5</math>. Mamy
 
 
::<math>d = p_1 - p_0 < p_0 < P (p_0 - 1) = P (n - 1)</math>
 
 
Zatem <math>P(n - 1) \nmid d</math>, co jest niemożliwe.
 
 
Wynika stąd, że poza przypadkiem <math>n = p_0 = 3</math> ciąg arytmetyczny kolejnych liczb pierwszych musi spełniać warunek <math>P(n)|d</math>, czyli <math>P(n)|(p_1 - p_0)</math>.
 
 
Poniższe tabele przedstawiają przykładowe ciągi arytmetyczne kolejnych liczb pierwszych o&nbsp;długościach <math>n = 3, 4, 5, 6</math> dla rosnących wartości <math>p_0</math>. Nie istnieje ciąg arytmetyczny kolejnych liczb pierwszych o&nbsp;długości <math>n = 7</math> dla <math>p_0 < 10^{13}</math>. Prawdopodobnie CPAP-7 pojawią się dopiero dla <math>p_0 \sim 10^{20}</math>.
 
 
Znane są ciągi arytmetyczne kolejnych liczb pierwszych o&nbsp;długościach <math>n \leqslant 10</math><ref name="CPAP1"/>.
 
 
{{Spoiler|Style = font-style: italic; font-weight: bold; color: olive; text-decoration: underline;|Show=Pokaż tabele|Hide=Ukryj tabele}}
 
 
{| class="wikitable plainlinks"  style="display: inline-table; margin-left: 5px; margin-right: 50px; font-size: 80%; text-align: right;"
 
|- style="background: #98fb98; text-align: center;"
 
| colspan=2 | <math>\mathbf{n = 3}</math>
 
|- style="text-align: center;"
 
| <math>\mathbf{p_0 \leqslant 10^{3}}</math>
 
| style="background: #ffd890;" | <math>\mathbf{d}</math>
 
|-
 
| <math>\mathbf{3}</math> || style="background:#ffd890;"|<math>2</math>
 
|-
 
| <math>\mathbf{47}</math> || style="background:#ffd890;"|<math>6</math>
 
|-
 
| <math>\mathbf{151}</math> || style="background:#ffd890;"|<math>6</math>
 
|-
 
| <math>\mathbf{167}</math> || style="background:#ffd890;"|<math>6</math>
 
|-
 
| <math>\mathbf{199}</math> || style="background:#ffd890;"|<math>12</math>
 
|-
 
| <math>\mathbf{251}</math> || style="background:#ffd890;"|<math>6</math>
 
|-
 
| <math>\mathbf{257}</math> || style="background:#ffd890;"|<math>6</math>
 
|-
 
| <math>\mathbf{367}</math> || style="background:#ffd890;"|<math>6</math>
 
|-
 
| <math>\mathbf{557}</math> || style="background:#ffd890;"|<math>6</math>
 
|-
 
| <math>\mathbf{587}</math> || style="background:#ffd890;"|<math>6</math>
 
|-
 
| <math>\mathbf{601}</math> || style="background:#ffd890;"|<math>6</math>
 
|-
 
| <math>\mathbf{647}</math> || style="background:#ffd890;"|<math>6</math>
 
|-
 
| <math>\mathbf{727}</math> || style="background:#ffd890;"|<math>6</math>
 
|-
 
| <math>\mathbf{941}</math> || style="background:#ffd890;"|<math>6</math>
 
|-
 
| <math>\mathbf{971}</math> || style="background:#ffd890;"|<math>6</math>
 
|}
 
{| class="wikitable plainlinks"  style="display: inline-table; margin-left: 5px; margin-right: 50px; font-size: 80%; text-align: right;"
 
|- style="background: #98fb98; text-align: center;"
 
| colspan=2 | <math>\mathbf{n = 4}</math>
 
|- style="text-align: center;"
 
| <math>\mathbf{p_0 \leqslant 10^{4}}</math>
 
| style="background: #ffd890;" | <math>\mathbf{d}</math>
 
|-
 
| <math>\mathbf{251}</math> || style="background:#ffd890;"|<math>6</math>
 
|-
 
| <math>\mathbf{1741}</math> || style="background:#ffd890;"|<math>6</math>
 
|-
 
| <math>\mathbf{3301}</math> || style="background:#ffd890;"|<math>6</math>
 
|-
 
| <math>\mathbf{5101}</math> || style="background:#ffd890;"|<math>6</math>
 
|-
 
| <math>\mathbf{5381}</math> || style="background:#ffd890;"|<math>6</math>
 
|-
 
| <math>\mathbf{6311}</math> || style="background:#ffd890;"|<math>6</math>
 
|-
 
| <math>\mathbf{6361}</math> || style="background:#ffd890;"|<math>6</math>
 
|}
 
{| class="wikitable plainlinks"  style="display: inline-table; margin-left: 5px; margin-right: 50px; font-size: 80%; text-align: right;"
 
|- style="background: #98fb98; text-align: center;"
 
| colspan=2 | <math>\mathbf{n = 5}</math>
 
|- style="text-align: center;"
 
| <math>\mathbf{p_0 \leqslant 10^{8}}</math>
 
| style="background: #ffd890;" | <math>\mathbf{d}</math>
 
|-
 
| <math>\mathbf{9843019}</math> || style="background:#ffd890;"|<math>30</math>
 
|-
 
| <math>\mathbf{37772429}</math> || style="background:#ffd890;"|<math>30</math>
 
|-
 
| <math>\mathbf{53868649}</math> || style="background:#ffd890;"|<math>30</math>
 
|-
 
| <math>\mathbf{71427757}</math> || style="background:#ffd890;"|<math>30</math>
 
|-
 
| <math>\mathbf{78364549}</math> || style="background:#ffd890;"|<math>30</math>
 
|-
 
| <math>\mathbf{79080577}</math> || style="background:#ffd890;"|<math>30</math>
 
|-
 
| <math>\mathbf{98150021}</math> || style="background:#ffd890;"|<math>30</math>
 
|-
 
| <math>\mathbf{99591433}</math> || style="background:#ffd890;"|<math>30</math>
 
|}
 
{| class="wikitable plainlinks"  style="display: inline-table; margin-left: 5px; margin-right: 50px; font-size: 80%; text-align: right;"
 
|- style="background: #98fb98; text-align: center;"
 
| colspan=2 | <math>\mathbf{n = 6}</math>
 
|- style="text-align: center;"
 
| <math>\mathbf{p_0 \leqslant 10^{10}}</math>
 
| style="background: #ffd890;" | <math>\mathbf{d}</math>
 
|-
 
| <math>\mathbf{121174811}</math> || style="background:#ffd890;"|<math>30</math>
 
|-
 
| <math>\mathbf{1128318991}</math> || style="background:#ffd890;"|<math>30</math>
 
|-
 
| <math>\mathbf{2201579179}</math> || style="background:#ffd890;"|<math>30</math>
 
|-
 
| <math>\mathbf{2715239543}</math> || style="background:#ffd890;"|<math>30</math>
 
|-
 
| <math>\mathbf{2840465567}</math> || style="background:#ffd890;"|<math>30</math>
 
|-
 
| <math>\mathbf{3510848161}</math> || style="background:#ffd890;"|<math>30</math>
 
|-
 
| <math>\mathbf{3688067693}</math> || style="background:#ffd890;"|<math>30</math>
 
|-
 
| <math>\mathbf{3893783651}</math> || style="background:#ffd890;"|<math>30</math>
 
|-
 
| <math>\mathbf{5089850089}</math> || style="background:#ffd890;"|<math>30</math>
 
|-
 
| <math>\mathbf{5825680093}</math> || style="background:#ffd890;"|<math>30</math>
 
|-
 
| <math>\mathbf{6649068043}</math> || style="background:#ffd890;"|<math>30</math>
 
|-
 
| <math>\mathbf{6778294049}</math> || style="background:#ffd890;"|<math>30</math>
 
|-
 
| <math>\mathbf{7064865859}</math> || style="background:#ffd890;"|<math>30</math>
 
|-
 
| <math>\mathbf{7912975891}</math> || style="background:#ffd890;"|<math>30</math>
 
|-
 
| <math>\mathbf{8099786711}</math> || style="background:#ffd890;"|<math>30</math>
 
|-
 
| <math>\mathbf{9010802341}</math> || style="background:#ffd890;"|<math>30</math>
 
|-
 
| <math>\mathbf{9327115723}</math> || style="background:#ffd890;"|<math>30</math>
 
|-
 
| <math>\mathbf{9491161423}</math> || style="background:#ffd890;"|<math>30</math>
 
|-
 
| <math>\mathbf{9544001791}</math> || style="background:#ffd890;"|<math>30</math>
 
|}
 
<br/>
 
&#9633;
 
{{\Spoiler}}
 
 
 
 
<span style="font-size: 110%; font-weight: bold;">Zadanie C72</span><br/>
 
Uzasadnij przypuszczenie, że ciągów arytmetycznych '''kolejnych''' liczb pierwszych o&nbsp;długości <math>n = 7</math> możemy oczekiwać dopiero dla <math>p_0 \sim 10^{20}</math>.
 
 
{{Spoiler|Style = font-style: italic; font-weight: bold; color: olive; text-decoration: underline;|Show=Rozwiązanie|Hide=Ukryj rozwiązanie}}
 
Zauważmy, że ilość liczb pierwszych nie większych od <math>x</math> w&nbsp;dobrym przybliżeniu jest określona funkcją <math>\frac{x}{\log x}</math>. Ponieważ funkcja <math>\log x</math> zmienia się bardzo wolno, to odcinki liczb naturalnych o&nbsp;tej samej długości położone w&nbsp;niewielkiej odległości od siebie będą zawierały podobne ilości liczb pierwszych. Przykładowo, dla dużych wartości <math>x</math>, ilość liczb pierwszych w&nbsp;przedziale <math>(x, 2 x)</math> jest tego samego rzędu, co ilość liczb pierwszych w&nbsp;przedziale <math>(1, x)</math><ref name="PrimesInInterval"/>.
 
 
 
Zatem liczbę <math>\frac{1}{\log x}</math> możemy traktować jako prawdopodobieństwo trafienia na liczbę pierwszą wśród liczb znajdujących się w&nbsp;pobliżu liczby <math>x</math>. Zakładając, że liczby pierwsze są rozłożone przypadkowo, możemy wyliczyć prawdopodobieństwo tego, że <math>n</math> kolejnych liczb pierwszych, położonych w&nbsp;pobliżu liczby <math>x</math>, utworzy ciąg arytmetyczny
 
 
::<math>\text{prob}_{\text{cpap}} (n, x) = \left( \frac{1}{\log x} \right)^n \left( 1 - \frac{1}{\log x} \right)^{(n - 1) (d - 1)}</math>
 
 
gdzie <math>d = P (n)</math>. Jest tak, ponieważ w&nbsp;ciągu kolejnych liczb całkowitych musimy trafić na liczbę pierwszą, następnie na <math>d - 1</math> liczb złożonych, taka sytuacja musi się powtórzyć dokładnie <math>n - 1</math> razy, a&nbsp;na koniec znowu musimy trafić na liczbę pierwszą. Czyli potrzebujemy <math>n</math> liczb pierwszych, na które trafiamy z&nbsp;prawdopodobieństwem <math>\frac{1}{\log x}</math> oraz <math>(n - 1) (d - 1)</math> liczb złożonych, na które trafiamy z&nbsp;prawdopodobieństwem <math>1 - \frac{1}{\log x}</math>, a&nbsp;liczby te muszą pojawiać się w&nbsp;ściśle określonej kolejności.
 
 
 
Ilość ciągów arytmetycznych utworzonych przez <math>n</math> kolejnych liczb pierwszych należących do przedziału <math>(x, 2 x)</math> możemy zatem oszacować na równą około
 
 
::<math>Q_{\text{cpap}}(n, x) = x \cdot \left( \frac{1}{\log x} \right)^n \left( 1 - \frac{1}{\log x} \right)^{(n - 1) (d - 1)}</math>
 
 
 
Porównując powyższe oszacowanie z&nbsp;rzeczywistą ilością <math>\# \text{CPAP}(n, x)</math> ciągów arytmetycznych kolejnych liczb pierwszych w&nbsp;przedziale <math>(x, 2x)</math> dostajemy
 
 
::<math>\frac{\# \text{CPAP}(n, x)}{Q_{\text{cpap}} (n, x)} = f (n, x)</math>
 
 
gdzie w&nbsp;możliwym do zbadania zakresie, czyli dla <math>x < 2^{42} \approx 4.4 \cdot 10^{12}</math> mamy
 
 
::<math>f(n, x) \approx a_n \cdot \log x + b_n</math>
 
 
Stałe <math>a_n</math> i <math>b_n</math> wyznaczamy metodą regresji liniowej. Musimy pamiętać, że uzyskanych w&nbsp;ten sposób wyników nie możemy ekstrapolować dla dowolnie dużych <math>x</math>.
 
 
W przypadku <math>n = 5</math> oraz <math>n = 6</math> dysponowaliśmy zbyt małą liczbą danych, aby wyznaczyć stałe <math>a_n</math> i <math>b_n</math> z&nbsp;wystarczającą dokładnością. Dlatego w&nbsp;tych przypadkach ograniczyliśmy się do podania oszacowania funkcji <math>f(n, x)</math>.
 
 
Uzyskany wyżej rezultaty są istotne, bo z&nbsp;wyliczonych postaci funkcji <math>f(n, x)</math> wynika, że są to funkcje bardzo wolno zmienne, a&nbsp;ich ekstrapolacja jest w&nbsp;pełni uprawniona.
 
 
 
W zamieszczonej niżej tabeli mamy kolejno
 
 
:* <math>n</math>, czyli długość CPAP
 
:* wartość iloczynu <math>n \cdot P (n)</math>
 
:* znalezioną postać funkcji <math>f(n, x)</math> lub oszacowanie wartości tej funkcji <math>C_n</math> na podstawie uzyskanych danych; w&nbsp;przypadku <math>n = 7</math> jest to oszacowanie wynikające z&nbsp;obserwacji, że wartości funkcji <math>f(n, x)</math> są rzędu <math>n \cdot P (n)</math>
 
:* wyliczoną wartość <math>\frac{\# \text{CPAP}(n, 2^{40})}{Q_{\text{cpap}}(n, 2^{40})}</math>, czyli <math>f(n, 2^{40})</math>
 
:* wartość funkcji <math>f(n, 2^{70})</math> wynikające z&nbsp;ekstrapolacji wzoru <math>f(n, x) = a_n \cdot \log x + b_n \qquad</math> (dla <math>n = 3, 4</math>)
 
:* wartość <math>x</math> wynikającą z&nbsp;rozwiązania równania
 
::: <math>\qquad (a_n \cdot \log x + b_n) \cdot Q_{\text{cpap}} (n, x) = 1 \qquad</math> (dla <math>n = 3, 4</math>)
 
::: <math>\qquad C_n \cdot Q_{\text{cpap}} (n, x) = 1 \qquad</math> (dla <math>n = 5, 6, 7</math>)
 
:* dla porównania w&nbsp;kolejnych kolumnach zostały podane dwie najmniejsze wartości <math>p_0</math> dla CPAP-n
 
 
::{| class="wikitable plainlinks"  style="font-size: 100%; text-align: right; margin-right: auto;"
 
|-
 
! <math>n</math> !! <math>n \cdot P(n)</math> !! <math>f (n, x) \quad \text{lub} \quad C_n</math> !! <math>f (n, 2^{40})</math> !! <math>f (n, 2^{70})</math> !! <math>\sim p_0</math> !! <math></math> !! <math></math>
 
|-
 
| <math>\quad 3 \quad</math> || <math>18</math> || <math>0.52 \cdot \log x + 6.3</math> || <math>20.94</math> || <math>30</math> || <math>130</math> || <math>47</math> || <math>151</math>
 
|-
 
| <math>\quad 4 \quad</math> || <math>24</math> || <math>0.53 \cdot \log x + 11.6</math> || <math>26.61</math> || <math>36</math> || <math>1.5 \cdot 10^3</math> || <math>251</math> || <math>1741</math>
 
|-
 
| <math>\quad 5 \quad</math> || <math>150</math> || <math>120</math> || <math>121.45</math> || <math></math> || <math>15 \cdot 10^6</math> || <math>9843019</math> || <math>37772429</math>
 
|-
 
| <math>\quad 6 \quad</math> || <math>180</math> || <math>235</math> || <math>228.27</math> || <math></math> || <math>540 \cdot 10^6</math> || <math>121174811</math> || <math>1128318991</math>
 
|-
 
| <math>\quad 7 \quad</math> || <math>1470</math> || <math>2500</math> || <math>0</math> || <math></math> || <math>2 \cdot 10^{20}</math> || <math></math> || <math></math>
 
|}
 
 
Zauważając, że funkcje <math>f(n, x)</math> są rzędu <math>n \cdot P (n)</math> i&nbsp;przyjmując, że podobnie będzie dla <math>f(7, x)</math>, możemy wyliczyć wartość <math>x</math>, dla której może pojawić się pierwszy CPAP-7. Wartość ta jest równa w&nbsp;przybliżeniu <math>2 \cdot 10^{20}</math> i&nbsp;wynika z&nbsp;rozwiązania równania
 
 
::<math>f(7, x) \cdot Q_{\text{cpap}}(7, x) = 1</math>
 
 
Możemy ją łatwo wyliczyć w&nbsp;PARI/GP. Oczywiście funkcję <math>f(7, x)</math> zastąpiliśmy jej oszacowaniem <math>C_7 = 2500</math>
 
 
<span style="font-size: 90%; color:black;">P(n) = '''prod'''(k = 2, n, '''if'''( '''isprime'''(k), k, 1 ))</span>
 
 
<span style="font-size: 90%; color:black;">Q(x) = 2500 * x * ( 1/'''log'''(x) )^7 * ( 1 - 1/'''log'''(x) )^( (7 - 1)*(P(7) - 1) )</span>
 
 
<span style="font-size: 90%; color:black;">'''solve'''(x = 10^10, 10^23, Q(x) - 1 )</span>
 
&#9633;
 
{{\Spoiler}}
 
 
 
 
 
 
== Uzupełnienie ==
 
 
<span style="font-size: 110%; font-weight: bold;">Twierdzenie C73 (lemat Bézouta)</span><br/>
 
Jeżeli liczby całkowite <math>a</math> i <math>b</math> nie są jednocześnie równe zeru, a&nbsp;największy wspólny dzielnik tych liczb jest równy <math>D</math>, to istnieją takie liczby całkowite <math>x, y</math>, że
 
 
::<math>a x + b y = D</math>
 
 
{{Spoiler|Style = font-style: italic; font-weight: bold; color: olive; text-decoration: underline;|Show=Dowód|Hide=Ukryj dowód}}
 
Niech <math>S</math> będzie zbiorem wszystkich liczb całkowitych dodatnich postaci <math>a n + b m</math>, gdzie <math>n, m</math> są dowolnymi liczbami całkowitymi. Zbiór <math>S</math> nie jest zbiorem pustym, bo przykładowo liczba <math>a^2 + b^2 \in S</math>. Z&nbsp;zasady dobrego uporządkowania liczb naturalnych wynika, że zbiór <math>S</math> ma element najmniejszy, oznaczmy go literą <math>d</math>.
 
 
Pokażemy, że <math>d \mid a</math> i <math>d \mid b</math>. Z&nbsp;twierdzenia o&nbsp;dzieleniu z&nbsp;resztą możemy napisać <math>a = k d + r</math>, gdzie <math>0 \leqslant r < d</math>.
 
 
Przypuśćmy, że <math>d \nmid a</math>, czyli że <math>r > 0</math>. Ponieważ <math>d \in S</math>, to mamy <math>d = a u + b v</math> dla pewnych liczb całkowitych <math>u</math> i <math>v</math>. Zatem
 
 
::<math>r = a - k d =</math>
 
 
::<math>\;\;\, = a - k (a u + b v) =</math>
 
 
::<math>\;\;\, = a \cdot (1 - k u) + b \cdot (- k v)</math>
 
 
Wynika stąd, że dodatnia liczba <math>r</math> należy do zbioru <math>S</math> oraz <math>r < d</math>, wbrew określeniu liczby <math>d</math>, czyli musi być <math>r = 0</math> i <math>d \mid a</math>. Podobnie pokazujemy, że <math>d \mid b</math>.
 
 
Jeżeli <math>d'</math> jest innym dzielnikiem liczb <math>a</math> i <math>b</math>, to <math>d' \mid d</math>, bo <math>d' \mid (a u + b v)</math>. Zatem <math>d' \leqslant d</math>, skąd wynika natychmiast, że liczba <math>d</math> jest największym z&nbsp;dzielników, które jednocześnie dzielą liczby <math>a</math> oraz <math>b</math>.
 
Czyli <math>d = D</math>.<br/>
 
&#9633;
 
{{\Spoiler}}
 
 
 
 
<span style="font-size: 110%; font-weight: bold;">Twierdzenie C74 (lemat Euklidesa)</span><br/>
 
Niech <math>p</math> będzie liczbą pierwszą oraz <math>a, b, d \in \mathbb{Z}</math>.
 
 
:* jeżeli <math>d \mid a b</math> i liczba <math>d</math> jest względnie pierwsza z <math>a</math>, to <math>d \mid b</math>
 
 
:* jeżeli <math>p \mid a b</math>, to <math>p \mid a</math> lub <math>p \mid b</math>
 
 
{{Spoiler|Style = font-style: italic; font-weight: bold; color: olive; text-decoration: underline;|Show=Dowód|Hide=Ukryj dowód}}
 
 
'''Punkt 1.'''
 
 
Z założenia liczby <math>d</math> i <math>a</math> są względnie pierwsze, zatem na mocy lematu Bézouta (twierdzenie C73) istnieją takie liczby całkowite <math>x</math> i <math>y</math>, że
 
 
::<math>d x + a y = 1</math>
 
 
Mnożąc obie strony równania przez <math>b</math>, dostajemy
 
 
::<math>d b x + a b y = b</math>
 
 
Obydwa wyrazy po prawej stronie są podzielne przez <math>d</math>, bo z założenia <math>d \mid a b</math>. Zatem prawa strona również jest podzielna przez <math>d</math>, czyli <math>d \mid b</math>. Co kończy dowód punktu pierwszego.
 
 
'''Punkt 2.'''
 
 
Jeżeli <math>p \nmid a</math>, to <math>\gcd (p, a) = 1</math>, zatem z punktu pierwszego wynika, że <math>p \mid b</math>.
 
 
Jeżeli <math>p \nmid b</math>, to <math>\gcd (p, b) = 1</math>, zatem z punktu pierwszego wynika, że <math>p \mid a</math>.
 
 
Czyli <math>p</math> musi dzielić przynajmniej jedną z liczb <math>a, b</math>. Co należało pokazać.<br/>
 
&#9633;
 
{{\Spoiler}}
 
 
 
 
<span style="font-size: 110%; font-weight: bold;">Twierdzenie C75</span><br/>
 
Niech <math>a, b, m \in \mathbb{Z}</math>. Jeżeli <math>a \mid m</math> i <math>b \mid m</math> oraz <math>\gcd (a, b) = 1</math>, to <math>a b \mid m</math>.
 
 
{{Spoiler|Style = font-style: italic; font-weight: bold; color: olive; text-decoration: underline;|Show=Dowód|Hide=Ukryj dowód}}
 
 
Z założenia istnieją takie liczby <math>r, s, x, y \in \mathbb{Z}</math>, że <math>m = a r</math> i <math>m = b s</math> oraz
 
 
::<math>a x + b y = 1</math>
 
 
(zobacz C73). Zatem
 
 
::<math>m = m (a x + b y)</math>
 
 
::<math>\quad \, = m a x + m b y </math>
 
 
::<math>\quad \, = b s a x + a r b y</math>
 
 
::<math>\quad \, = a b (s x + r y)</math>
 
 
Czyli <math>a b \mid m</math>. Co należało pokazać.<br/>
 
&#9633;
 
{{\Spoiler}}
 
 
 
 
<span style="font-size: 110%; font-weight: bold;">Twierdzenie C76</span><br/>
 
Niech <math>a, b, c \in \mathbb{Z}</math>. Równanie <math>a x + b y = c</math> ma rozwiązanie wtedy i&nbsp;tylko wtedy, gdy największy wspólny dzielnik liczb <math>a</math> i <math>b</math> jest dzielnikiem liczby <math>c</math>.
 
 
{{Spoiler|Style = font-style: italic; font-weight: bold; color: olive; text-decoration: underline;|Show=Dowód|Hide=Ukryj dowód}}
 
Niech <math>D</math> oznacza największy wspólny dzielnik liczb <math>a</math> i <math>b</math>.
 
 
<math>\Longrightarrow</math>
 
 
Jeżeli liczby całkowite <math>x_0</math> i <math>y_0</math> są rozwiązaniem rozpatrywanego równania, to
 
 
::<math>a x_0 + b y_0 = c</math>
 
 
Ponieważ <math>D</math> dzieli lewą stronę równania, to musi również dzielić prawą, zatem musi być <math>D|c</math>.
 
 
<math>\Longleftarrow</math>
 
 
Jeżeli <math>D|c</math>, to możemy napisać <math>c = k D</math> i&nbsp;równanie przyjmuje postać
 
 
::<math>a x + b y = k D</math>
 
 
Lemat Bézouta (twierdzenie C73) zapewnia istnienie liczb całkowitych <math>x_0</math> i <math>y_0</math> takich, że
 
 
::<math>a x_0 + b y_0 = D</math>
 
 
Czyli z&nbsp;lematu Bézouta wynika, że równanie <math>a x + b y = D</math> ma rozwiązanie w&nbsp;liczbach całkowitych. Przekształcając, dostajemy
 
 
::<math>a(k x_0) + b (k y_0) = k D</math>
 
 
Zatem liczby <math>k x_0</math> i <math>k y_0</math> są rozwiązaniem równania
 
 
::<math>a x + b y = k D</math>
 
 
Co oznacza, że równianie <math>a x + b y = c</math> ma rozwiązanie.<br/>
 
&#9633;
 
{{\Spoiler}}
 
 
 
 
<span style="font-size: 110%; font-weight: bold;">Uwaga C77</span><br/>
 
Z twierdzenia C76 wynika, że szukając rozwiązań równania <math>A x + B y = C</math> w&nbsp;liczbach całkowitych, powinniśmy
 
 
:* obliczyć największy wspólny dzielnik <math>D</math> liczb <math>A</math> i <math>B</math>
 
:* jeżeli <math>D > 1</math>, należy sprawdzić, czy <math>D|C</math>
 
:* jeżeli <math>D \nmid C</math>, to równanie <math>A x + B y = C</math> nie ma rozwiązań w&nbsp;liczbach całkowitych
 
:* jeżeli <math>D|C</math>, należy podzielić obie strony równania <math>A x + B y = C</math> przez <math>D</math> i&nbsp;przejść do rozwiązywania równania równoważnego <math>a x + b y = c</math>, gdzie <math>a = \frac{A}{D}</math>, <math>b = \frac{B}{D}</math>, <math>c = \frac{C}{D}</math>, zaś największy wspólny dzielnik liczb <math>a</math> i <math>b</math> jest równy <math>1</math>.
 
 
 
 
<span style="font-size: 110%; font-weight: bold;">Twierdzenie C78</span><br/>
 
Niech <math>a, b, c \in \mathbb{Z}</math>. Jeżeli liczby <math>a</math> i <math>b</math> są względnie pierwsze, to równanie
 
 
::<math>a x + b y = c</math>
 
 
ma nieskończenie wiele rozwiązań w&nbsp;liczbach całkowitych.
 
 
Jeżeli para liczb całkowitych <math>(x_0, y_0)</math> jest jednym z&nbsp;tych rozwiązań, to wszystkie pozostałe rozwiązania całkowite można otrzymać ze wzorów
 
 
::<math>x = x_0 + b t</math>
 
::<math>y = y_0 - a t</math>
 
 
gdzie <math>t</math> jest dowolną liczbą całkowitą.
 
 
{{Spoiler|Style = font-style: italic; font-weight: bold; color: olive; text-decoration: underline;|Show=Dowód|Hide=Ukryj dowód}}
 
Z założenia liczby <math>a</math> i <math>b</math> są względnie pierwsze, zatem największy wspólny dzielnik tych liczb jest równy <math>1</math> i&nbsp;dzieli liczbę <math>c</math>. Na mocy twierdzenia C76 równanie
 
 
::<math>a x + b y = c</math>
 
 
ma rozwiązanie w&nbsp;liczbach całkowitych.
 
 
Zauważmy, że jeżeli para liczb całkowitych <math>(x_0, y_0)</math> jest rozwiązaniem równania <math>a x + b y = c</math>, to para liczb <math>(x_0 + b t, y_0 - a t)</math> również
 
jest rozwiązaniem. Istotnie
 
 
::<math>a(x_0 + b t) + b (y_0 - a t) = a x_0 + a b t + b y_0 - b a t =</math>
 
 
:::::::::<math>\, = a x_0 + b y_0 =</math>
 
 
:::::::::<math>\, = c</math>
 
 
Pokażmy teraz, że nie istnieją inne rozwiązania niż określone wzorami
 
 
::<math>x = x_0 + b t</math>
 
::<math>y = y_0 - a t</math>
 
 
gdzie <math>t</math> jest dowolną liczbą całkowitą.
 
 
Przypuśćmy, że pary liczb całkowitych <math>(x, y)</math> oraz <math>(x_0, y_0)</math> są rozwiązaniami rozpatrywanego równania, zatem
 
 
::<math>a x + b y = c = a x_0 + b y_0</math>
 
 
Wynika stąd, że musi być spełniony warunek
 
 
::<math>a(x - x_0) = b (y_0 - y)</math>
 
 
Ponieważ liczby <math>a</math> i <math>b</math> są względnie pierwsze, to na mocy lematu Euklidesa (twierdzenie C74) <math>b|(x - x_0)</math>. Skąd mamy
 
 
::<math>x - x_0 = b t</math>
 
 
gdzie <math>t</math> jest dowolną liczbą całkowitą. Po podstawieniu dostajemy natychmiast
 
 
::<math>y - y_0 = - a t</math>
 
 
Co kończy dowód.<br/>
 
&#9633;
 
{{\Spoiler}}
 
 
 
 
<span style="font-size: 110%; font-weight: bold;">Przykład C79</span><br/>
 
Rozwiązania równania
 
 
::<math>a x + b y = c</math>
 
 
gdzie <math>\gcd (a, b) = 1</math>, które omówiliśmy w poprzednim twierdzeniu, najłatwiej znaleźć korzystając w PARI/GP z funkcji <code>gcdext(a, b)</code>. Funkcja ta zwraca wektor liczb <code>[x<sub>0</sub>, y<sub>0</sub>, d]</code>, gdzie <math>d = \gcd (a, b)</math>, a liczby <math>x_0</math> i <math>y_0</math> są rozwiązaniami równania
 
 
::<math>a x_0 + b y_0 = \gcd (a, b)</math>
 
 
Ponieważ założyliśmy, że <math>\gcd (a, b) = 1</math>, to łatwo zauważmy, że
 
 
::<math>a(c x_0) + b (c y_0) = c</math>
 
 
Zatem para liczb całkowitych <math>(c x_0, c y_0)</math> jest jednym z rozwiązań równania
 
 
::<math>a x + b y = c</math>
 
 
i wszystkie pozostałe rozwiązania uzyskujemy ze wzorów
 
 
::<math>x = c x_0 + b t</math>
 
 
::<math>y = c y_0 - a t</math>
 
 
Niech <math>a = 7</math> i <math>b = 17</math>. Funkcja <code>gcdext(7,17)</code> zwraca wektor <code>[5, -2, 1]</code>, zatem rozwiązaniami równania <math>7 x + 17 y = 1</math> są liczby
 
 
::<math>x = 5 + 17 t</math>
 
 
::<math>y = - 2 - 7 t</math>
 
 
A rozwiązaniami równania <math>7 x + 17 y = 10</math> są liczby
 
 
::<math>x = 50 + 17 t</math>
 
 
::<math>y = - 20 - 7 t</math>
 
  
  
  
  
 +
== Przypisy ==
  
 
 
 
 
 
 
 
 
 
== Przypisy ==
 
 
<references>
 
<references>
  
<ref name="WellOrdering">Korzystamy w&nbsp;tym momencie z&nbsp;zasady dobrego uporządkowania zbioru liczb naturalnych, która stwierdza, że każdy niepusty podzbiór zbioru liczb naturalnych zawiera element najmniejszy. ([https://pl.wikipedia.org/wiki/Zasada_dobrego_uporz%C4%85dkowania Wiki-pl]), ([https://en.wikipedia.org/wiki/Well-ordering_principle Wiki-en])</ref>
+
<ref name="Dukic1">Dušan Đukić, ''Quadratic Congruences'', International Mathematical Olympiad training materials, ([https://imomath.com/index.cgi?page=quadraticCongruencesSumsLegendreSymbols IMOmath.com])</ref>
  
<ref name="LiczbaJestPostaci">Określenie, że „liczba <math>n</math> jest postaci <math>a k + b</math>”, jest jedynie bardziej czytelnym (obrazowym) zapisem stwierdzenia, że reszta z&nbsp;dzielenia liczby <math>n</math> przez <math>a</math> wynosi <math>b</math>. Zapis „liczba <math>n</math> jest postaci <math>a k - 1</math>” oznacza, że reszta z&nbsp;dzielenia liczby <math>n</math> przez <math>a</math> wynosi <math>a - 1</math>.</ref>
+
<ref name="Hasse1">Helmut Hasse, ''Zur Theorie der abstrakten elliptischen Funktionenkörper. I. Die Struktur der Gruppe der Divisisorenklassen endlicher Ordnung. II. Automorphismen und Meromorphismen. Das Additionstheorem. III. Die Struktur des Meromorphismenrings. Die Riemannsche Vermutung'', Journal für die reine und angewandte Mathematik 175 (1936) 55–62, 69–88, 193–207.</ref>
  
<ref name="Linnik1">Wikipedia, ''Linnik's theorem'', ([https://en.wikipedia.org/wiki/Linnik%27s_theorem Wiki-en])</ref>
+
<ref name="Hasse2">Wikipedia, ''Hasse's theorem on elliptic curves'', ([https://en.wikipedia.org/wiki/Hasse%27s_theorem_on_elliptic_curves Wiki-en]), ([https://ru.wikipedia.org/wiki/%D0%A2%D0%B5%D0%BE%D1%80%D0%B5%D0%BC%D0%B0_%D0%A5%D0%B0%D1%81%D1%81%D0%B5 Wiki-ru])</ref>
  
<ref name="Linnik2">MathWorld, ''Linnik's Theorem''. ([https://mathworld.wolfram.com/LinniksTheorem.html MathWorld])</ref>
+
<ref name="Manin1">Yu. I. Manin, ''On cubic congruences to a prime modulus'', Izv. Akad. Nauk SSSR Ser. Mat., 1956, Volume 20, Issue 5, 673–678</ref>
  
<ref name="Linnik3">Yuri Linnik, ''On the least prime in an arithmetic progression. I. The basic theorem'', Mat. Sb. (N.S.) 15 (1944) 139–178.</ref>
+
<ref name="Norton1">Karl K. Norton, ''Numbers with Small Prime Factors, and the Least ''k''th Power Non-Residue'', Memoirs of the American Mathematical Society, No. 106 (1971)</ref>
  
<ref name="Linnik4">Yuri Linnik, ''On the least prime in an arithmetic progression. II. The Deuring-Heilbronn phenomenon'', Mat. Sb. (N.S.) 15 (1944) 347–368.</ref>
+
<ref name="Trevino1">Enrique Treviño, ''The least k-th power non-residue'', Journal of Number Theory, Volume 149 (2015)</ref>
  
<ref name="Xylouris1">Triantafyllos Xylouris, ''Über die Nullstellen der Dirichletschen L-Funktionen und die kleinste Primzahl in einer arithmetischen Progression'', Bonner Mathematische Schriften, vol. 404, Univ. Bonn, 2011, Diss.</ref>
+
<ref name="Trevino2">Kevin J. McGown and Enrique Treviño, ''The least quadratic non-residue'', Mexican Mathematicians in the World (2021)</ref>
  
<ref name="Bombieri1">Enrico Bombieri, John B. Friedlander and Henryk Iwaniec, ''Primes in Arithmetic Progressions to Large Moduli. III'', Journal of the American Mathematical Society 2 (1989) 215-224</ref>
+
<ref name="Erdos1">Paul Erdős, ''Számelméleti megjegyzések I'', Afar. Lapok, v. 12 (1961)</ref>
  
<ref name="Turan1">Paul Turán, ''Über die Primzahlen der arithmetischen Progression'', Acta Sci. Szeged 8 (1937), 226-235</ref>
+
<ref name="Pollack1">Paul Pollack, ''The average least quadratic nonresidue modulo <math>m</math> and other variations on a&nbsp;theme of Erdős'', Journal of Number Theory, Vol. 132 (2012), No. 6, pp. 1185-1202.</ref>
  
<ref name="Wagstaff1">Samuel S. Wagstaff, Jr., ''Greatest of the Least Primes in Arithmetic Progressions Having a Given Modulus'', Mathematics of Computation Vol. 33, No. 147 (1979), 1073-1080</ref>
+
<ref name="InfiniteDescent1">Wikipedia, ''Proof by infinite descent'', ([https://en.wikipedia.org/wiki/Proof_by_infinite_descent Wiki-en])</ref>
  
<ref name="PAPWiki">Wikipedia, ''Primes in arithmetic progression'', ([https://en.wikipedia.org/wiki/Primes_in_arithmetic_progression Wiki-en])</ref>
+
<ref name="Bussey1">W. H. Bussey, ''Fermat's Method of Infinite Descent'', The American Mathematical Monthly, Vol. 25, No. 8 (1918)</ref>
  
<ref name="PAPMathWorld">MathWorld, ''Prime Arithmetic Progression'', ([https://mathworld.wolfram.com/PrimeArithmeticProgression.html LINK])</ref>
+
<ref name="HardyWright1">G. H. Hardy and Edward M. Wright, ''An Introduction to the Theory of Numbers'', New York: Oxford University Press, 5th Edition, zobacz dowód Twierdzenia 366 w&nbsp;sekcji 20.4 na stronie 301.</ref>
  
<ref name="Corput">J. G. van der Corput, ''Über Summen von Primzahlen und Primzahlquadraten'', Mathematische Annalen, 116 (1939) 1-50, ([https://eudml.org/doc/159991 LINK])</ref>
+
<ref name="Gica1">Alexandru Gica, ''Quadratic Residues of Certain Types'', Rocky Mountain J. Math. 36 (2006), no. 6, 1867-1871.</ref>
  
<ref name="largestPAP">Wikipedia, ''Largest known primes in AP'', ([https://en.wikipedia.org/wiki/Primes_in_arithmetic_progression#Largest_known_primes_in_AP Wiki-en])</ref>
+
<ref name="Pollack2">Paul Pollack, ''The least prime quadratic nonresidue in a&nbsp;prescribed residue class mod 4'', Journal of Number Theory 187 (2018), 403-414</ref>
 
 
<ref name="GeenTao">Ben Green and Terence Tao, ''The Primes Contain Arbitrarily Long Arithmetic Progressions.'', Ann. of Math. (2) 167 (2008), 481-547, ([https://annals.math.princeton.edu/2008/167-2/p03 LINK1]), Preprint. 8 Apr 2004, ([http://arxiv.org/abs/math.NT/0404188 LINK2])</ref>
 
 
 
<ref name="CPAP1">Wikipedia, ''Primes in arithmetic progression - Largest known consecutive primes in AP'', ([https://en.wikipedia.org/wiki/Primes_in_arithmetic_progression#Largest_known_consecutive_primes_in_AP Wiki-en])</ref>
 
 
 
<ref name="PrimesInInterval">Henryk Dąbrowski, ''Twierdzenie Czebyszewa o&nbsp;liczbie pierwszej między n i 2n - Uwagi do twierdzenia'', ([https://henryk-dabrowski.pl/index.php?title=Twierdzenie_Czebyszewa_o_liczbie_pierwszej_mi%C4%99dzy_n_i_2n#Uwagi_do_twierdzenia LINK])</ref>
 
  
 
</references>
 
</references>
 
 
 
 
  
  

Wersja z 19:51, 22 lut 2024

22.04.2023



Przykłady sum symboli Legendre'a

Twierdzenie K1
Niech [math]\displaystyle{ p }[/math] będzie liczbą pierwszą nieparzystą, [math]\displaystyle{ a, d \in \mathbb{Z} }[/math] i [math]\displaystyle{ p \nmid d }[/math]. Pokazać, że

[math]\displaystyle{ \sum_{k = 1}^{p - 1} \left( {\small\frac{k}{p}} \right)_{\small{\!\! L}} = \sum_{k = 0}^{p - 1} \left( {\small\frac{k}{p}} \right)_{\small{\!\! L}} = 0 }[/math]
[math]\displaystyle{ \sum_{k = 1}^{p - 1} \left( {\small\frac{k^2}{p}} \right)_{\small{\!\! L}} = \sum_{k = 0}^{p - 1} \left( {\small\frac{k^2}{p}} \right)_{\small{\!\! L}} = p - 1 }[/math]
[math]\displaystyle{ \sum_{k = 0}^{p - 1} \left( {\small\frac{a + k d}{p}} \right)_{\small{\!\! L}} = 0 }[/math]
Dowód

Punkt 1.

Wystarczy zauważyć, że wśród liczb [math]\displaystyle{ 1, 2, \ldots, p - 1 }[/math] jest [math]\displaystyle{ {\small\frac{p - 1}{2}} }[/math] liczb kwadratowych modulo [math]\displaystyle{ p }[/math] i [math]\displaystyle{ {\small\frac{p - 1}{2}} }[/math] liczb niekwadratowych modulo [math]\displaystyle{ p }[/math]. Zatem

[math]\displaystyle{ \sum_{k = 1}^{p - 1} \left( {\small\frac{k}{p}} \right)_{\small{\!\! L}} = {\small\frac{p - 1}{2}} \cdot 1 + {\small\frac{p - 1}{2}} \cdot (- 1) = 0 }[/math]

Punkt 2.

Wystarczy zauważyć, że

[math]\displaystyle{ \left( {\small\frac{k^2}{p}} \right)_{\small{\!\! L}} = \left( {\small\frac{k}{p}} \right)_{\small{\!\! L}}^{\! 2} }[/math]

oraz że wśród liczb [math]\displaystyle{ 1, 2, \ldots, p - 1 }[/math] jest [math]\displaystyle{ {\small\frac{p - 1}{2}} }[/math] liczb kwadratowych modulo [math]\displaystyle{ p }[/math] i [math]\displaystyle{ {\small\frac{p - 1}{2}} }[/math] liczb niekwadratowych modulo [math]\displaystyle{ p }[/math]. Zatem

[math]\displaystyle{ \sum_{k = 1}^{p - 1} \left( {\small\frac{k}{p}} \right)_{\small{\!\! L}} = {\small\frac{p - 1}{2}} \cdot 1^2 + {\small\frac{p - 1}{2}} \cdot (- 1)^2 = p - 1 }[/math]

Punkt 3.

Z założenia liczby [math]\displaystyle{ p }[/math] i [math]\displaystyle{ d }[/math] są względnie pierwsze. Z twierdzenia C57 wiemy, że reszty [math]\displaystyle{ r_1, r_2, \ldots, r_p }[/math] z dzielenia [math]\displaystyle{ p }[/math] kolejnych liczb postaci

[math]\displaystyle{ x_k = a + k d }[/math]

przez liczbę [math]\displaystyle{ p }[/math] są wszystkie różne i tworzą zbiór [math]\displaystyle{ S = \{ 0, 1, \ldots, p - 1 \} }[/math]. Czyli wśród reszt [math]\displaystyle{ r_1, r_2, \ldots, r_p }[/math] jest [math]\displaystyle{ {\small\frac{p - 1}{2}} }[/math] liczb kwadratowych modulo [math]\displaystyle{ p }[/math], tyle samo liczb niekwadratowych modulo [math]\displaystyle{ p }[/math], a jedna z tych reszt jest podzielna przez [math]\displaystyle{ p }[/math]. Z własności symbolu Legendre'a wiemy, że licznik wpływa na wartość symbolu jedynie modulo mianownik (zobacz J33 p. 2). Zatem możemy napisać

[math]\displaystyle{ \sum_{k = 0}^{p - 1} \left( {\small\frac{a + k d}{p}} \right)_{\small{\!\! L}} = \sum_{j = 0}^{p - 1} \left( {\small\frac{r_j}{p}} \right)_{\small{\!\! L}} = {\small\frac{p - 1}{2}} \cdot 1 + {\small\frac{p - 1}{2}} \cdot (- 1) + 0 = 0 }[/math]

Co należało pokazać.


Twierdzenie K2* (George Pólya, Iwan Winogradow, 1918)
Jeżeli [math]\displaystyle{ p }[/math] jest liczbą pierwszą nieparzystą i [math]\displaystyle{ m, n \in \mathbb{N}_0 }[/math], to prawdziwe jest oszacowanie

[math]\displaystyle{ \left| \sum_{t = m}^{m + n} \left( {\small\frac{t}{p}} \right)_{\small{\!\! L}} \right| \lt \sqrt{p} \log p }[/math]


Twierdzenie K3
Jeżeli [math]\displaystyle{ p }[/math] jest liczbą pierwszą nieparzystą i [math]\displaystyle{ a, b \in \mathbb{Z} }[/math], to

[math]\displaystyle{ \sum_{k = 0}^{p - 1} \left( {\small\frac{k + a}{p}} \right)_{\small{\!\! L}} \left( {\small\frac{k + b}{p}} \right)_{\small{\!\! L}} = \begin{cases} \;\;\:\, - 1 & \text{gdy } \, p \nmid (a - b) \\ p - 1 & \text{gdy } \, p \mid (a - b) \\ \end{cases} }[/math]
Dowód

1. Przypadek, gdy [math]\displaystyle{ \boldsymbol{p \mid (a - b)} }[/math]

Z założenia [math]\displaystyle{ b \equiv a \!\! \pmod{p} }[/math]

[math]\displaystyle{ \sum_{k = 0}^{p - 1} \left( {\small\frac{k + a}{p}} \right)_{\small{\!\! L}} \left( {\small\frac{k + b}{p}} \right)_{\small{\!\! L}} = \sum_{k = 0}^{p - 1} \left( {\small\frac{k + a}{p}} \right)_{\small{\!\! L}} \left( {\small\frac{k + a}{p}} \right)_{\small{\!\! L}} = \sum_{k = 0}^{p - 1} \left( {\small\frac{k + a}{p}} \right)_{\small{\!\! L}}^{\! 2} }[/math]

Z twierdzenia C57 wiemy, że reszty [math]\displaystyle{ r_1, r_2, \ldots, r_p }[/math] z dzielenia [math]\displaystyle{ p }[/math] kolejnych liczb postaci

[math]\displaystyle{ x_k = a + k }[/math]

przez liczbę [math]\displaystyle{ p }[/math] są wszystkie różne i tworzą zbiór [math]\displaystyle{ S = \{ 0, 1, \ldots, p - 1 \} }[/math]. Czyli wśród reszt [math]\displaystyle{ r_1, r_2, \ldots, r_p }[/math] jest [math]\displaystyle{ {\small\frac{p - 1}{2}} }[/math] liczb kwadratowych modulo [math]\displaystyle{ p }[/math], tyle samo liczb niekwadratowych modulo [math]\displaystyle{ p }[/math], a jedna z tych reszt jest podzielna przez [math]\displaystyle{ p }[/math]. Z własności symbolu Legendre'a wiemy, że licznik wpływa na wartość symbolu jedynie modulo mianownik (zobacz J33 p. 2). Zatem możemy napisać

[math]\displaystyle{ \sum_{k = 0}^{p - 1} \left( {\small\frac{k + a}{p}} \right)_{\small{\!\! L}}^{\! 2} = \sum_{k = 0}^{p - 1} \left( {\small\frac{r_k}{p}} \right)_{\small{\!\! L}}^{\! 2} = p - 1 }[/math]

Co należało pokazać.

2. Przypadek, gdy [math]\displaystyle{ \boldsymbol{p \nmid (a - b)} }[/math]

Kładąc [math]\displaystyle{ j = k + a }[/math] i sumując od [math]\displaystyle{ a }[/math] do [math]\displaystyle{ p - 1 + a }[/math], otrzymujemy

[math]\displaystyle{ \sum_{k = 0}^{p - 1} \left( {\small\frac{k + a}{p}} \right)_{\small{\!\! L}} \left( {\small\frac{k + b}{p}} \right)_{\small{\!\! L}} = \sum_{j = a}^{p - 1 + a} \left( {\small\frac{j}{p}} \right)_{\small{\!\! L}} \left( {\small\frac{j + b - a}{p}} \right)_{\small{\!\! L}} }[/math]

Wśród [math]\displaystyle{ p }[/math] kolejnych liczb [math]\displaystyle{ a, a + 1, \ldots, p - 1 + a }[/math] istnieje dokładnie jedna liczba podzielna przez [math]\displaystyle{ p }[/math]. Możemy ją pominąć, bo nie wnosi ona wkładu do wyliczanej sumy.

[math]\displaystyle{ \sum_{k = 0}^{p - 1} \left( {\small\frac{k + a}{p}} \right)_{\small{\!\! L}} \left( {\small\frac{k + b}{p}} \right)_{\small{\!\! L}} = \underset{p \nmid j}{\sum_{j = a}^{p - 1 + a}} \left( {\small\frac{j}{p}} \right)_{\small{\!\! L}} \left( {\small\frac{j + b - a}{p}} \right)_{\small{\!\! L}} }[/math]
[math]\displaystyle{ \;\;\, = \underset{p \nmid j}{\sum_{j = a}^{p - 1 + a}} \left( {\small\frac{j}{p}} \right)_{\small{\!\! L}} \left( {\small\frac{j + (b - a) j j^{- 1}}{p}} \right)_{\small{\!\! L}} }[/math]
[math]\displaystyle{ \;\;\, = \underset{p \nmid j}{\sum_{j = a}^{p - 1 + a}} \left( {\small\frac{j^2}{p}} \right)_{\small{\!\! L}} \left( {\small\frac{1 + (b - a) j^{- 1}}{p}} \right)_{\small{\!\! L}} }[/math]
[math]\displaystyle{ \;\;\, = \underset{p \nmid j}{\sum_{j = a}^{p - 1 + a}} \left( {\small\frac{1 + (b - a) j^{- 1}}{p}} \right)_{\small{\!\! L}} }[/math]

Z własności symbolu Legendre'a wiemy, że licznik wpływa na wartość symbolu jedynie modulo mianownik. Liczby [math]\displaystyle{ j = k + a }[/math], gdzie [math]\displaystyle{ k = 0, 1, \ldots, p - 1 }[/math], są wszystkie różne modulo [math]\displaystyle{ p }[/math] (zobacz H20). Niech zbiór [math]\displaystyle{ S }[/math] będzie zbiorem wszystkich liczb [math]\displaystyle{ j = k + a }[/math], które nie są podzielne przez [math]\displaystyle{ p }[/math]. Na mocy twierdzenia H25 zbiory [math]\displaystyle{ R = \{ 1, \ldots, p - 1 \} }[/math], [math]\displaystyle{ S }[/math] oraz [math]\displaystyle{ T = \{ s^{- 1}_1, \ldots, s^{- 1}_{p - 1} \} }[/math], gdzie [math]\displaystyle{ s_k \in S }[/math], są równe modulo [math]\displaystyle{ p }[/math]. Zatem od sumowania po [math]\displaystyle{ j }[/math] możemy przejść do sumowania po [math]\displaystyle{ r \in R }[/math].

[math]\displaystyle{ \sum_{k = 0}^{p - 1} \left( {\small\frac{k + a}{p}} \right)_{\small{\!\! L}} \left( {\small\frac{k + b}{p}} \right)_{\small{\!\! L}} = \sum_{r = 1}^{p - 1} \left( {\small\frac{1 + (b - a) r}{p}} \right)_{\small{\!\! L}} }[/math]
[math]\displaystyle{ \;\;\, = - \left( {\small\frac{1}{p}} \right)_{\small{\!\! L}} + \sum_{r = 0}^{p - 1} \left( {\small\frac{1 + (b - a) r}{p}} \right)_{\small{\!\! L}} }[/math]
[math]\displaystyle{ \;\;\, = - 1 }[/math]

Ostatnia z wypisanych sum jest równa zero, co wynika z trzeciego wzoru twierdzenia K1 i faktu, że [math]\displaystyle{ p \nmid (b - a) }[/math]. Co należało pokazać.


Twierdzenie K4
Jeżeli [math]\displaystyle{ p }[/math] jest liczbą pierwszą nieparzystą i [math]\displaystyle{ n \in \mathbb{Z} }[/math], to

[math]\displaystyle{ \sum_{k = 0}^{p - 1} \left( {\small\frac{k^2 + n}{p}} \right)_{\small{\!\! L}} = \begin{cases} \;\;\:\, - 1 & \text{gdy } \, p \nmid n \\ p - 1 & \text{gdy } \, p \mid n \\ \end{cases} }[/math]
Dowód

Przypadek, gdy [math]\displaystyle{ \boldsymbol{p \mid n} }[/math]

Z drugiego wzoru twierdzenia K1 otrzymujemy

[math]\displaystyle{ \sum_{k = 0}^{p - 1} \left( {\small\frac{k^2 + n}{p}} \right)_{\small{\!\! L}} = \sum_{k = 0}^{p - 1} \left( {\small\frac{k^2}{p}} \right)_{\small{\!\! L}} = p - 1 }[/math]

Przypadek, gdy [math]\displaystyle{ \boldsymbol{p \nmid n} }[/math]

Jeżeli liczby [math]\displaystyle{ a, b }[/math] są obie liczbami kwadratowymi lub obie liczbami niekwadratowymi modulo [math]\displaystyle{ p }[/math], to istnieje taka liczba [math]\displaystyle{ r }[/math], że

[math]\displaystyle{ a \equiv b r^2 \!\! \pmod{p} }[/math]

(zobacz J34). Zatem

[math]\displaystyle{ S(a) = \sum_{k = 0}^{p - 1} \left( {\small\frac{k^2 + a}{p}} \right)_{\small{\!\! L}} }[/math]
[math]\displaystyle{ \;\;\; = \sum^{p - 1}_{k = 0} \left( {\small\frac{k^2 + b r^2}{p}} \right)_{\small{\!\! L}} }[/math]
[math]\displaystyle{ \;\;\; = \sum_{k = 0}^{p - 1} \left( {\small\frac{r^2 \left[ (k r^{- 1})^2 + b \right] }{p}} \right)_{\small{\!\! L}} }[/math]
[math]\displaystyle{ \;\;\; = \left( {\small\frac{r^2}{p}} \right)_{\small{\!\! L}} \sum_{k = 0}^{p - 1} \left( {\small\frac{(k r^{- 1})^2 + b}{p}} \right)_{\small{\!\! L}} }[/math]
[math]\displaystyle{ \;\;\; = \sum_{k = 0}^{p - 1} \left( {\small\frac{(k r^{- 1})^2 + b}{p}} \right)_{\small{\!\! L}} }[/math]

Z twierdzenia C57 wiemy, że gdy [math]\displaystyle{ k }[/math] przebiega zbiór [math]\displaystyle{ T = \{ 0, 1, \ldots, p - 1 \} }[/math], to [math]\displaystyle{ k r^{- 1} }[/math] przebiega zbiór [math]\displaystyle{ T' }[/math] identyczny ze zbiorem [math]\displaystyle{ T }[/math] modulo [math]\displaystyle{ p }[/math]. Zatem

[math]\displaystyle{ S(a) = \sum_{x = 0}^{p - 1} \left( {\small\frac{x^2 + b}{p}} \right)_{\small{\!\! L}} = S (b) }[/math]


Wynika stąd, że dla wszystkich liczb kwadratowych (odpowiednio niekwadratowych) modulo [math]\displaystyle{ p }[/math] wyrażenie [math]\displaystyle{ S(n) }[/math] ma taką samą wartość i jeśli wybierzemy liczby [math]\displaystyle{ a, b }[/math] tak, aby jedna była liczbą kwadratową, a druga liczbą niekwadratową modulo [math]\displaystyle{ p }[/math], to możemy napisać

[math]\displaystyle{ \sum_{n = 1}^{p - 1} S (n) = {\small\frac{p - 1}{2}} (S (a) + S (b)) }[/math]


Z drugiej strony

[math]\displaystyle{ \sum_{n = 1}^{p - 1} S (n) = \sum_{n = 1}^{p - 1} \sum_{k = 0}^{p - 1} \left( {\small\frac{k^2 + n}{p}} \right)_{\small{\!\! L}} }[/math]
[math]\displaystyle{ \;\;\;\: = \sum_{k = 0}^{p - 1} \sum_{n = 1}^{p - 1} \left( {\small\frac{k^2 + n}{p}} \right)_{\small{\!\! L}} }[/math]
[math]\displaystyle{ \;\;\;\: = \sum_{k = 0}^{p - 1} \left[ - \left( {\small\frac{k^2}{p}} \right)_{\small{\!\! L}} + \sum_{n = 0}^{p - 1} \left( {\small\frac{k^2 + n}{p}} \right)_{\small{\!\! L}} \right] }[/math]
[math]\displaystyle{ \;\;\;\: = - \sum_{k = 0}^{p - 1} \left( {\small\frac{k}{p}} \right)_{\small{\!\! L}}^{\! 2} }[/math]
[math]\displaystyle{ \;\;\;\: = - (p - 1) }[/math]

bo z twierdzenia K1 wiemy, że

[math]\displaystyle{ \sum_{n = 0}^{p - 1} \left( {\small\frac{n + k^2}{p}} \right)_{\small{\!\! L}} = 0 }[/math]


Łącząc uzyskane rezultaty, dostajemy

[math]\displaystyle{ - (p - 1) = {\small\frac{p - 1}{2}} (S (a) + S (b)) }[/math]

Zatem

[math]\displaystyle{ S(a) + S (b) = - 2 }[/math]


Z twierdzenia K3 mamy

[math]\displaystyle{ S(- 1) = \sum_{k = 0}^{p - 1} \left( {\small\frac{k^2 - 1}{p}} \right)_{\small{\!\! L}} = \sum^{p - 1}_{k = 0} \left( {\small\frac{k - 1}{p}} \right)_{\small{\!\! L}} \left( {\small\frac{k + 1}{p}} \right)_{\small{\!\! L}} = - 1 }[/math]

bo [math]\displaystyle{ p \nmid 2 }[/math]. Dla ustalenia uwagi przyjmijmy, że [math]\displaystyle{ a }[/math] jest liczbą kwadratową, a [math]\displaystyle{ b }[/math] jest liczbą niekwadratową modulo [math]\displaystyle{ p }[/math]. Jeżeli [math]\displaystyle{ - 1 }[/math] jest liczbą kwadratową modulo [math]\displaystyle{ p }[/math], to [math]\displaystyle{ S(a) = - 1 }[/math] i natychmiast otrzymujemy, że [math]\displaystyle{ S(b) = - 1 }[/math]. Jeżeli [math]\displaystyle{ - 1 }[/math] jest liczbą niekwadratową modulo [math]\displaystyle{ p }[/math], to [math]\displaystyle{ S(b) = - 1 }[/math] i natychmiast otrzymujemy, że [math]\displaystyle{ S(a) = - 1 }[/math]. Zatem bez względu na to, czy [math]\displaystyle{ n }[/math] jest liczbą kwadratową, czy liczbą niekwadratową modulo [math]\displaystyle{ p }[/math], musi być [math]\displaystyle{ S(n) = - 1 }[/math]. Co należało pokazać.


Zadanie K5
Pokazać, że jeżeli [math]\displaystyle{ p }[/math] jest liczbą pierwszą nieparzystą i [math]\displaystyle{ r , s \in \mathbb{Z} }[/math], to

[math]\displaystyle{ \sum_{k = 0}^{p - 1} \left( {\small\frac{k^2 + r k + s}{p}} \right)_{\small{\!\! L}} = \begin{cases} \;\;\:\, - 1 & \text{gdy } \, p \nmid (r^2 - 4 s) \\ p - 1 & \text{gdy } \, p \mid (r^2 - 4 s) \\ \end{cases} }[/math]
Rozwiązanie
[math]\displaystyle{ \sum_{k = 0}^{p - 1} \left( {\small\frac{k^2 + r k + s}{p}} \right)_{\small{\!\! L}} = \sum_{k = 0}^{p - 1} \left( {\small\frac{2^2}{p}} \right)_{\small{\!\! L}} \left( {\small\frac{k^2 + r k + s}{p}} \right)_{\small{\!\! L}} }[/math]
[math]\displaystyle{ \;\;\;\, = \sum_{k = 0}^{p - 1} \left( {\small\frac{4 k^2 + 4 r k + 4 s}{p}} \right)_{\small{\!\! L}} }[/math]
[math]\displaystyle{ \;\;\;\, = \sum^{p - 1}_{k = 0} \left( {\small\frac{(2 k + r)^2 + 4 s - r^2}{p}} \right)_{\small{\!\! L}} }[/math]

Z twierdzenia C57 wiemy, że gdy [math]\displaystyle{ k }[/math] przebiega zbiór [math]\displaystyle{ T = \{ 0, 1, \ldots, p - 1 \} }[/math], to [math]\displaystyle{ 2 k + r }[/math] przebiega zbiór [math]\displaystyle{ T' }[/math] identyczny ze zbiorem [math]\displaystyle{ T }[/math] modulo [math]\displaystyle{ p }[/math]. Zatem

[math]\displaystyle{ \sum_{k = 0}^{p - 1} \left( {\small\frac{k^2 + r k + s}{p}} \right)_{\small{\!\! L}} = \sum_{x = 0}^{p - 1} \left( {\small\frac{x^2 + 4 s - r^2}{p}} \right)_{\small{\!\! L}} }[/math]

Z twierdzenia K4 wynika natychmiast teza dowodzonego twierdzenia.


Twierdzenie K6
Jeżeli [math]\displaystyle{ p }[/math] jest liczbą pierwszą nieparzystą i [math]\displaystyle{ n \in \mathbb{Z} }[/math], to dla sumy

[math]\displaystyle{ S(n) = \sum_{k = 0}^{p - 1} \left( {\small\frac{k (k^2 + n)}{p}} \right)_{\small{\!\! L}} }[/math]

prawdziwe są następujące wzory

(a) [math]\displaystyle{ \;\; S(n) = 0 \qquad \qquad \text{gdy } \; p = 4 k + 3 }[/math]
(b) [math]\displaystyle{ \;\; | S (n) | \lt 2 \sqrt{p} \qquad \text{gdy } \; p = 4 k + 1 }[/math]
Dowód

Punkt (a)

Zauważmy, że zbiory [math]\displaystyle{ R = \{ 0, 1, 2, \ldots, p - 1 \} }[/math] oraz [math]\displaystyle{ T = \{ - p + 1, - p + 2, \ldots, - p + (p - 1), 0 \} }[/math] są identyczne modulo [math]\displaystyle{ p }[/math]. Z własności symbolu Legendre'a wiemy, że licznik wpływa na wartość symbolu jedynie modulo mianownik (zobacz J33 p.2). Zatem możemy sumowanie po [math]\displaystyle{ k \in R }[/math] zastąpić sumowaniem po [math]\displaystyle{ j \in T . }[/math] Otrzymujemy

[math]\displaystyle{ S(n) = \sum_{j = - p + 1}^{0} \left( {\small\frac{j (j^2 + n)}{p}} \right)_{\small{\!\! L}} }[/math]

Kładąc [math]\displaystyle{ j = - r }[/math] i sumując po [math]\displaystyle{ r }[/math] od [math]\displaystyle{ 0 }[/math] do [math]\displaystyle{ p - 1 }[/math], dostajemy

[math]\displaystyle{ S(n) = \sum_{r = 0}^{p - 1} \left( {\small\frac{- r}{p}} \right)_{\small{\!\! L}} \left( {\small\frac{(- r)^2 + n}{p}} \right)_{\small{\!\! L}} = \sum_{r = 0}^{p - 1} \left( {\small\frac{- 1}{p}} \right)_{\small{\!\! L}} \left( {\small\frac{r}{p}} \right)_{\small{\!\! L}} \left( {\small\frac{r^2 + n}{p}} \right)_{\small{\!\! L}} = \left( {\small\frac{- 1}{p}} \right)_{\small{\!\! L}} S (n) }[/math]

Jeżeli [math]\displaystyle{ p = 4 k + 3 }[/math], to [math]\displaystyle{ S (n) = - S (n) }[/math], czyli [math]\displaystyle{ S(n) = 0 }[/math].

Punkt (b)

Pomysł dowodu zaczerpnęliśmy z materiałów szkoleniowych Międzynarodowej Olimpiady Matematycznej[1].

Jeżeli liczby [math]\displaystyle{ a, b }[/math] są obie liczbami kwadratowymi lub obie liczbami niekwadratowymi modulo [math]\displaystyle{ p }[/math], to istnieje taka liczba [math]\displaystyle{ r }[/math], że

[math]\displaystyle{ a \equiv b r^2 \!\! \pmod{p} }[/math]

(zobacz J34). Zatem

[math]\displaystyle{ S(a) = S (b r^2) = \sum_{k = 0}^{p - 1} \left( {\small\frac{k (k^2 + b r^2)}{p}} \right)_{\small{\!\! L}} }[/math]
[math]\displaystyle{ \;\:\, = \sum_{k = 0}^{p - 1} \left( {\small\frac{r^3 (k r^{- 1}) \left[ (k r^{- 1})^2 + b \right] }{p}} \right)_{\small{\!\! L}} }[/math]
[math]\displaystyle{ \;\:\, = \left( {\small\frac{r^3}{p}} \right)_{\small{\!\! L}} \sum_{k = 0}^{p - 1} \left( {\small\frac{(k r^{- 1}) \left[ (k r^{- 1})^2 + b \right] }{p}} \right)_{\small{\!\! L}} }[/math]
[math]\displaystyle{ \;\:\, = \left( {\small\frac{r}{p}} \right)_{\small{\!\! L}} \sum_{k = 0}^{p - 1} \left( {\small\frac{(k r^{- 1}) \left[ (k r^{- 1})^2 + b \right] }{p}} \right)_{\small{\!\! L}} }[/math]

Z twierdzenia C57 wiemy, że gdy [math]\displaystyle{ k }[/math] przebiega zbiór [math]\displaystyle{ T = \{ 0, 1, \ldots, p - 1 \} }[/math], to [math]\displaystyle{ k r^{- 1} }[/math] przebiega zbiór [math]\displaystyle{ T' }[/math] identyczny ze zbiorem [math]\displaystyle{ T }[/math] modulo [math]\displaystyle{ p }[/math]. Zatem

[math]\displaystyle{ S(a) = \left( {\small\frac{r}{p}} \right)_{\small{\!\! L}} \sum_{x = 0}^{p - 1} \left( {\small\frac{x (x^2 + b)}{p}} \right)_{\small{\!\! L}} = \left( {\small\frac{r}{p}} \right)_{\small{\!\! L}} S (b) }[/math]

Czyli [math]\displaystyle{ S (a)^2 = S (b)^2 }[/math]. Wynika stąd, że dla wszystkich liczb kwadratowych (odpowiednio niekwadratowych) modulo [math]\displaystyle{ p }[/math] wyrażenie [math]\displaystyle{ S (n)^2 }[/math] ma taką samą wartość i jeśli wybierzemy liczby [math]\displaystyle{ a, b }[/math] tak, aby jedna była liczbą kwadratową, a druga liczbą niekwadratową modulo [math]\displaystyle{ p }[/math], to prawdziwa jest równość

[math]\displaystyle{ \sum_{n = 1}^{p - 1} S (n)^2 = {\small\frac{p - 1}{2}} (S (a)^2 + S (b)^2) }[/math]

Jak łatwo zauważyć [math]\displaystyle{ S(0) = 0 }[/math], zatem możemy napisać

[math]\displaystyle{ \sum_{n = 0}^{p - 1} S (n)^2 = {\small\frac{p - 1}{2}} (S (a)^2 + S (b)^2) }[/math]

Z drugiej strony

[math]\displaystyle{ S (n)^2 = \sum_{k = 1}^{p - 1} \left( {\small\frac{k (k^2 + n)}{p}} \right)_{\small{\!\! L}} \sum^{p - 1}_{j = 1} \left( {\small\frac{j (j^2 + n)}{p}} \right)_{\small{\!\! L}} }[/math]
[math]\displaystyle{ \quad \,\, = \sum_{k = 1}^{p - 1} \sum_{j = 1}^{p - 1} \left( {\small\frac{k (k^2 + n)}{p}} \right)_{\small{\!\! L}} \left( {\small\frac{j (j^2 + n)}{p}} \right)_{\small{\!\! L}} }[/math]
[math]\displaystyle{ \quad \,\, = \sum_{k = 1}^{p - 1} \sum_{j = 1}^{p - 1} \left( {\small\frac{k j (k^2 + n) (j^2 + n)}{p}} \right)_{\small{\!\! L}} }[/math]

Zatem

[math]\displaystyle{ \sum_{n = 0}^{p - 1} S (n)^2 = \sum_{n = 0}^{p - 1} \sum_{k = 1}^{p - 1} \sum_{j = 1}^{p - 1} \left( {\small\frac{k j (k^2 + n) (j^2 + n)}{p}} \right)_{\small{\!\! L}} }[/math]
[math]\displaystyle{ \;\! = \sum_{k = 1}^{p - 1} \sum_{j = 1}^{p - 1} \left( {\small\frac{k j}{p}} \right)_{\small{\!\! L}} \sum_{n = 0}^{p - 1} \left( {\small\frac{(n + k^2) (n + j^2)}{p}} \right)_{\small{\!\! L}} }[/math]


Z twierdzenia K3 wiemy, że

[math]\displaystyle{ \sum_{n = 0}^{p - 1} \left( {\small\frac{(n + k^2) (n + j^2)}{p}} \right)_{\small{\!\! L}} = \begin{cases} \;\;\:\, - 1 & \text{gdy } \, p \nmid (k^2 - j^2) \\ p - 1 & \text{gdy } \, p \mid (k^2 - j^2) \\ \end{cases} }[/math]


Zbadajmy, kiedy [math]\displaystyle{ p \mid (k^2 - j^2) }[/math], czyli kiedy [math]\displaystyle{ p \mid [(k - j) (k + j)] }[/math]. Mamy

  • [math]\displaystyle{ \; 0 \leqslant | k - j | \leqslant p - 2 }[/math]
  • [math]\displaystyle{ \; 2 \leqslant k + j \leqslant 2 p - 2 }[/math]

Zatem [math]\displaystyle{ p \mid [(k - j) (k + j)] }[/math] gdy

  • [math]\displaystyle{ \; j = k }[/math]
  • [math]\displaystyle{ \; j = p - k }[/math]


Pozwala to zapisać rozpatrywaną sumę w postaci

[math]\displaystyle{ \sum_{n = 0}^{p - 1} S (n)^2 = \sum_{k = 1}^{p - 1} \sum_{j = 1}^{p - 1} \left( {\small\frac{k j}{p}} \right)_{\small{\!\! L}} \cdot \left\{ \begin{array}{rll} - 1 & \text{gdy } \; j \neq k \;\;\;\; \text{ i } \;\;\;\; j \neq p - k \\ p - 1 & \text{gdy } \; j = k \;\; \text{ lub } \;\; j = p - k \\ \end{array} \right\} }[/math]
[math]\displaystyle{ \:\! = (p - 1) \underset{j = k \; \text{ lub } \; j = p - k}{\sum^{p - 1}_{k = 1} \sum_{j = 1}^{p - 1}} \left( {\small\frac{k j}{p}} \right)_{\small{\!\! L}} - \underset{j \neq k \; \text{ i } \; j \neq p - k}{\sum_{k = 1}^{p - 1} \sum_{j = 1}^{p - 1}} \left( {\small\frac{k j}{p}} \right)_{\small{\!\! L}} }[/math]
[math]\displaystyle{ \:\! = (p - 1) \underset{j = k \; \text{ lub } \; j = p - k}{\sum^{p - 1}_{k = 1} \sum_{j = 1}^{p - 1}} \left( {\small\frac{k j}{p}} \right)_{\small{\!\! L}} - \sum_{k = 1}^{p - 1} \sum_{j = 1}^{p - 1} \left( {\small\frac{k j}{p}} \right)_{\small{\!\! L}} + \underset{j = k \; \text{ lub } \; j = p - k}{\sum_{k = 1}^{p - 1} \sum_{j = 1}^{p - 1}} \left( {\small\frac{k j}{p}} \right)_{\small{\!\! L}} }[/math]
[math]\displaystyle{ \:\! = p \underset{j = k \; \text{ lub } \; j = p - k}{\sum^{p - 1}_{k = 1} \sum_{j = 1}^{p - 1}} \left( {\small\frac{k j}{p}} \right)_{\small{\!\! L}} - \sum_{k = 1}^{p - 1} \sum_{j = 1}^{p - 1} \left( {\small\frac{k}{p}} \right)_{\small{\!\! L}} \left( {\small\frac{j}{p}} \right)_{\small{\!\! L}} }[/math]
[math]\displaystyle{ \:\! = p \left[ \sum_{k = 1}^{p - 1} \left( {\small\frac{k^2}{p}} \right)_{\small{\!\! L}} + \sum_{k = 1}^{p - 1} \left( {\small\frac{k (p - k)}{p}} \right)_{\small{\!\! L}} \right] - \sum_{k = 1}^{p - 1} \left( {\small\frac{k}{p}} \right)_{\small{\!\! L}} \sum^{p - 1}_{j = 1} \left( {\small\frac{j}{p}} \right)_{\small{\!\! L}} }[/math]
[math]\displaystyle{ \:\! = p \left[ (p - 1) + \sum_{k = 1}^{p - 1} \left( {\small\frac{- k^2}{p}} \right)_{\small{\!\! L}} \right] }[/math]
[math]\displaystyle{ \:\! = p \left[ (p - 1) + \left( {\small\frac{-1}{p}} \right)_{\small{\!\! L}} \sum_{k = 1}^{p - 1} \left( {\small\frac{k^2}{p}} \right)_{\small{\!\! L}} \right] }[/math]
[math]\displaystyle{ \:\! = 2 p (p - 1) }[/math]

Zauważmy, że [math]\displaystyle{ \left( {\small\frac{- 1}{p}} \right)_{\small{\!\! L}} = 1 }[/math], bo [math]\displaystyle{ p = 4 k + 1 }[/math].


Ponieważ wcześniej pokazaliśmy, że

[math]\displaystyle{ \sum_{n = 0}^{p - 1} S (n)^2 = {\small\frac{p - 1}{2}} (S (a)^2 + S (b)^2) }[/math]

to otrzymujemy

[math]\displaystyle{ {\small\frac{p - 1}{2}} (S (a)^2 + S (b)^2) = 2 p (p - 1) }[/math]

Czyli

[math]\displaystyle{ S (a)^2 + S (b)^2 = 4 p }[/math]

Wynika stąd, że bez względu na to, czy [math]\displaystyle{ n }[/math] jest liczbą kwadratową, czy liczbą niekwadratową modulo [math]\displaystyle{ p }[/math], prawdziwe jest oszacowanie

[math]\displaystyle{ | S (n) | \leqslant 2 \sqrt{p} }[/math]

Równość [math]\displaystyle{ S (n)^2 = 4 p }[/math] nie jest możliwa, bo dzielnik pierwszy [math]\displaystyle{ p }[/math] występuje po prawej stronie w potędze nieparzystej. Zatem mamy nieco silniejsze oszacowanie

[math]\displaystyle{ | S (n) | \lt 2 \sqrt{p} }[/math]

Co kończy dowód.


Twierdzenie K7
Jeżeli [math]\displaystyle{ p }[/math] jest liczbą pierwszą nieparzystą i [math]\displaystyle{ a, b \in \mathbb{Z} }[/math], to dla sumy

[math]\displaystyle{ S(a, b) = \sum_{x = 0}^{p - 1} \left( {\small\frac{x^3 + a x + b}{p}} \right)_{\small{\!\! L}} }[/math]

prawdziwe są następujące wzory

(a) [math]\displaystyle{ \;\; S(a, b) = - \left( {\small\frac{6 b}{p}} \right)_{\small{\!\! L}} \qquad \qquad \, \text{gdy } \; p \mid (4 a^3 + 27 b^2) }[/math]
(b) [math]\displaystyle{ \;\; | S (a, b) | \lt 2 \sqrt{p} \qquad \qquad \;\;\;\; \text{gdy } \; p \nmid (4 a^3 + 27 b^2) }[/math]
Dowód

Niech [math]\displaystyle{ p \geqslant 5 }[/math]. W ogólnym przypadku interesująca nas suma ma postać

[math]\displaystyle{ \sum_{t = 0}^{p - 1} \left( {\small\frac{a t^3 + b t^2 + c t + d}{p}} \right)_{\small{\!\! L}} }[/math]

gdzie [math]\displaystyle{ p \nmid a }[/math]. Mnożąc licznik przez [math]\displaystyle{ a^2 }[/math] nie zmieniamy wartości sumy

[math]\displaystyle{ \sum_{t = 0}^{p - 1} \left( {\small\frac{a^3 t^3 + a^2 b t^2 + a^2 c t + a^2 d}{p}} \right)_{\small{\!\! L}} }[/math]

Podstawiając [math]\displaystyle{ x \equiv a t + r \!\! \pmod{p} }[/math], dostajemy

[math]\displaystyle{ \sum_{x = 0}^{p - 1} \left( {\small\frac{x^3 + x^2 (b - 3 r) + x [a c - r (2 b - 3 r)] + [a^2 d - a c r + r^2 (b - r)]}{p}} \right)_{\small{\!\! L}} }[/math]

bo, gdy [math]\displaystyle{ t }[/math] przebiega zbiór [math]\displaystyle{ \{ 0, 1, \ldots, p - 1 \} }[/math], to (modulo [math]\displaystyle{ p }[/math]) liczby [math]\displaystyle{ a t + r }[/math] przebiegają taki sam zbiór (zobacz C57). Ponieważ [math]\displaystyle{ p \geqslant 5 }[/math], to liczbę [math]\displaystyle{ r }[/math] możemy wybrać tak, aby było

[math]\displaystyle{ 3 r \equiv b \!\! \pmod{p} }[/math]

Ostatecznie otrzymujemy

[math]\displaystyle{ \sum_{x = 0}^{p - 1} \left( {\small\frac{x^3 + x (a c - 3 r^2) + (a^2 d - a c r + 2 r^3)}{p}} \right)_{\small{\!\! L}} }[/math]


Widzimy, że bez zmniejszania ogólności, możemy ograniczyć się do badania sumy postaci

[math]\displaystyle{ S(a, b) = \sum_{x = 0}^{p - 1} \left( {\small\frac{x^3 + a x + b}{p}} \right)_{\small{\!\! L}} }[/math]

Liczbę [math]\displaystyle{ - \left( 4 a^3 + 27 b^2 \right) }[/math] nazywamy wyróżnikiem wielomianu [math]\displaystyle{ x^3 + a x + b }[/math].

Pokażemy, że w przypadku, gdy [math]\displaystyle{ 4 a^3 + 27 b^2 \equiv 0 \!\! \pmod{p} }[/math] i [math]\displaystyle{ p \geqslant 3 }[/math] prawdziwy jest wzór

[math]\displaystyle{ S(a, b) = \sum_{x = 0}^{p - 1} \left( {\small\frac{x^3 + a x + b}{p}} \right)_{\small{\!\! L}} = - \left( {\small\frac{6 b}{p}} \right)_{\small{\!\! L}} }[/math]


W przypadku, gdy [math]\displaystyle{ p = 3 }[/math] z warunku [math]\displaystyle{ 4 a^3 + 27 b^2 \equiv 0 \pmod{3} }[/math] wynika, że [math]\displaystyle{ 3 \mid a }[/math]. Zakładając, że reszta z dzielenia liczby [math]\displaystyle{ b }[/math] przez [math]\displaystyle{ 3 }[/math] wynosi [math]\displaystyle{ r }[/math], otrzymujemy

[math]\displaystyle{ S(a, b) = \sum_{x = 0}^{2} \left( {\small\frac{x^3 + b}{3}} \right)_{\small{\!\! L}} = \left( {\small\frac{b}{3}} \right)_{\small{\!\! L}} + \left( {\small\frac{1 + b}{3}} \right)_{\small{\!\! L}} + \left( {\small\frac{8 + b}{3}} \right)_{\small{\!\! L}} = \left( {\small\frac{r}{3}} \right)_{\small{\!\! L}} + \left( {\small\frac{r + 1}{3}} \right)_{\small{\!\! L}} + \left( {\small\frac{r + 2}{3}} \right)_{\small{\!\! L}} = \left( {\small\frac{0}{3}} \right)_{\small{\!\! L}} + \left( {\small\frac{1}{3}} \right)_{\small{\!\! L}} + \left( {\small\frac{2}{3}} \right)_{\small{\!\! L}} = 0 }[/math]


Jeżeli [math]\displaystyle{ p \geqslant 5 }[/math] i [math]\displaystyle{ p \mid a }[/math], to [math]\displaystyle{ p \mid b }[/math] i łatwo znajdujemy, że

[math]\displaystyle{ S(a, b) = \sum_{x = 0}^{p - 1} \left( {\small\frac{x^3 + a x + b}{p}} \right)_{\small{\!\! L}} = \sum_{x = 0}^{p - 1} \left( {\small\frac{x^3}{p}} \right)_{\small{\!\! L}} = 0 }[/math]


Jeżeli [math]\displaystyle{ p \geqslant 5 }[/math] i [math]\displaystyle{ p \nmid a }[/math], to

[math]\displaystyle{ x^3 + a x + b \equiv (x - x_1) (x - x_2)^2 \!\! \pmod{p} }[/math]

gdzie

[math]\displaystyle{ x_1 \equiv 3 b a^{- 1} \!\! \pmod{p} }[/math]
[math]\displaystyle{ x_2 \equiv - 3 b 2^{- 1} a^{- 1} \!\! \pmod{p} }[/math]

Co Czytelnik może łatwo sprawdzić, pamiętając o tym, że [math]\displaystyle{ 27 b^2 \cdot 2^{- 2} a^{- 3} \equiv - 1 \!\! \pmod{p} }[/math]. Mamy

[math]\displaystyle{ S(a, b) = \sum_{x = 0}^{p - 1} \left( {\small\frac{x - x_2}{p}} \right)_{\small{\!\! L}}^{\! 2} \left( {\small\frac{x - x_1}{p}} \right)_{\small{\!\! L}} }[/math]

Niech [math]\displaystyle{ t = x - x_2 }[/math]. Jeżeli [math]\displaystyle{ x }[/math] przebiega zbiór [math]\displaystyle{ \{ 0, 1, \ldots, p - 1 \} }[/math], to (modulo [math]\displaystyle{ p }[/math]) [math]\displaystyle{ t }[/math] przebiega taki sam zbiór (zobacz C57). Zatem

[math]\displaystyle{ S(a, b) = \sum_{t = 0}^{p - 1} \left( {\small\frac{t}{p}} \right)_{\small{\!\! L}}^{\! 2} \left( {\small\frac{t + x_2 - x_1}{p}} \right)_{\small{\!\! L}} = \sum_{t = 1}^{p - 1} \left( {\small\frac{t + x_2 - x_1}{p}} \right)_{\small{\!\! L}} = - \left( {\small\frac{x_2 - x_1}{p}} \right)_{\small{\!\! L}} + \sum_{t = 0}^{p - 1} \left( {\small\frac{t + x_2 - x_1}{p}} \right)_{\small{\!\! L}} = - \left( {\small\frac{x_2 - x_1}{p}} \right)_{\small{\!\! L}} }[/math]

Uwzględniając, że

[math]\displaystyle{ x_2 - x_1 \equiv - 3 b 2^{- 1} a^{- 1} - 3 b a^{- 1} \equiv - 3 b 2^{- 1} a^{- 1} - 6 b 2^{- 1} a^{- 1} \equiv - 9 b 2^{- 1} a^{- 1} \!\! \pmod{p} }[/math]

otrzymujemy

[math]\displaystyle{ S(a, b) = - \left( {\small\frac{x_2 - x_1}{p}} \right)_{\small{\!\! L}} = - \left( {\small\frac{- 9 b 2^{- 1} a^{- 1}}{p}} \right)_{\small{\!\! L}} = - \left( {\small\frac{- 2 a b}{p}} \right)_{\small{\!\! L}} = - \left( {\small\frac{- 8 a^3 b}{p}} \right)_{\small{\!\! L}} = - \left( {\small\frac{- 2 b \cdot (- 27 b^2)}{p}} \right)_{\small{\!\! L}} = - \left( {\small\frac{6 b}{p}} \right)_{\small{\!\! L}} }[/math]


W przypadku, gdy [math]\displaystyle{ 4 a^3 + 27 b^2 \not\equiv 0 \!\! \pmod{p} }[/math], pokażemy, że wartość sumy

[math]\displaystyle{ S(a, b) = \sum_{x = 0}^{p - 1} \left( {\small\frac{x^3 + a x + b}{p}} \right)_{\small{\!\! L}} }[/math]

jest ściśle związana z ilością rozwiązań kongruencji

[math]\displaystyle{ y^2 \equiv x^3 + a x + b \!\! \pmod{p} }[/math]


Niech [math]\displaystyle{ N_p }[/math] oznacza ilość rozwiązań powyższej kongruencji i niech [math]\displaystyle{ N_+, N_0, N_- }[/math] oznaczają ilości liczb [math]\displaystyle{ k \in \{ 0, 1, \ldots, p - 1 \} }[/math], dla których symbol Legendre'a [math]\displaystyle{ \left( {\small\frac{x^3 + a x + b}{p}} \right)_{\small{\!\! L}} }[/math] jest równy odpowiednio [math]\displaystyle{ + 1, 0, - 1 }[/math]. Oczywiście

[math]\displaystyle{ N_+ + N_0 + N_- = p }[/math]
[math]\displaystyle{ S(a, b) = N_+ - N_- }[/math]

Zauważmy, że jeżeli dla pewnego [math]\displaystyle{ x }[/math] jest [math]\displaystyle{ p \mid (x^3 + a x + b) }[/math], to [math]\displaystyle{ \left( {\small\frac{x^3 + a x + b}{p}} \right)_{\small{\!\! L}} = 0 }[/math] i mamy dokładnie jedno rozwiązanie rozważanej kongruencji

[math]\displaystyle{ 0^2 \equiv x^3 + a x + b \!\! \pmod{p} }[/math]

Jeżeli dla pewnego [math]\displaystyle{ x }[/math] jest [math]\displaystyle{ \left( {\small\frac{x^3 + a x + b}{p}} \right)_{\small{\!\! L}} = + 1 }[/math], to [math]\displaystyle{ p \nmid (x^3 + a x + b) }[/math], a liczba [math]\displaystyle{ x^3 + a x + b }[/math] jest liczbą kwadratową modulo [math]\displaystyle{ p }[/math], czyli istnieje taka liczba [math]\displaystyle{ y \in \mathbb{Z} }[/math], że

[math]\displaystyle{ y^2 \equiv x^3 + a x + b \!\! \pmod{p} }[/math]

i mamy dwa rozwiązania rozpatrywanej kongruencji: jedno stanowi para [math]\displaystyle{ (x, y) }[/math], a drugie para [math]\displaystyle{ (x, - y) }[/math]. Zatem

[math]\displaystyle{ N_p = 2 N_+ + N_0 }[/math]

Łatwo zauważamy, że

[math]\displaystyle{ N_p - p = (2 N_+ + N_0) - (N_+ + N_0 + N_-) = N_+ - N_- = S (a, b) }[/math]


W 1936 roku Helmut Hasse[2][3] udowodnił, że

[math]\displaystyle{ | N_p - p | \lt 2 \sqrt{p} }[/math]

Elementarny dowód tego twierdzenia podał Jurij Manin[4].


Wynika stąd, że w przypadku, gdy [math]\displaystyle{ 4 a^3 + 27 b^2 \not\equiv 0 \!\! \pmod{p} }[/math] prawdziwe jest oszacowanie

[math]\displaystyle{ | S (a, b) | = \left| \sum_{x = 0}^{p - 1} \left( {\small\frac{x^3 + a x + b}{p}} \right)_{\small{\!\! L}} \right| \lt 2 \sqrt{p} }[/math]

Co należało pokazać.


Zadanie K8
Pokazać, że jeżeli [math]\displaystyle{ p \geqslant 7 }[/math] jest liczbą pierwszą, to wśród liczb [math]\displaystyle{ 1, 2, \ldots, p - 1 }[/math] istnieją:

  • dwie kolejne liczby będące liczbami kwadratowymi modulo [math]\displaystyle{ p }[/math]
  • dwie kolejne liczby będące liczbami niekwadratowymi modulo [math]\displaystyle{ p }[/math]
Rozwiązanie

Dla [math]\displaystyle{ p = 7 }[/math] łatwo sprawdzamy, że twierdzenie jest prawdziwe.

Punkt 1.

Zauważmy, że przynajmniej jedna z liczb [math]\displaystyle{ 2, 5, 10 }[/math] jest liczbą kwadratową. Zakładając, że tak nie jest, otrzymujemy natychmiast sprzeczność

[math]\displaystyle{ -1 = \left( {\small\frac{10}{p}} \right)_{\small{\!\! L}} = \left( {\small\frac{2}{p}} \right)_{\small{\!\! L}} \cdot \left( {\small\frac{5}{p}} \right)_{\small{\!\! L}} = (- 1) \cdot (- 1) = 1 }[/math]

W zależności od tego, która z liczb [math]\displaystyle{ 2, 5, 10 }[/math] jest liczbą kwadratową, mamy następujące pary kolejnych liczb kwadratowych

Punkt 2.

Rozważmy wszystkie możliwe wartości [math]\displaystyle{ \left( {\small\frac{k}{p}} \right)_{\small{\!\! L}} }[/math] dla [math]\displaystyle{ k = 1, 2, 3, 4 }[/math] i [math]\displaystyle{ p \geqslant 11 }[/math]. Zauważmy, że [math]\displaystyle{ \left( {\small\frac{6}{p}} \right)_{\small{\!\! L}} = \left( {\small\frac{2}{p}} \right)_{\small{\!\! L}} \cdot \left( {\small\frac{3}{p}} \right)_{\small{\!\! L}} }[/math].

A. W tym przypadku liczby [math]\displaystyle{ 2, 3 }[/math] są liczbami kwadratowymi modulo [math]\displaystyle{ p }[/math]. Gdyby w pozostałych komórkach miało nie być ani jednej pary kolejnych liczb niekwadratowych modulo [math]\displaystyle{ p }[/math], to musielibyśmy [math]\displaystyle{ {\small\frac{p - 1}{2}} }[/math] liczb niekwadratowych umieścić wśród pozostałych [math]\displaystyle{ p - 5 }[/math] komórek tak, aby między nimi zawsze była liczba kwadratowa modulo [math]\displaystyle{ p }[/math]. Wartość [math]\displaystyle{ \left( {\small\frac{6}{p}} \right)_{\small{\!\! L}} }[/math] wymusza, aby liczby niekwadratowe modulo [math]\displaystyle{ p }[/math] umieszczać w komórkach „nieparzystych”. Po wypełnieniu tych komórek pozostaną nam dwie liczby, które będziemy zmuszeni umieścić w komórkach „parzystych”. Co oznacza, że muszą pojawić się dwie pary kolejnych liczb niekwadratowych modulo [math]\displaystyle{ p . }[/math]

B. i C. W tym przypadku dokładnie jedna z liczb [math]\displaystyle{ 2, 3 }[/math] jest liczbą kwadratową modulo [math]\displaystyle{ p }[/math]. Gdyby w pozostałych komórkach miało nie być ani jednej pary kolejnych liczb niekwadratowych modulo [math]\displaystyle{ p }[/math], to musielibyśmy [math]\displaystyle{ {\small\frac{p - 3}{2}} }[/math] liczb niekwadratowych umieścić wśród pozostałych [math]\displaystyle{ p - 5 }[/math] komórek tak, aby między nimi zawsze była liczba kwadratowa modulo [math]\displaystyle{ p }[/math]. Wartość [math]\displaystyle{ \left( {\small\frac{6}{p}} \right)_{\small{\!\! L}} }[/math] wymusza, aby liczby niekwadratowe modulo [math]\displaystyle{ p }[/math] umieszczać w komórkach „parzystych”. Po wypełnieniu tych komórek pozostanie nam jedna liczba, którą będziemy zmuszeni umieścić w komórce „nieparzystej”. Co oznacza, że musi pojawić się jedna para kolejnych liczb niekwadratowych modulo [math]\displaystyle{ p . }[/math]

D. W tym przypadku nie musimy niczego dowodzić, bo liczby [math]\displaystyle{ 2, 3 }[/math] są kolejnymi liczbami niekwadratowymi modulo [math]\displaystyle{ p . }[/math]


Uwaga K9
Wzmocnimy wynik uzyskany w poprzednim zadaniu. Zauważmy, jak użycie symbolu Legendre'a pozwala sformalizować problem.


Twierdzenie K10
Jeżeli [math]\displaystyle{ p }[/math] jest liczbą pierwszą nieparzystą, to

  • istnieje [math]\displaystyle{ \left\lfloor {\small\frac{p - 3}{4}} \right\rfloor }[/math] różnych par kolejnych liczb kwadratowych modulo [math]\displaystyle{ p }[/math]
  • istnieje [math]\displaystyle{ \left\lfloor {\small\frac{p - 1}{4}} \right\rfloor }[/math] różnych par kolejnych liczb niekwadratowych modulo [math]\displaystyle{ p }[/math]
Dowód

Punkt 1.

Chcemy znaleźć ilość takich liczb [math]\displaystyle{ k \in \{ 1, 2, \ldots, p - 2 \} }[/math], dla których

[math]\displaystyle{ \left( {\small\frac{k}{p}} \right)_{\small{\!\! L}} = \left( {\small\frac{k + 1}{p}} \right)_{\small{\!\! L}} = 1 }[/math]

Ilość liczb [math]\displaystyle{ k }[/math] spełniających powyższy warunek łatwo zapisać korzystając z symbolu Legendre'a

[math]\displaystyle{ N = {\small\frac{1}{4}} \sum_{k = 1}^{p - 2} \left[ 1 + \left( {\small\frac{k}{p}} \right)_{\small{\!\! L}} \right] \left[ 1 + \left( {\small\frac{k + 1}{p}} \right)_{\small{\!\! L}} \right] }[/math]

Tylko w przypadku, gdy obie liczby [math]\displaystyle{ k }[/math] i [math]\displaystyle{ k + 1 }[/math] są liczbami kwadratowymi modulo [math]\displaystyle{ p }[/math], iloczyn wyrażeń w nawiasach kwadratowych jest różny od zera i równy [math]\displaystyle{ 4 }[/math] (stąd czynnik [math]\displaystyle{ {\small\frac{1}{4}} }[/math] przed sumą).

[math]\displaystyle{ 4 N = \sum_{k = 1}^{p - 2} \left[ 1 + \left( {\small\frac{k}{p}} \right)_{\small{\!\! L}} + \left( {\small\frac{k + 1}{p}} \right)_{\small{\!\! L}} + \left( {\small\frac{k}{p}} \right)_{\small{\!\! L}} \left( {\small\frac{k + 1}{p}} \right)_{\small{\!\! L}} \right] }[/math]
[math]\displaystyle{ \: = p - 2 + \sum_{k = 1}^{p - 2} \left( {\small\frac{k}{p}} \right)_{\small{\!\! L}} + \sum_{k = 1}^{p - 2} \left( {\small\frac{k + 1}{p}} \right)_{\small{\!\! L}} + \sum_{k = 1}^{p - 2} \left( {\small\frac{k}{p}} \right)_{\small{\!\! L}} \left( {\small\frac{k + 1}{p}} \right)_{\small{\!\! L}} }[/math]

Po kolei wyliczamy sumy po prawej stronie

[math]\displaystyle{ \sum_{k = 1}^{p - 2} \left( {\small\frac{k}{p}} \right)_{\small{\!\! L}} = - \left( {\small\frac{p - 1}{p}} \right)_{\small{\!\! L}} + \sum_{k = 1}^{p - 1} \left( {\small\frac{k}{p}} \right)_{\small{\!\! L}} = - \left( {\small\frac{- 1}{p}} \right)_{\small{\!\! L}} }[/math]
[math]\displaystyle{ \sum_{k = 1}^{p - 2} \left( {\small\frac{k + 1}{p}} \right)_{\small{\!\! L}} = - \left( {\small\frac{1}{p}} \right)_{\small{\!\! L}} + \sum^{p - 1}_{k = 0} \left( {\small\frac{k + 1}{p}} \right)_{\small{\!\! L}} = - 1 }[/math]
[math]\displaystyle{ \sum_{k = 1}^{p - 2} \left( {\small\frac{k}{p}} \right)_{\small{\!\! L}} \left( {\small\frac{k + 1}{p}} \right)_{\small{\!\! L}} = \sum_{k = 0}^{p - 1} \left( {\small\frac{k}{p}} \right)_{\small{\!\! L}} \left( {\small\frac{k + 1}{p}} \right)_{\small{\!\! L}} = - 1 }[/math]

(zobacz K1 i K3). Zatem

[math]\displaystyle{ N = {\small\frac{1}{4}} \left[ p - 4 - \left( {\small\frac{- 1}{p}} \right)_{\small{\!\! L}} \right] }[/math]

Czyli

[math]\displaystyle{ N = \begin{cases} {\large\frac{p - 5}{4}} & \text{ gdy } \; p = 4 k + 1 \\ {\large\frac{p - 3}{4}} & \text{ gdy } \; p = 4 k + 3 \\ \end{cases} }[/math]

Powyższy wynik można zapisać w postaci

[math]\displaystyle{ N = \left\lfloor {\small\frac{p - 3}{4}} \right\rfloor }[/math]

Punkt 2.

Chcemy znaleźć ilość takich liczb [math]\displaystyle{ k \in \{ 1, 2, \ldots, p - 2 \} }[/math], dla których

[math]\displaystyle{ \left( {\small\frac{k}{p}} \right)_{\small{\!\! L}} = \left( {\small\frac{k + 1}{p}} \right)_{\small{\!\! L}} = - 1 }[/math]

Ilość liczb [math]\displaystyle{ k }[/math] spełniających powyższy warunek łatwo zapisać korzystając z symbolu Legendre'a

[math]\displaystyle{ N = {\small\frac{1}{4}} \sum_{k = 1}^{p - 2} \left[ - 1 + \left( {\small\frac{k}{p}} \right)_{\small{\!\! L}} \right] \left[ - 1 + \left( {\small\frac{k + 1}{p}} \right)_{\small{\!\! L}} \right] }[/math]

Tylko w przypadku, gdy obie liczby [math]\displaystyle{ k }[/math] i [math]\displaystyle{ k + 1 }[/math] są liczbami niekwadratowymi modulo [math]\displaystyle{ p }[/math], iloczyn wyrażeń w nawiasach kwadratowych jest różny od zera i równy [math]\displaystyle{ 4 }[/math] (stąd czynnik [math]\displaystyle{ {\small\frac{1}{4}} }[/math] przed sumą).

[math]\displaystyle{ 4 N = \sum_{k = 1}^{p - 2} \left[ 1 - \left( {\small\frac{k}{p}} \right)_{\small{\!\! L}} - \left( {\small\frac{k + 1}{p}} \right)_{\small{\!\! L}} + \left( {\small\frac{k}{p}} \right)_{\small{\!\! L}} \left( {\small\frac{k + 1}{p}} \right)_{\small{\!\! L}} \right] }[/math]
[math]\displaystyle{ \: = p - 2 - \sum_{k = 1}^{p - 2} \left( {\small\frac{k}{p}} \right)_{\small{\!\! L}} - \sum_{k = 1}^{p - 2} \left( {\small\frac{k + 1}{p}} \right)_{\small{\!\! L}} + \sum_{k = 1}^{p - 2} \left( {\small\frac{k}{p}} \right)_{\small{\!\! L}} \left( {\small\frac{k + 1}{p}} \right)_{\small{\!\! L}} }[/math]

Wartości sum wyliczyliśmy już w punkcie 1. Zatem

[math]\displaystyle{ N = {\small\frac{1}{4}} \left[ p - 2 + \left( {\small\frac{- 1}{p}} \right)_{\small{\!\! L}} \right] }[/math]

Czyli

[math]\displaystyle{ N = \begin{cases} {\large\frac{p - 1}{4}} & \text{ gdy } \; p = 4 k + 1 \\ {\large\frac{p - 3}{4}} & \text{ gdy } \; p = 4 k + 3 \\ \end{cases} }[/math]

Powyższy wynik można zapisać w postaci

[math]\displaystyle{ N = \left\lfloor {\small\frac{p - 1}{4}} \right\rfloor }[/math]

Co należało pokazać.


Twierdzenie K11
Niech [math]\displaystyle{ p }[/math] będzie liczbą pierwszą nieparzystą. Słowo „trójka” oznacza tutaj trzy kolejne liczby kwadratowe (niekwadratowe) modulo [math]\displaystyle{ p }[/math].

Jeżeli [math]\displaystyle{ p = 4 k + 3 }[/math], to liczba różnych trójek liczb kwadratowych (niekwadratowych) jest równa

[math]\displaystyle{ N = \left\lfloor {\small\frac{p - 3}{8}} \right\rfloor }[/math]

Jeżeli [math]\displaystyle{ p = 4 k + 1 }[/math], to liczba różnych trójek liczb niekwadratowych jest równa

[math]\displaystyle{ N = {\small\frac{p - 3 - S (- 1)}{8}} \gt {\small\frac{p - 3 - 2 \sqrt{p}}{8}} }[/math]

Jeżeli [math]\displaystyle{ p = 4 k + 1 }[/math], to liczba różnych trójek liczb kwadratowych jest równa

[math]\displaystyle{ N = {\small\frac{p - 15 + S (- 1)}{8}} \gt {\small\frac{p - 15 - 2 \sqrt{p}}{8}} \qquad \quad \text{ gdy } \; p = 8 k + 1 }[/math]
[math]\displaystyle{ N = {\small\frac{p - 7 + S (- 1)}{8}} \gt {\small\frac{p - 7 - 2 \sqrt{p}}{8}} \qquad \quad \;\;\; \text{ gdy } \; p = 8 k + 5 }[/math]

Gdzie przez [math]\displaystyle{ S(- 1) }[/math] oznaczyliśmy sumę

[math]\displaystyle{ S(- 1) = \sum_{k = 0}^{p - 1} \left( {\small\frac{k (k^2 - 1)}{p}} \right)_{\small{\!\! L}} }[/math]
Dowód

Przypadek pierwszy: trójki liczb kwadratowych modulo [math]\displaystyle{ \boldsymbol{p} }[/math]

Chcemy znaleźć ilość takich liczb [math]\displaystyle{ k \in \{ 2, 3, \ldots, p - 2 \} }[/math], dla których

[math]\displaystyle{ \left( {\small\frac{k - 1}{p}} \right)_{\small{\!\! L}} = \left( {\small\frac{k}{p}} \right)_{\small{\!\! L}} = \left( {\small\frac{k + 1}{p}} \right)_{\small{\!\! L}} = + 1 }[/math]

Ilość liczb [math]\displaystyle{ k }[/math] spełniających powyższy warunek łatwo zapisać korzystając z symbolu Legendre'a

[math]\displaystyle{ N = {\small\frac{1}{8}} \sum_{k = 2}^{p - 2} \left[ 1 + \left( {\small\frac{k - 1}{p}} \right)_{\small{\!\! L}} \right] \left[ 1 + \left( {\small\frac{k}{p}} \right)_{\small{\!\! L}} \right] \left[ 1 + \left( {\small\frac{k + 1}{p}} \right)_{\small{\!\! L}} \right] }[/math]

Tylko w przypadku, gdy wszystkie trzy liczby [math]\displaystyle{ k - 1, k, k + 1 }[/math] są liczbami kwadratowymi modulo [math]\displaystyle{ p }[/math], iloczyn wyrażeń w nawiasach kwadratowych jest różny od zera i równy [math]\displaystyle{ 8 }[/math] (stąd czynnik [math]\displaystyle{ {\small\frac{1}{8}} }[/math] przed sumą).

[math]\displaystyle{ 8 N = \sum_{k = 2}^{p - 2} \left[ 1 + \left( {\small\frac{k - 1}{p}} \right)_{\small{\!\! L}} + \left( {\small\frac{k}{p}} \right)_{\small{\!\! L}} + \left( {\small\frac{k + 1}{p}} \right)_{\small{\!\! L}} + \left( {\small\frac{k - 1}{p}} \right)_{\small{\!\! L}} \left( {\small\frac{k}{p}} \right)_{\small{\!\! L}} + \left( {\small\frac{k - 1}{p}} \right)_{\small{\!\! L}} \left( {\small\frac{k + 1}{p}} \right)_{\small{\!\! L}} + \left( {\small\frac{k}{p}} \right)_{\small{\!\! L}} \left( {\small\frac{k + 1}{p}} \right)_{\small{\!\! L}} + \left( {\small\frac{k - 1}{p}} \right)_{\small{\!\! L}} \left( {\small\frac{k}{p}} \right)_{\small{\!\! L}} \left( {\small\frac{k + 1}{p}} \right)_{\small{\!\! L}} \right] }[/math]
[math]\displaystyle{ \: = p - 3 + \sum_{k = 2}^{p - 2} \left( {\small\frac{k - 1}{p}} \right)_{\small{\!\! L}} + \sum_{k = 2}^{p - 2} \left( {\small\frac{k}{p}} \right)_{\small{\!\! L}} + \sum_{k = 2}^{p - 2} \left( {\small\frac{k + 1}{p}} \right)_{\small{\!\! L}} + \sum_{k = 2}^{p - 2} \left( {\small\frac{k - 1}{p}} \right)_{\small{\!\! L}} \left( {\small\frac{k}{p}} \right)_{\small{\!\! L}} + \sum_{k = 2}^{p - 2} \left( {\small\frac{k - 1}{p}} \right)_{\small{\!\! L}} \left( {\small\frac{k + 1}{p}} \right)_{\small{\!\! L}} + \sum_{k = 2}^{p - 2} \left( {\small\frac{k}{p}} \right)_{\small{\!\! L}} \left( {\small\frac{k + 1}{p}} \right)_{\small{\!\! L}} + \sum_{k = 2}^{p - 2} \left( {\small\frac{k (k^2 - 1)}{p}} \right)_{\small{\!\! L}} }[/math]


Po kolei wyliczamy sumy po prawej stronie

[math]\displaystyle{ \sum_{k = 2}^{p - 2} \left( {\small\frac{k - 1}{p}} \right)_{\small{\!\! L}} = - \left( {\small\frac{- 1}{p}} \right)_{\small{\!\! L}} - \left( {\small\frac{- 2}{p}} \right)_{\small{\!\! L}} }[/math]
[math]\displaystyle{ \sum_{k = 2}^{p - 2} \left( {\small\frac{k}{p}} \right)_{\small{\!\! L}} = - 1 - \left( {\small\frac{- 1}{p}} \right)_{\small{\!\! L}} }[/math]
[math]\displaystyle{ \sum_{k = 2}^{p - 2} \left( {\small\frac{k + 1}{p}} \right)_{\small{\!\! L}} = - 1 - \left( {\small\frac{2}{p}} \right)_{\small{\!\! L}} }[/math]


[math]\displaystyle{ \sum_{k = 2}^{p - 2} \left( {\small\frac{k - 1}{p}} \right)_{\small{\!\! L}} \left( {\small\frac{k}{p}} \right)_{\small{\!\! L}} = - 1 - \left( {\small\frac{2}{p}} \right)_{\small{\!\! L}} }[/math]
[math]\displaystyle{ \sum_{k = 2}^{p - 2} \left( {\small\frac{k - 1}{p}} \right)_{\small{\!\! L}} \left( {\small\frac{k + 1}{p}} \right)_{\small{\!\! L}} = - 1 - \left( {\small\frac{- 1}{p}} \right)_{\small{\!\! L}} }[/math]
[math]\displaystyle{ \sum_{k = 2}^{p - 2} \left( {\small\frac{k}{p}} \right)_{\small{\!\! L}} \left( {\small\frac{k + 1}{p}} \right)_{\small{\!\! L}} = - 1 - \left( {\small\frac{2}{p}} \right)_{\small{\!\! L}} }[/math]


[math]\displaystyle{ \sum_{k = 2}^{p - 2} \left( {\small\frac{k (k^2 - 1)}{p}} \right)_{\small{\!\! L}} = \sum^{p - 1}_{k = 0} \left( {\small\frac{k (k^2 - 1)}{p}} \right)_{\small{\!\! L}} = S (- 1) }[/math]


(zobacz K1, K3 i K6). Oznaczenie [math]\displaystyle{ S(- 1) }[/math] nawiązuje do oznaczenia wprowadzonego w twierdzeniu K6. Wykorzystamy też znalezione w tym twierdzeniu oszacowanie [math]\displaystyle{ | S (- 1) | }[/math].

Zatem

[math]\displaystyle{ 8 N = p - 8 - 3 \left( {\small\frac{- 1}{p}} \right)_{\small{\!\! L}} - 3 \left( {\small\frac{2}{p}} \right)_{\small{\!\! L}} - \left( {\small\frac{- 2}{p}} \right)_{\small{\!\! L}} + S (- 1) }[/math]

Jeżeli [math]\displaystyle{ p = 8 k + 1 }[/math]

[math]\displaystyle{ N = {\small\frac{p - 15 + S (- 1)}{8}} \gt {\small\frac{p - 15 - 2 \sqrt{p}}{8}} }[/math]

Jeżeli [math]\displaystyle{ p = 8 k + 3 }[/math]

[math]\displaystyle{ N = {\small\frac{p - 3}{8}} }[/math]

Jeżeli [math]\displaystyle{ p = 8 k + 5 }[/math]

[math]\displaystyle{ N = {\small\frac{p - 7 + S (- 1)}{8}} \gt {\small\frac{p - 7 - 2 \sqrt{p}}{8}} }[/math]

Jeżeli [math]\displaystyle{ p = 8 k + 7 }[/math]

[math]\displaystyle{ N = {\small\frac{p - 7}{8}} }[/math]


Przypadek drugi: trójki liczb niekwadratowych modulo [math]\displaystyle{ \boldsymbol{p} }[/math]

Chcemy znaleźć ilość takich liczb [math]\displaystyle{ k \in \{ 2, 3, \ldots, p - 2 \} }[/math], dla których

[math]\displaystyle{ \left( {\small\frac{k - 1}{p}} \right)_{\small{\!\! L}} = \left( {\small\frac{k}{p}} \right)_{\small{\!\! L}} = \left( {\small\frac{k + 1}{p}} \right)_{\small{\!\! L}} = - 1 }[/math]

Ilość liczb [math]\displaystyle{ k }[/math] spełniających powyższy warunek łatwo zapisać korzystając z symbolu Legendre'a

[math]\displaystyle{ N = - {\small\frac{1}{8}} \sum_{k = 2}^{p - 2} \left[ - 1 + \left( {\small\frac{k - 1}{p}} \right)_{\small{\!\! L}} \right] \left[ - 1 + \left( {\small\frac{k}{p}} \right)_{\small{\!\! L}} \right] \left[ - 1 + \left( {\small\frac{k + 1}{p}} \right)_{\small{\!\! L}} \right] }[/math]

Tylko w przypadku, gdy wszystkie trzy liczby [math]\displaystyle{ k - 1, k, k + 1 }[/math] są liczbami niekwadratowymi modulo [math]\displaystyle{ p }[/math], iloczyn wyrażeń w nawiasach kwadratowych jest różny od zera i równy [math]\displaystyle{ - 8 }[/math] (stąd czynnik [math]\displaystyle{ - {\small\frac{1}{8}} }[/math] przed sumą).

[math]\displaystyle{ 8 N = \sum_{k = 2}^{p - 2} \left[ 1 - \left( {\small\frac{k - 1}{p}} \right)_{\small{\!\! L}} - \left( {\small\frac{k}{p}} \right)_{\small{\!\! L}} - \left( {\small\frac{k + 1}{p}} \right)_{\small{\!\! L}} + \left( {\small\frac{k - 1}{p}} \right)_{\small{\!\! L}} \left( {\small\frac{k}{p}} \right)_{\small{\!\! L}} + \left( {\small\frac{k - 1}{p}} \right)_{\small{\!\! L}} \left( {\small\frac{k + 1}{p}} \right)_{\small{\!\! L}} + \left( {\small\frac{k}{p}} \right)_{\small{\!\! L}} \left( {\small\frac{k + 1}{p}} \right)_{\small{\!\! L}} - \left( {\small\frac{k - 1}{p}} \right)_{\small{\!\! L}} \left( {\small\frac{k}{p}} \right)_{\small{\!\! L}} \left( {\small\frac{k + 1}{p}} \right)_{\small{\!\! L}} \right] }[/math]
[math]\displaystyle{ \: = p - 3 - \sum_{k = 2}^{p - 2} \left( {\small\frac{k - 1}{p}} \right)_{\small{\!\! L}} - \sum_{k = 2}^{p - 2} \left( {\small\frac{k}{p}} \right)_{\small{\!\! L}} - \sum_{k = 2}^{p - 2} \left( {\small\frac{k + 1}{p}} \right)_{\small{\!\! L}} + \sum_{k = 2}^{p - 2} \left( {\small\frac{k - 1}{p}} \right)_{\small{\!\! L}} \left( {\small\frac{k}{p}} \right)_{\small{\!\! L}} + \sum_{k = 2}^{p - 2} \left( {\small\frac{k - 1}{p}} \right)_{\small{\!\! L}} \left( {\small\frac{k + 1}{p}} \right)_{\small{\!\! L}} + \sum_{k = 2}^{p - 2} \left( {\small\frac{k}{p}} \right)_{\small{\!\! L}} \left( {\small\frac{k + 1}{p}} \right)_{\small{\!\! L}} - \sum_{k = 2}^{p - 2} \left( {\small\frac{k (k^2 - 1)}{p}} \right)_{\small{\!\! L}} }[/math]


Wartości sum już policzyliśmy, rozpatrując przypadek liczb kwadratowych modulo [math]\displaystyle{ p }[/math]. Zatem

[math]\displaystyle{ 8 N = p - 4 + \left( {\small\frac{- 1}{p}} \right)_{\small{\!\! L}} - \left( {\small\frac{2}{p}} \right)_{\small{\!\! L}} + \left( {\small\frac{- 2}{p}} \right)_{\small{\!\! L}} - S (- 1) }[/math]


Jeżeli [math]\displaystyle{ p = 8 k + 1 }[/math]

[math]\displaystyle{ N = {\small\frac{p - 3 - S (- 1)}{8}} \gt {\small\frac{p - 3 - 2 \sqrt{p}}{8}} }[/math]

Jeżeli [math]\displaystyle{ p = 8 k + 3 }[/math]

[math]\displaystyle{ N = {\small\frac{p - 3}{8}} }[/math]

Jeżeli [math]\displaystyle{ p = 8 k + 5 }[/math]

[math]\displaystyle{ N = {\small\frac{p - 3 - S (- 1)}{8}} \gt {\small\frac{p - 3 - 2 \sqrt{p}}{8}} }[/math]

Jeżeli [math]\displaystyle{ p = 8 k + 7 }[/math]

[math]\displaystyle{ N = {\small\frac{p - 7}{8}} }[/math]

Co kończy dowód.


Uwaga K12
Korzystając z twierdzenia K11, łatwo można pokazać, że każda liczba pierwsza [math]\displaystyle{ p \geqslant 19 }[/math] ma co najmniej dwie różne trójki kolejnych liczb kwadratowych modulo [math]\displaystyle{ p }[/math] i co najmniej dwie różne trójki kolejnych liczb niekwadratowych modulo [math]\displaystyle{ p }[/math].



Najmniejsze liczby niekwadratowe modulo

 

 A. Najmniejsze dodatnie liczby niekwadratowe modulo [math]\displaystyle{ p }[/math] 

Przykład K13
W tabeli przedstawiliśmy najmniejsze dodatnie liczby niekwadratowe modulo [math]\displaystyle{ p }[/math]


Uwaga K14
Do wyszukiwania liczb [math]\displaystyle{ \mathbb{n} = \mathbb{n} (p) }[/math] Czytelnik może wykorzystać prostą funkcję napisaną w PARI/GP

A(p) = 
{
if( p == 2, return(0) );
if( !isprime(p), return(0) );
forprime(q = 2, p, if( jacobi(q, p) == -1, return(q) ));
}

Zauważmy, że choć wyliczamy symbol Jacobiego, to jest to w rzeczywistości symbol Legendre'a, bo wiemy, że liczba [math]\displaystyle{ p }[/math] jest liczbą pierwszą (w przypadku, gdy [math]\displaystyle{ p }[/math] jest liczbą złożoną, funkcja zwraca zero).


Twierdzenie K15
Niech [math]\displaystyle{ \mathbb{n} \in \mathbb{Z}_+ }[/math] i niech [math]\displaystyle{ p }[/math] będzie liczbą pierwszą nieparzystą. Jeżeli [math]\displaystyle{ \mathbb{n} }[/math] jest najmniejszą liczbą niekwadratową modulo [math]\displaystyle{ p }[/math], to jest liczbą pierwszą.

Dowód

Przypuśćmy, że [math]\displaystyle{ \mathbb{n} = a b }[/math] jest liczbą złożoną, gdzie [math]\displaystyle{ 1 \lt a, b \lt \mathbb{n} }[/math]. Z założenia [math]\displaystyle{ \mathbb{n} }[/math] jest najmniejszą liczbą niekwadratową modulo [math]\displaystyle{ p }[/math], zatem liczby [math]\displaystyle{ a, b }[/math] są liczbami kwadratowymi modulo [math]\displaystyle{ p }[/math]. Z definicji liczb kwadratowych muszą istnieć takie liczby [math]\displaystyle{ r, s }[/math], że

[math]\displaystyle{ r^2 \equiv a \pmod{p} }[/math]
[math]\displaystyle{ s^2 \equiv b \pmod{p} }[/math]

Skąd wynika, że

[math]\displaystyle{ \mathbb{n} = a b \equiv (r s)^2 \pmod{p} }[/math]

Wbrew założeniu, że [math]\displaystyle{ \mathbb{n} }[/math] jest liczbą niekwadratową modulo [math]\displaystyle{ p }[/math].


Zadanie K16
Pokazać, że najmniejszą liczbą niekwadratową modulo [math]\displaystyle{ p }[/math] jest

  •  liczba [math]\displaystyle{ 2 }[/math] wtedy i tylko wtedy, gdy [math]\displaystyle{ p = 8 k \pm 3 }[/math]
  •  liczba [math]\displaystyle{ 3 }[/math] wtedy i tylko wtedy, gdy [math]\displaystyle{ p = 24 k \pm 7 }[/math]
  •  liczba [math]\displaystyle{ \geqslant 5 }[/math] wtedy i tylko wtedy, gdy [math]\displaystyle{ p = 24 k \pm 1 }[/math]
Rozwiązanie

Z właściwości symbolu Legendre'a (zobacz J33 p.7) wiemy, że

[math]\displaystyle{ \left( {\small\frac{2}{p}} \right)_{\small{\!\! L}} \,\, = \,\, \begin{cases} \;\;\: 1 & \text{gdy } p \equiv 1, 7 \pmod{8} \\ - 1 & \text{gdy } p \equiv 3, 5 \pmod{8} \\ \end{cases} }[/math]

Wynika stąd natychmiast, dla liczb pierwszych [math]\displaystyle{ p }[/math] postaci [math]\displaystyle{ 8 k \pm 3 }[/math] (i tylko dla takich liczb) liczba [math]\displaystyle{ 2 }[/math] jest liczbą niekwadratową, czyli również najmniejszą liczbą niekwadratową modulo [math]\displaystyle{ p }[/math].

Z zadania J46 wynika, że liczba [math]\displaystyle{ 3 }[/math] jest liczbą niekwadratową jedynie dla liczb pierwszych postaci [math]\displaystyle{ 12 k \pm 5 }[/math]. Zatem dla liczb pierwszych, które są jednocześnie postaci [math]\displaystyle{ p = 8 k \pm 1 }[/math] i [math]\displaystyle{ p = 12 j \pm 5 }[/math], liczba [math]\displaystyle{ 3 }[/math] jest najmniejszą liczbą niekwadratową modulo [math]\displaystyle{ p }[/math]. Z czterech warunków

[math]\displaystyle{ p = 8 k + 1 \quad \text{i} \quad p = 12 j + 5 }[/math]
[math]\displaystyle{ p = 8 k + 1 \quad \text{i} \quad p = 12 j + 7 }[/math]
[math]\displaystyle{ p = 8 k + 7 \quad \text{i} \quad p = 12 j + 5 }[/math]
[math]\displaystyle{ p = 8 k + 7 \quad \text{i} \quad p = 12 j + 7 }[/math]

Drugi i trzeci nie są możliwe, bo modulo [math]\displaystyle{ 4 }[/math] otrzymujemy

[math]\displaystyle{ p \equiv 1 \pmod{4} \quad \text{i} \quad p \equiv 3 \pmod{4} }[/math]
[math]\displaystyle{ p \equiv 3 \pmod{4} \quad \text{i} \quad p \equiv 1 \pmod{4} }[/math]

a z pierwszego i czwartego mamy

[math]\displaystyle{ 3 p = 24 k + 3 \quad \text{i} \quad 2 p = 24 j + 10 \qquad \;\: \Longrightarrow \qquad p = 24 (k - j) - 7 \qquad \Longrightarrow \qquad p \equiv - 7 \pmod{24} }[/math]
[math]\displaystyle{ 3 p = 24 k + 21 \quad \text{i} \quad 2 p = 24 j + 14 \qquad \Longrightarrow \qquad p = 24 (k - j) + 7 \qquad \Longrightarrow \qquad p \equiv 7 \pmod{24} }[/math]

Zauważmy, że problem mogliśmy zapisać w postaci układu kongruencji

[math]\displaystyle{ p \equiv \pm 1 \pmod{8} }[/math]
[math]\displaystyle{ p \equiv \pm 5 \pmod{12} }[/math]

Gdyby moduły tych kongruencji były względnie pierwsze, to każdemu wyborowi znaków odpowiadałaby pewna kongruencja równoważna (zobacz J3). Widzimy, że w przypadku, gdy moduły nie są względnie pierwsze, kongruencja równoważna może istnieć, ale nie musi. Rozwiązując taki problem, wygodnie jest skorzystać z programu PARI/GP. Wystarczy wpisać

chinese(Mod(1, 8), Mod(5, 12)) = Mod(17, 24)
chinese(Mod(1, 8), Mod(-5, 12)) - błąd 
chinese(Mod(-1, 8), Mod(5, 12)) - błąd 
chinese(Mod(-1, 8), Mod(-5, 12)) = Mod(7, 24)

Ostatni punkt zadania rozwiążemy tą metodą. Liczba większa lub równa [math]\displaystyle{ 5 }[/math] jest najmniejszą liczbą niekwadratową modulo [math]\displaystyle{ p }[/math] wtedy i tylko wtedy, gdy liczby [math]\displaystyle{ 2 }[/math] i [math]\displaystyle{ 3 }[/math] są liczbami kwadratowymi modulo [math]\displaystyle{ p }[/math], co oznacza, że liczba pierwsza [math]\displaystyle{ p }[/math] spełnia kongruencje

[math]\displaystyle{ p \equiv \pm 1 \pmod{8} }[/math]
[math]\displaystyle{ p \equiv \pm 1 \pmod{12} }[/math]

Postępując jak wyżej, otrzymujemy

chinese(Mod(1, 8), Mod(1, 12)) = Mod(1, 24)
chinese(Mod(1, 8), Mod(-1, 12)) - błąd 
chinese(Mod(-1, 8), Mod(1, 12)) - błąd 
chinese(Mod(-1, 8), Mod(-1, 12)) = Mod(23, 24)

Co należało pokazać.


Twierdzenie K17
Dla każdej liczby pierwszej [math]\displaystyle{ p_n }[/math] istnieje nieskończenie wiele takich liczb pierwszych [math]\displaystyle{ q }[/math], że [math]\displaystyle{ p_n }[/math] jest najmniejszą liczbą niekwadratową modulo [math]\displaystyle{ q }[/math].

Dowód

Niech [math]\displaystyle{ 2, p_2, \ldots, p_{n - 1}, p_n }[/math] będą kolejnymi liczbami pierwszymi. Wybierzmy liczbę [math]\displaystyle{ u }[/math] tak, aby spełniała układ kongruencji

[math]\displaystyle{ \begin{align} u & \equiv 1 \pmod{8 p_2 \cdot \ldots \cdot p_{n - 1}} \\ u & \equiv a \pmod{p_n} \\ \end{align} }[/math]

gdzie [math]\displaystyle{ a }[/math] oznacza dowolną liczbą niekwadratową modulo [math]\displaystyle{ p_n }[/math]. Na podstawie chińskiego twierdzenia o resztach (zobacz J3) powyższy układ kongruencji może być zapisany w postaci kongruencji równoważnej

[math]\displaystyle{ u \equiv c \pmod{8 p_2 \cdot \ldots \cdot p_n} }[/math]


Zauważmy, że żadna z liczb pierwszych [math]\displaystyle{ p_k }[/math], gdzie [math]\displaystyle{ 1 \leqslant k \leqslant n }[/math] nie dzieli liczby [math]\displaystyle{ c }[/math], bo mielibyśmy

[math]\displaystyle{ u \equiv 0 \pmod{p_k} }[/math]

wbrew wypisanemu wyżej układowi kongruencji. Zatem [math]\displaystyle{ \gcd (c, 8 p_2 \cdot \ldots \cdot p_n) = 1 }[/math] i z twierdzenia Dirichleta (zobacz C27) wiemy, że wśród liczb [math]\displaystyle{ u }[/math] spełniających kongruencję [math]\displaystyle{ u \equiv c \!\! \pmod{8 p_2 \cdot \ldots \cdot p_n} }[/math] występuje nieskończenie wiele liczb pierwszych (bo wśród tych liczb są liczby postaci [math]\displaystyle{ 8 p_2 \cdot \ldots \cdot p_n \cdot k + c }[/math], gdzie [math]\displaystyle{ k \in \mathbb{Z}_+ }[/math]). Oznaczmy przez [math]\displaystyle{ q }[/math] dowolną z tych liczb pierwszych.


Ponieważ [math]\displaystyle{ q \equiv 1 \!\! \pmod{8} }[/math], to [math]\displaystyle{ \left( {\small\frac{2}{q}} \right)_{\small{\!\! L}} = 1 }[/math] (zobacz J33), a dla wszystkich liczb pierwszych nieparzystych [math]\displaystyle{ p_k \lt p_n }[/math] mamy

[math]\displaystyle{ \left( {\small\frac{p_k}{q}} \right)_{\small{\!\! L}} = \left( {\small\frac{q}{p_k}} \right)_{\small{\!\! L}} \cdot (- 1)^{\tfrac{q - 1}{2} \cdot \tfrac{p_k - 1}{2}} = \left( {\small\frac{q}{p_k}} \right)_{\small{\!\! L}} = \left( {\small\frac{c}{p_k}} \right)_{\small{\!\! L}} = \left( {\small\frac{1}{p_k}} \right)_{\small{\!\! L}} = 1 }[/math]

bo [math]\displaystyle{ 8 \mid (q - 1) }[/math]. Dla liczby pierwszej [math]\displaystyle{ p_n }[/math] jest

[math]\displaystyle{ \left( {\small\frac{p_n}{q}} \right)_{\small{\!\! L}} = \left( {\small\frac{q}{p_n}} \right)_{\small{\!\! L}} \cdot (- 1)^{\tfrac{q - 1}{2} \cdot \tfrac{p_n - 1}{2}} = \left( {\small\frac{q}{p_n}} \right)_{\small{\!\! L}} = \left( {\small\frac{c}{p_n}} \right)_{\small{\!\! L}} = \left( {\small\frac{a}{p_n}} \right)_{\small{\!\! L}} = - 1 }[/math]

Zatem wszystkie liczby pierwsze mniejsze od [math]\displaystyle{ p_n }[/math] są liczbami kwadratowymi modulo [math]\displaystyle{ q }[/math], a liczba pierwsza [math]\displaystyle{ p_n }[/math] jest najmniejszą liczbą niekwadratową modulo [math]\displaystyle{ q }[/math]. Zauważmy, że [math]\displaystyle{ q }[/math] była dowolnie wybraną liczbą pierwszą z nieskończenie wielu liczb pierwszych występujących w ciągu arytmetycznym [math]\displaystyle{ 8 p_2 \cdot \ldots \cdot p_n \cdot k + c }[/math], gdzie [math]\displaystyle{ k \in \mathbb{Z}_+ }[/math]. Co kończy dowód.


Twierdzenie K18 (Sarvadaman Chowla)
Istnieje niekończenie wiele liczb pierwszych [math]\displaystyle{ p }[/math] takich, że najmniejsza liczba niekwadratowa modulo [math]\displaystyle{ p }[/math] jest większa od [math]\displaystyle{ {\small\frac{\log p}{2 L \log 2}} }[/math], gdzie [math]\displaystyle{ L }[/math] jest stałą Linnika.

Dowód

Niech [math]\displaystyle{ a = 4 P (m) }[/math], gdzie [math]\displaystyle{ P(m) }[/math] jest iloczynem wszystkich liczb pierwszych nie większych od [math]\displaystyle{ m }[/math]. Z twierdzenia Dirichleta (zobacz C27) wiemy, że w ciągu arytmetycznym [math]\displaystyle{ u_k = a k + 1 }[/math] występuje nieskończenie wiele liczb pierwszych. Niech [math]\displaystyle{ p }[/math] oznacza dowolną z nich.

Ponieważ [math]\displaystyle{ p \equiv 1 \!\! \pmod{8} }[/math], to

[math]\displaystyle{ \left( {\small\frac{2}{p}} \right)_{\small{\!\! L}} = 1 }[/math]

(zobacz J33 p.7). Oczywiście [math]\displaystyle{ p \equiv 1 \!\! \pmod{4} }[/math], zatem dla dowolnej liczby pierwszej nieparzystej [math]\displaystyle{ q_i \leqslant m }[/math] z twierdzenia J33 p.9 otrzymujemy

[math]\displaystyle{ \left( {\small\frac{q_i}{p}} \right)_{\small{\!\! L}} = \left( {\small\frac{p}{q_i}} \right)_{\small{\!\! L}} = \left( {\small\frac{a k + 1}{q_i}} \right)_{\small{\!\! L}} = \left( {\small\frac{1}{q_i}} \right)_{\small{\!\! L}} = 1 }[/math]

Wynika stąd, że najmniejsza liczba niekwadratowa modulo [math]\displaystyle{ p }[/math] jest większa od [math]\displaystyle{ m }[/math]. Wiemy też, że (zobacz A9)

[math]\displaystyle{ a = 4 P (m) \lt 4 \cdot 4^m = 4^{m + 1} }[/math]

Załóżmy teraz, że [math]\displaystyle{ p }[/math] jest najmniejszą liczbą pierwszą w ciągu arytmetycznym [math]\displaystyle{ u_k = a k + 1 }[/math], a liczba [math]\displaystyle{ m }[/math] została wybrana tak, że liczba [math]\displaystyle{ a = 4 P (m) }[/math] jest dostatecznie duża i możliwe jest skorzystanie z twierdzenia Linnika (zobacz C30). Dostajemy natychmiast oszacowanie

[math]\displaystyle{ p = p_{\min} (a, 1) \lt a^L }[/math]

gdzie [math]\displaystyle{ L }[/math] jest stałą Linnika (możemy przyjąć [math]\displaystyle{ L = 5 }[/math]). Łącząc powyższe oszacowania, łatwo otrzymujemy oszacowanie najmniejszej liczby niekwadratowej modulo [math]\displaystyle{ p }[/math]

[math]\displaystyle{ \mathbb{n}(p) \geqslant m + 1 \gt \log_4 a = {\small\frac{\log a}{\log 4}} = {\small\frac{\log a^L}{2 L \log 2}} \gt {\small\frac{\log p}{2 L \log 2}} }[/math]

Każdemu wyborowi innej liczby [math]\displaystyle{ m' \gt m }[/math] takiej, że [math]\displaystyle{ P(m') \gt P (m) }[/math] odpowiada inna liczba pierwsza [math]\displaystyle{ p' }[/math] taka, że [math]\displaystyle{ \mathbb{n}(p') \gt {\small\frac{\log p'}{2 L \log 2}} }[/math], zatem liczb pierwszych [math]\displaystyle{ p }[/math] dla których najmniejsza liczba niekwadratowa modulo [math]\displaystyle{ p }[/math] jest większa od [math]\displaystyle{ {\small\frac{\log p}{2 L \log 2}} }[/math] jest nieskończenie wiele.


Uwaga K19
W twierdzeniu K17 pokazaliśmy, że dla każdej liczby pierwszej [math]\displaystyle{ \mathbb{n} }[/math] istnieją takie liczby pierwsze [math]\displaystyle{ p }[/math], że [math]\displaystyle{ \mathbb{n} }[/math] jest najmniejszą liczbą niekwadratową modulo [math]\displaystyle{ p }[/math]. Zatem zbiór [math]\displaystyle{ S_\mathbb{n} }[/math] liczb pierwszych takich, że dla każdej liczby [math]\displaystyle{ p \in S_\mathbb{n} }[/math] liczba [math]\displaystyle{ \mathbb{n} }[/math] jest najmniejszą liczbą niekwadratową modulo [math]\displaystyle{ p }[/math] jest zbiorem niepustym. Wynika stąd, że zbiór [math]\displaystyle{ S_\mathbb{n} }[/math] ma element najmniejszy i możemy te najmniejsze liczby pierwsze łatwo znaleźć – wystarczy w PARI/GP napisać proste polecenie

forprime(n = 2, 50, forprime(p = 2, 10^10, if( A(p) == n, print(n, "   ", p); break() )))

W tabeli przedstawiamy uzyskane rezultaty (zobacz też A000229).


Uwaga K20
Z nierówności Pólyi-Winogradowa (zobacz K2) wynika natychmiast oszacowanie najmniejszej liczby niekwadratowej modulo [math]\displaystyle{ p }[/math]. Ponieważ najdłuższy ciąg kolejnych liczb kwadratowych modulo [math]\displaystyle{ p }[/math] nie może być dłuższy od [math]\displaystyle{ \left\lfloor \sqrt{p} \log p \right\rfloor }[/math], to

[math]\displaystyle{ \mathbb{n} (p) \leqslant \left\lfloor \sqrt{p} \log p \right\rfloor + 1 \lt \sqrt{p} \log p + 1 }[/math]

Pokażemy, że powyższe oszacowanie można łatwo wzmocnić.


Twierdzenie K21
Niech [math]\displaystyle{ p }[/math] będzie liczbą pierwszą nieparzystą, a [math]\displaystyle{ \mathbb{n} }[/math] będzie najmniejszą liczbą niekwadratową modulo [math]\displaystyle{ p }[/math]. Prawdziwe jest oszacowanie

[math]\displaystyle{ \mathbb{n} (p) \lt \sqrt{p} + {\small\frac{1}{2}} }[/math]
Dowód

Ponieważ [math]\displaystyle{ \mathbb{n} \nmid p }[/math], to z oszacowania [math]\displaystyle{ x - 1 \lt \lfloor x \rfloor \leqslant x }[/math] wynika, że

[math]\displaystyle{ {\small\frac{p}{\mathbb{n}}} - 1 \lt \left\lfloor {\small\frac{p}{\mathbb{n}}} \right\rfloor \lt {\small\frac{p}{\mathbb{n}}} }[/math]
[math]\displaystyle{ p \lt \mathbb{n} \left\lfloor {\small\frac{p}{\mathbb{n}}} \right\rfloor + \mathbb{n} \lt p + \mathbb{n} }[/math]

Niech [math]\displaystyle{ u = \left\lfloor {\small\frac{p}{\mathbb{n}}} \right\rfloor + 1 }[/math], mamy

[math]\displaystyle{ 0 \lt \mathbb{n} u - p \lt \mathbb{n} }[/math]

Liczba [math]\displaystyle{ \mathbb{n} u - p }[/math] musi być liczbą kwadratową modulo [math]\displaystyle{ p }[/math], zatem

[math]\displaystyle{ 1 = \left( {\small\frac{\mathbb{n} u - p}{p}} \right)_{\small{\!\! L}} = \left( {\small\frac{\mathbb{n}}{p}} \right)_{\small{\!\! L}} \cdot \left( {\small\frac{u}{p}} \right)_{\small{\!\! L}} = - \left( {\small\frac{u}{p}} \right)_{\small{\!\! L}} }[/math]

Ale z założenia [math]\displaystyle{ \mathbb{n} }[/math] jest najmniejszą liczbą taką, że [math]\displaystyle{ \left( {\small\frac{\mathbb{n}}{p}} \right)_{\small{\!\! L}} = - 1 }[/math]. Wynika stąd, że musi być [math]\displaystyle{ \mathbb{n} \leqslant u }[/math] i łatwo znajdujemy, że

[math]\displaystyle{ \mathbb{n} \leqslant \left\lfloor {\small\frac{p}{\mathbb{n}}} \right\rfloor + 1 \lt {\small\frac{p}{\mathbb{n}}} + 1 }[/math]
[math]\displaystyle{ \mathbb{n}^2 \lt p + \mathbb{n} }[/math]

Ponieważ wypisane liczby są liczbami całkowitymi, to ostatnią nierówność możemy zapisać w postaci

[math]\displaystyle{ \mathbb{n}^2 \leqslant p + \mathbb{n} - 1 }[/math]

Skąd otrzymujemy

[math]\displaystyle{ \left( \mathbb{n} - {\small\frac{1}{2}} \right)^2 \leqslant p - {\small\frac{3}{4}} }[/math]
[math]\displaystyle{ \mathbb{n} \leqslant {\small\frac{1}{2}} + \sqrt{p - {\small\frac{3}{4}}} \lt {\small\frac{1}{2}} + \sqrt{p} }[/math]

Co należało pokazać.


Twierdzenie K22*
Niech [math]\displaystyle{ p }[/math] będzie liczbą pierwszą nieparzystą, a [math]\displaystyle{ \mathbb{n} }[/math] będzie najmniejszą liczbą niekwadratową modulo [math]\displaystyle{ p }[/math]. Dla [math]\displaystyle{ p \geqslant 5 }[/math] prawdziwe jest oszacowanie[5][6][7]

[math]\displaystyle{ \mathbb{n} (p) \leqslant 1.1 \cdot p^{1 / 4} \log p }[/math]


Uwaga K23
Liczby [math]\displaystyle{ \mathbb{n} = \mathbb{n} (p) }[/math] są zaskakująco małe. Średnia wartość [math]\displaystyle{ \mathbb{n} = \mathbb{n} (p) }[/math], gdzie [math]\displaystyle{ p }[/math] są nieparzystymi liczbami pierwszymi, jest równa[8]

[math]\displaystyle{ \lim_{x \to \infty} {\small\frac{1}{\pi (x)}} \sum_{p \leqslant x} \mathbb{n} (p) = \sum_{k = 1}^{\infty} {\small\frac{p_k}{2^k}} = 3.674643966 \ldots }[/math]


Uwaga K24
Możemy też badać najmniejsze nieparzyste liczby niekwadratowe modulo [math]\displaystyle{ p }[/math]. Pokażemy, że są one również liczbami pierwszymi. W tabeli przedstawiliśmy najmniejsze nieparzyste liczby niekwadratowe modulo [math]\displaystyle{ p }[/math].


Twierdzenie K25
Dla każdej liczby pierwszej [math]\displaystyle{ p \geqslant 5 }[/math] najmniejsza nieparzysta liczba niekwadratowa modulo [math]\displaystyle{ p }[/math] jest liczbą pierwszą mniejszą od [math]\displaystyle{ p }[/math].

Dowód

Niech [math]\displaystyle{ S \subset \{ 1, 2, \ldots, p - 1 \} }[/math] będzie zbiorem wszystkich nieparzystych liczb niekwadratowych modulo [math]\displaystyle{ p }[/math]. Z twierdzenia J29 wiemy, że jeżeli [math]\displaystyle{ p }[/math] jest liczbą pierwszą nieparzystą, to w zbiorze [math]\displaystyle{ \{ 1, 2, \ldots, p - 1 \} }[/math] jest dokładnie [math]\displaystyle{ {\small\frac{p - 1}{2}} }[/math] liczb kwadratowych modulo [math]\displaystyle{ p }[/math] i tyle samo liczb niekwadratowych modulo [math]\displaystyle{ p }[/math]. W zbiorze [math]\displaystyle{ \{ 1, 2, \ldots, p - 1 \} }[/math] mamy też dokładnie [math]\displaystyle{ {\small\frac{p - 1}{2}} }[/math] liczb parzystych i tyle samo liczb nieparzystych.

Wszystkie liczby parzyste nie mogą być liczbami niekwadratowymi modulo [math]\displaystyle{ p }[/math], bo [math]\displaystyle{ 4 = 2^2 \lt 5 \leqslant p }[/math] jest parzystą liczbą kwadratową modulo [math]\displaystyle{ p }[/math], czyli wśród liczb nieparzystych musi istnieć przynajmniej jedna liczba niekwadratowa modulo [math]\displaystyle{ p }[/math]. Wynika stąd, że zbiór [math]\displaystyle{ S }[/math] nie jest zbiorem pustym, zatem ma element najmniejszy. Pokażemy, że najmniejszy element zbioru [math]\displaystyle{ S }[/math] jest liczbą pierwszą.

Niech [math]\displaystyle{ 3 \leqslant \mathbb{n}_\boldsymbol{1} \leqslant p - 2 }[/math] będzie najmniejszą nieparzystą liczbą niekwadratową modulo [math]\displaystyle{ p }[/math]. Wynika stąd, że każda liczba [math]\displaystyle{ a \lt \mathbb{n}_\boldsymbol{1} }[/math] musi być liczbą parzystą lub liczbą kwadratową modulo [math]\displaystyle{ p }[/math]. Przypuśćmy, że [math]\displaystyle{ \mathbb{n}_\boldsymbol{1} }[/math] jest liczbą złożoną, czyli [math]\displaystyle{ \mathbb{n}_\boldsymbol{1} = a b }[/math], gdzie [math]\displaystyle{ 1 \lt a, b \lt \mathbb{n}_\boldsymbol{1} }[/math]. Zauważmy, że żadna z liczb [math]\displaystyle{ a, b }[/math] nie może być liczbą parzystą, bo wtedy liczba [math]\displaystyle{ \mathbb{n}_\boldsymbol{1} }[/math] również byłaby liczbą parzystą wbrew określeniu liczby [math]\displaystyle{ \mathbb{n}_\boldsymbol{1} }[/math]. Zatem obie liczby [math]\displaystyle{ a, b }[/math] muszą być nieparzystymi liczbami kwadratowymi, co jest niemożliwe, bo

[math]\displaystyle{ - 1 = \left( {\small\frac{\mathbb{n}_\boldsymbol{1}}{p}} \right)_{\small{\!\! J}} = \left( {\small\frac{a b}{p}} \right)_{\small{\!\! J}} = \left( {\small\frac{a}{p}} \right)_{\small{\!\! J}} \cdot \left( {\small\frac{b}{p}} \right)_{\small{\!\! J}} }[/math]

i jeden z czynników po prawej stronie musi być ujemny. Co oznacza, że jedna z liczb [math]\displaystyle{ a, b }[/math] jest nieparzystą liczbą niekwadratową modulo [math]\displaystyle{ p }[/math] mniejszą od [math]\displaystyle{ \mathbb{n}_\boldsymbol{1} }[/math] wbrew określeniu liczby [math]\displaystyle{ \mathbb{n}_\boldsymbol{1} }[/math]. Uzyskana sprzeczność pokazuje, że liczba [math]\displaystyle{ \mathbb{n}_\boldsymbol{1} }[/math] jest liczbą pierwszą. Co kończy dowód.



 B. Najmniejsze dodatnie liczby niekwadratowe modulo [math]\displaystyle{ m }[/math]

Uwaga K26
Najmniejsze liczby niekwadratowe modulo [math]\displaystyle{ m }[/math] są naturalnym uogólnieniem najmniejszych liczb niekwadratowych modulo [math]\displaystyle{ p . }[/math] W jednym i drugim przypadku liczba [math]\displaystyle{ \mathbb{n} }[/math] jest najmniejszą liczbą niekwadratową w zbiorze wszystkich liczb niekwadratowych dodatnich nie większych od [math]\displaystyle{ p }[/math] lub [math]\displaystyle{ m . }[/math] Dlatego będziemy je oznaczali również jako [math]\displaystyle{ \mathbb{n}(m) . }[/math]


Definicja K27
Niech [math]\displaystyle{ m \in \mathbb{Z} \, }[/math] i [math]\displaystyle{ \, m \geqslant 3 . }[/math] Powiemy, że [math]\displaystyle{ \mathbb{n} (m) }[/math] jest najmniejszą liczbą niekwadratową modulo [math]\displaystyle{ m }[/math], gdy [math]\displaystyle{ \mathbb{n} }[/math] jest najmniejszą liczbą dodatnią względnie pierwszą z [math]\displaystyle{ m }[/math] taką, że kongruencja

[math]\displaystyle{ x^2 \equiv \mathbb{n} \pmod{m} }[/math]

nie ma rozwiązania.


Przykład K28
W tabeli przedstawiliśmy najmniejsze liczby niekwadratowe modulo [math]\displaystyle{ p }[/math] i najmniejsze liczby niekwadratowe modulo [math]\displaystyle{ m . }[/math]


Uwaga K29
Do wyszukiwania liczb [math]\displaystyle{ \mathbb{n} (m) }[/math] Czytelnik może wykorzystać prostą funkcję napisaną w PARI/GP

B(m) = 
{
local(p, res);
p = 1;
while( p < m,
       p = nextprime(p + 1);
       if( m%p == 0, next() );
       res = -1;
       for( k = 2, floor(m/2), if( k^2%m == p, res = 1; break() ) );
       if( res == -1, return(p) );
     );
}

Obliczenia można wielokrotnie przyspieszyć, modyfikując kod funkcji tak, aby uwzględniał pokazane niżej właściwości oraz parzystość liczby [math]\displaystyle{ m . }[/math] Tutaj przedstawiamy tylko przykład, który wykorzystuje część tych możliwości.

Pokaż kod
B(m) = 
{
local(p, res, t);
t = m%8;
if( t == 3 || t == 5, return(2) );
t = m%12;
if( t == 4 || t == 8, return(3) );
t = m%24;
if( t == 9 || t == 15, return(2) );
if( t == 10 || t == 14, return(3) );
t = m%30;
if( t == 6 || t == 12 || t == 18 || t == 24, return(5) );
p = 1;
while( p < m,
       p = nextprime(p + 1);
       if( m%p == 0, next() );
       res = -1;
       for( k = 2, floor(m/2), if( k^2%m == p, res = 1; break() ) );
       if( res == -1, return(p) );
     );
}


Twierdzenie K30
Niech [math]\displaystyle{ m \in \mathbb{Z} \, }[/math] i [math]\displaystyle{ \, m \geqslant 3 . }[/math] Jeżeli [math]\displaystyle{ \mathbb{n} }[/math] jest najmniejszą liczbą niekwadratową modulo [math]\displaystyle{ m }[/math], to [math]\displaystyle{ \mathbb{n} }[/math] jest liczbą pierwszą.

Dowód

Przypuśćmy, że [math]\displaystyle{ \mathbb{n} = a b }[/math] jest liczbą złożoną, gdzie [math]\displaystyle{ 1 \lt a, b \lt \mathbb{n} . }[/math] Z założenia [math]\displaystyle{ \mathbb{n} }[/math] jest najmniejszą liczbą niekwadratową modulo [math]\displaystyle{ m }[/math], zatem liczby [math]\displaystyle{ a, b }[/math] są liczbami kwadratowymi modulo [math]\displaystyle{ m . }[/math] Z definicji liczb kwadratowych muszą istnieć takie liczby [math]\displaystyle{ r, s }[/math], że

[math]\displaystyle{ r^2 \equiv a \pmod{m} }[/math]
[math]\displaystyle{ s^2 \equiv b \pmod{m} }[/math]

Skąd wynika, że

[math]\displaystyle{ \mathbb{n} = a b \equiv (r s)^2 \pmod{m} }[/math]

Wbrew założeniu, że [math]\displaystyle{ \mathbb{n} }[/math] jest liczbą niekwadratową modulo [math]\displaystyle{ m . }[/math]


Zadanie K31
Niech [math]\displaystyle{ m \in \mathbb{Z}_+ \, }[/math] i [math]\displaystyle{ \, \mathbb{n} (m) }[/math] będzie najmniejszą liczbą niekwadratową modulo [math]\displaystyle{ m . }[/math] Pokazać, że jeżeli [math]\displaystyle{ m = 8 k \pm 3 }[/math], to [math]\displaystyle{ \mathbb{n} (m) = 2 . }[/math]

Rozwiązanie

Z twierdzenia J41 wiemy, że [math]\displaystyle{ \left( {\small\frac{2}{m}} \right)_{\small{\!\! J}} = - 1 }[/math], gdy [math]\displaystyle{ m = 8 k \pm 3 . }[/math] Wynika stąd, że [math]\displaystyle{ 2 }[/math] jest liczbą niekwadratową modulo [math]\displaystyle{ m }[/math], a jeśli tak, to musi być najmniejszą liczbą niekwadratową modulo [math]\displaystyle{ m . }[/math] Co należało pokazać.


Zadanie K32
Niech [math]\displaystyle{ m \in \mathbb{Z}_+ \, }[/math] i [math]\displaystyle{ \, \mathbb{n} (m) }[/math] będzie najmniejszą liczbą niekwadratową modulo [math]\displaystyle{ m . }[/math] Pokazać, że jeżeli spełniony jest jeden z warunków

  •   [math]\displaystyle{ 4 \mid m \; }[/math] i [math]\displaystyle{ \; \gcd (3, m) = 1 }[/math]
  •   [math]\displaystyle{ m = 12 k \pm 4 }[/math]

to [math]\displaystyle{ \mathbb{n} (m) = 3 . }[/math]

Rozwiązanie

Zauważmy, że [math]\displaystyle{ 2 }[/math] nie może być najmniejszą liczbą niekwadratową modulo [math]\displaystyle{ m }[/math], bo [math]\displaystyle{ 2 \mid m . }[/math] Rozważmy kongruencję

[math]\displaystyle{ x^2 \equiv 3 \pmod{m} }[/math]

Z założenia [math]\displaystyle{ 4 \mid m }[/math], co nie wyklucza możliwości, że również [math]\displaystyle{ 8 \mid m . }[/math] Ponieważ [math]\displaystyle{ 4 \nmid (3 - 1) }[/math] i [math]\displaystyle{ 8 \nmid (3 - 1) }[/math], to z twierdzenia J55 wynika, że kongruencja [math]\displaystyle{ x^2 \equiv 3 \!\! \pmod{m} }[/math] nie ma rozwiązania. Jeśli tylko [math]\displaystyle{ 3 \nmid m }[/math], to [math]\displaystyle{ \mathbb{n} (m) = 3 . }[/math] W pierwszym punkcie jest to założone wprost, w drugim łatwo widzimy, że [math]\displaystyle{ 3 \nmid (12 k \pm 4) . }[/math]

Można też zauważyć, że żądanie, aby [math]\displaystyle{ \gcd (3, m) = 1 }[/math], prowadzi do dwóch układów kongruencji

[math]\displaystyle{ \begin{align} m &\equiv 0 \pmod{4} \\ m &\equiv 1 \pmod{3} \\ \end{align} }[/math]

oraz

[math]\displaystyle{ \begin{align} m &\equiv 0 \pmod{4} \\ m &\equiv 2 \pmod{3} \\ \end{align} }[/math]

którym, na mocy chińskiego twierdzenia o resztach, odpowiadają dwie kongruencje równoważne

[math]\displaystyle{ m \equiv \pm 4 \pmod{12} }[/math]

Co należało pokazać.


Zadanie K33
Niech [math]\displaystyle{ m = 24 k \pm 10 . }[/math] Pokazać, że [math]\displaystyle{ \mathbb{n} (m) = 3 . }[/math]

Rozwiązanie

Zapiszmy [math]\displaystyle{ m }[/math] w postaci [math]\displaystyle{ m = 2 m' }[/math], gdzie [math]\displaystyle{ m' = 12 k \pm 5 . }[/math] Gdyby kongruencja

[math]\displaystyle{ x^2 \equiv 3 \pmod{2 m'} }[/math]

miała rozwiązanie, to również kongruencja

[math]\displaystyle{ x^2 \equiv 3 \pmod{m'} }[/math]

miałaby rozwiązanie, ale jest to niemożliwe, bo [math]\displaystyle{ \left( {\small\frac{3}{m'}} \right)_{\small{\!\! J}} = - 1 }[/math] (zobacz J46), czyli [math]\displaystyle{ 3 }[/math] jest liczbą niekwadratową modulo [math]\displaystyle{ m' . }[/math] Ponieważ [math]\displaystyle{ 2 \mid m }[/math], to [math]\displaystyle{ 2 }[/math] nie może być najmniejszą liczbą niekwadratową modulo [math]\displaystyle{ m . }[/math] Wynika stąd, że [math]\displaystyle{ \mathbb{n} (m) = 3 . }[/math]


Twierdzenie K34
Niech [math]\displaystyle{ m \in \mathbb{Z}_+ \; }[/math] i [math]\displaystyle{ \; S_2 = \{ 3, 5, 11, 13, 19, 29, 37, 43, \ldots \} }[/math] będzie zbiorem liczb pierwszych [math]\displaystyle{ p }[/math] takich, że [math]\displaystyle{ \left( {\small\frac{2}{p}} \right)_{\small{\!\! J}} = - 1 . }[/math] Jeżeli [math]\displaystyle{ m }[/math] jest liczbą nieparzystą podzielną przez [math]\displaystyle{ p \in S_2 }[/math], to [math]\displaystyle{ \mathbb{n} (m) = 2 . }[/math]

Dowód

Z założenia [math]\displaystyle{ p \mid m \; }[/math] i [math]\displaystyle{ \; \left( {\small\frac{2}{p}} \right)_{\small{\!\! J}} = - 1 . }[/math] Zatem kongruencja

[math]\displaystyle{ x^2 \equiv 2 \pmod{m} }[/math]

nie ma rozwiązania (zobacz J55). Ponieważ [math]\displaystyle{ 2 \nmid m }[/math], to [math]\displaystyle{ \mathbb{n} (m) = 2 . }[/math]

Uwaga: zbiór [math]\displaystyle{ S_2 }[/math] tworzą liczby pierwsze postaci [math]\displaystyle{ 8 k \pm 3 }[/math] (zobacz J41).


Twierdzenie K35
Niech [math]\displaystyle{ m \in \mathbb{Z}_+ \; }[/math] i [math]\displaystyle{ \; S_3 = \{ 5, 7, 17, 19, 29, 31, 41, 43, \ldots \} }[/math] będzie zbiorem liczb pierwszych [math]\displaystyle{ p }[/math] takich, że [math]\displaystyle{ \left( {\small\frac{3}{p}} \right)_{\small{\!\! J}} = - 1 . }[/math] Jeżeli [math]\displaystyle{ m }[/math] jest liczbą parzystą niepodzielną przez [math]\displaystyle{ 3 }[/math] i podzielną przez [math]\displaystyle{ p \in S_3 }[/math], to [math]\displaystyle{ \mathbb{n} (m) = 3 . }[/math]

Dowód

Z założenia [math]\displaystyle{ p \mid m \; }[/math] i [math]\displaystyle{ \; \left( {\small\frac{3}{p}} \right)_{\small{\!\! J}} = - 1 . }[/math] Zatem kongruencja

[math]\displaystyle{ x^2 \equiv 3 \pmod{m} }[/math]

nie ma rozwiązania (zobacz J55). Ponieważ [math]\displaystyle{ 2 \mid m }[/math] i [math]\displaystyle{ 3 \nmid m }[/math], to [math]\displaystyle{ \mathbb{n} (m) = 3 . }[/math]

Uwaga: zbiór [math]\displaystyle{ S_3 }[/math] tworzą liczby pierwsze postaci [math]\displaystyle{ 12 k \pm 5 }[/math] (zobacz J46).


Twierdzenie K36
Jeżeli [math]\displaystyle{ m }[/math] jest liczbą dodatnią podzielną przez [math]\displaystyle{ 6 }[/math] i niepodzielną przez [math]\displaystyle{ 5 }[/math], to [math]\displaystyle{ \mathbb{n} (m) = 5 . }[/math]

Dowód

Z założenia [math]\displaystyle{ 3 \mid m \; }[/math] i [math]\displaystyle{ \; \left( {\small\frac{5}{3}} \right)_{\small{\!\! J}} = \left( {\small\frac{2}{3}} \right)_{\small{\!\! J}} = - 1 . }[/math] Zatem kongruencja

[math]\displaystyle{ x^2 \equiv 5 \pmod{m} }[/math]

nie ma rozwiązania (zobacz J55). Ponieważ [math]\displaystyle{ 2 \mid m }[/math], [math]\displaystyle{ 3 \mid m }[/math] i [math]\displaystyle{ 5 \nmid m }[/math], to [math]\displaystyle{ \mathbb{n} (m) = 5 . }[/math]


Twierdzenie K37
Niech [math]\displaystyle{ m \in \mathbb{Z}_+ }[/math] i [math]\displaystyle{ p \geqslant 5 }[/math] będzie liczbą pierwszą. Jeżeli iloczyn wszystkich liczb pierwszych mniejszych od [math]\displaystyle{ p }[/math] dzieli [math]\displaystyle{ m }[/math] i [math]\displaystyle{ p \nmid m }[/math], to [math]\displaystyle{ \mathbb{n} (m) = p }[/math].

Dowód

Z twierdzenia K69 wiemy, że istnieje liczba pierwsza nieparzysta [math]\displaystyle{ q \lt p }[/math] taka, że [math]\displaystyle{ \left( {\small\frac{p}{q}} \right)_{\small{\!\! J}} = - 1 . }[/math] Z założenia [math]\displaystyle{ q \mid m }[/math], zatem kongruencja

[math]\displaystyle{ x^2 \equiv p \pmod{m} }[/math]

nie ma rozwiązania (zobacz J55). Ponieważ wszystkie liczby pierwsze mniejsze od [math]\displaystyle{ p }[/math] dzielą [math]\displaystyle{ m }[/math], to [math]\displaystyle{ \mathbb{n} (m) = p }[/math]. Co należało pokazać.


Zadanie K38
Pokazać, że podanym w pierwszej kolumnie postaciom liczby [math]\displaystyle{ m }[/math] odpowiadają wymienione w drugiej kolumnie wartości [math]\displaystyle{ \mathbb{n} (m) . }[/math]


Twierdzenie K39
Niech [math]\displaystyle{ m }[/math] będzie liczbą nieparzystą, a [math]\displaystyle{ \mathbb{n} (m) }[/math] będzie najmniejszą liczbą niekwadratową modulo [math]\displaystyle{ m . }[/math] Mamy

[math]\displaystyle{ \begin{array}{lll} \mathbb{n} (2 m) \gt \mathbb{n} (m) & & \text{gdy} \;\; \mathbb{n} (m) = 2 \\ \mathbb{n} (2 m) =\mathbb{n} (m) & & \text{gdy} \;\; \mathbb{n} (m) \gt 2 \\ \end{array} }[/math]
Dowód

Punkt 1.

W przypadku, gdy [math]\displaystyle{ \mathbb{n} (m) = 2 }[/math], mamy [math]\displaystyle{ \mathbb{n} (2 m) \gt 2 = \mathbb{n} (m) }[/math], bo [math]\displaystyle{ \mathbb{n} (2 m) }[/math] musi być liczbą względnie pierwszą z [math]\displaystyle{ 2 m . }[/math]

Punkt 2.

Z definicji najmniejszej liczby niekwadratowej modulo [math]\displaystyle{ m }[/math] wiemy, że kongruencja

[math]\displaystyle{ x^2 \equiv \mathbb{n} (m) \pmod{m} }[/math]

nie ma rozwiązania. Oznacza to, że istnieje liczba pierwsza nieparzysta [math]\displaystyle{ p }[/math] taka, że [math]\displaystyle{ p \mid m \; }[/math] i [math]\displaystyle{ \; \left( {\small\frac{\mathbb{n} (m)}{p}} \right)_{\small{\!\! J}} = - 1 . }[/math] Ponieważ [math]\displaystyle{ p \mid 2 m }[/math], to wynika stąd natychmiast, że kongruencja

[math]\displaystyle{ x^2 \equiv \mathbb{n} (m) \pmod{2 m} }[/math]

również nie ma rozwiązania (zobacz J55).

Zatem [math]\displaystyle{ \mathbb{n} (2 m) \leqslant \mathbb{n} (m) . }[/math] Niech [math]\displaystyle{ q }[/math] będzie liczbą pierwszą taką, że [math]\displaystyle{ 2 \lt q \lt \mathbb{n} (m) . }[/math] Kongruencję

[math]\displaystyle{ x^2 \equiv q \pmod{2 m} \qquad \qquad (1) }[/math]

możemy zapisać w postaci układu kongruencji równoważnych (zobacz J1)

[math]\displaystyle{ \begin{align} x^2 & \equiv q \pmod{m} \qquad \qquad \;\: (2) \\ x^2 & \equiv q \pmod{2} \qquad \qquad \;\;\,\, (3) \\ \end{align} }[/math]

Z definicji [math]\displaystyle{ q }[/math] jest liczbą kwadratową modulo [math]\displaystyle{ m }[/math], zatem kongruencja [math]\displaystyle{ (2) }[/math] ma rozwiązanie – oznaczmy to rozwiązanie przez [math]\displaystyle{ x_0 . }[/math] Łatwo zauważamy, że liczba

[math]\displaystyle{ x'_0 = \begin{cases} \;\;\;\; x_0 & \text{gdy} \quad x_0 \equiv 1 \pmod{2} \\ x_0 + m & \text{gdy} \quad x_0 \equiv 0 \pmod{2} \\ \end{cases} }[/math]

jest rozwiązaniem układu kongruencji [math]\displaystyle{ (2) }[/math] i [math]\displaystyle{ (3) }[/math], a tym samym kongruencja [math]\displaystyle{ (1) }[/math] ma rozwiązanie dla każdego [math]\displaystyle{ 2 \lt q \lt \mathbb{n} (m) . }[/math] Wynika stąd, że [math]\displaystyle{ \mathbb{n} (2 m) =\mathbb{n} (m) . }[/math]


Twierdzenie K40
Niech [math]\displaystyle{ m }[/math] będzie liczbą nieparzystą, a [math]\displaystyle{ \mathbb{n} (m) }[/math] będzie najmniejszą liczbą niekwadratową modulo [math]\displaystyle{ m . }[/math] Mamy

[math]\displaystyle{ \begin{array}{lllll} \mathbb{n} (4 m) \geqslant 5 & & \mathbb{n} (m) = 2 & & \text{gdy } \;\; 3 \mid m \\ \mathbb{n} (4 m) = 3 & & \mathbb{n} (m) \geqslant 2 & & \text{gdy } \;\; 3 \nmid m \\ \end{array} }[/math]
Dowód

Punkt 1.

Z twierdzenia K34 wynika, że w przypadku, gdy [math]\displaystyle{ 3 \mid m }[/math], to [math]\displaystyle{ \mathbb{n} (m) = 2 . }[/math] Ponieważ [math]\displaystyle{ 2 \mid 4 m }[/math] i [math]\displaystyle{ 3 \mid 4 m }[/math], to [math]\displaystyle{ \mathbb{n} (4 m) \geqslant 5 . }[/math]

Punkt 2.

Ponieważ [math]\displaystyle{ m }[/math] jest liczbą nieparzystą, to [math]\displaystyle{ 8 \nmid 4 m }[/math], ale [math]\displaystyle{ 4 \mid 4 m \; }[/math] i [math]\displaystyle{ \; 4 \nmid (3 - 1) }[/math], zatem z twierdzenia J55 wynika, że kongruencja

[math]\displaystyle{ x^2 \equiv 3 \pmod{4 m} }[/math]

nie ma rozwiązania. Ponieważ [math]\displaystyle{ 2 \mid 4 m \; }[/math] i [math]\displaystyle{ \; 3 \nmid 4 m }[/math], to [math]\displaystyle{ \mathbb{n} (4 m) = 3 . }[/math]


Twierdzenie K41
Niech [math]\displaystyle{ p }[/math] będzie liczbą pierwszą nieparzystą. Jeżeli [math]\displaystyle{ a }[/math] jest liczbą niekwadratową modulo [math]\displaystyle{ p \, }[/math] i [math]\displaystyle{ \, p \mid m }[/math], to [math]\displaystyle{ a }[/math] jest liczbą niekwadratową modulo [math]\displaystyle{ m . }[/math]

Dowód

Wiemy, że liczba [math]\displaystyle{ a }[/math] jest liczbą kwadratową modulo [math]\displaystyle{ m }[/math] wtedy i tylko wtedy, gdy kongruencja

[math]\displaystyle{ x^2 \equiv a \pmod{m} }[/math]

ma rozwiązanie. Przypuśćmy, że liczba [math]\displaystyle{ a }[/math] jest liczbą kwadratową modulo [math]\displaystyle{ m . }[/math] Zatem istnieje taka liczba [math]\displaystyle{ k \in \mathbb{Z} }[/math], że

[math]\displaystyle{ k^2 \equiv a \pmod{m} }[/math]

Ponieważ z założenia [math]\displaystyle{ p \mid m }[/math], to prawdziwa jest też kongruencja

[math]\displaystyle{ k^2 \equiv a \pmod{p} }[/math]

co przeczy założeniu, że liczba [math]\displaystyle{ a }[/math] jest liczbą niekwadratową modulo [math]\displaystyle{ p . }[/math]


Twierdzenie K42
Niech [math]\displaystyle{ m \geqslant 3 }[/math] będzie liczbą nieparzystą. Jeżeli liczba [math]\displaystyle{ \mathbb{n} = \mathbb{n} (m) }[/math] jest najmniejszą liczbą niekwadratową modulo [math]\displaystyle{ m }[/math], to istnieje taki dzielnik pierwszy [math]\displaystyle{ p }[/math] liczby [math]\displaystyle{ m }[/math], że [math]\displaystyle{ \mathbb{n} }[/math] jest najmniejszą liczbą niekwadratową modulo [math]\displaystyle{ p . }[/math]

Dowód

Przypuśćmy, że taki dzielnik pierwszy nie istnieje. Zatem mamy zbiór dzielników pierwszych liczby [math]\displaystyle{ m }[/math]: [math]\displaystyle{ \{ p_1, \ldots, p_s \} }[/math] i powiązany z dzielnikami pierwszymi [math]\displaystyle{ p_k }[/math] zbiór najmniejszych liczb niekwadratowych modulo [math]\displaystyle{ p_k }[/math]: [math]\displaystyle{ \{ \mathbb{n}_1, \ldots, \mathbb{n}_s \} }[/math], z których każda jest liczbą niekwadratową modulo [math]\displaystyle{ m }[/math] (zobacz K41). Wynika stąd, że liczba [math]\displaystyle{ \mathbb{n} = \mathbb{n} (m) }[/math] musi być mniejsza od każdej z liczb [math]\displaystyle{ \mathbb{n}_k . }[/math]

Z definicji liczba [math]\displaystyle{ \mathbb{n} = \mathbb{n} (m) }[/math] jest liczbą niekwadratową modulo [math]\displaystyle{ m }[/math], co oznacza, że kongruencja

[math]\displaystyle{ x^2 \equiv \mathbb{n} \pmod{m} }[/math]

nie ma rozwiązania. Niech [math]\displaystyle{ m = p^{\alpha_1}_1 \cdot \ldots \cdot p^{\alpha_s}_s . }[/math] Zatem przynajmniej jedna z kongruencji

[math]\displaystyle{ x^2 \equiv \mathbb{n} \pmod{p^{\alpha_k}_k} }[/math]

musi nie mieć rozwiązania (zobacz J11). Z twierdzenia J49 wiemy, że wtedy kongruencja

[math]\displaystyle{ x^2 \equiv \mathbb{n} \pmod{p_k} }[/math]

również nie ma rozwiązania. Zatem [math]\displaystyle{ \mathbb{n} }[/math] jest liczbą niekwadratową modulo [math]\displaystyle{ p_k \, }[/math] i [math]\displaystyle{ \, \mathbb{n} \lt \mathbb{n}_k }[/math], co przeczy definicji liczby [math]\displaystyle{ \mathbb{n}_k . }[/math]


Twierdzenie K43
Niech [math]\displaystyle{ m \geqslant 3 }[/math] będzie liczbą nieparzystą. Jeżeli [math]\displaystyle{ m = p^{\alpha_1}_1 \cdot \ldots \cdot p^{\alpha_s}_s }[/math], to

[math]\displaystyle{ \mathbb{n}(m) = \min ( \mathbb{n} (p_1), \ldots, \mathbb{n} (p_s) ) }[/math]

gdzie [math]\displaystyle{ \mathbb{n}(m) }[/math] jest najmniejszą liczbą kwadratową modulo [math]\displaystyle{ m }[/math], a [math]\displaystyle{ \mathbb{n}(p_k) }[/math] są najmniejszymi liczbami kwadratowymi modulo [math]\displaystyle{ p_k . }[/math]

Dowód

Twierdzenie to jest prostym wnioskiem z twierdzenia K42, ale musimy jeszcze pokazać, że [math]\displaystyle{ \gcd (\mathbb{n} (m), m) = 1 . }[/math] Przypuśćmy, że [math]\displaystyle{ p_k |\mathbb{n} (m) }[/math] dla pewnego [math]\displaystyle{ 1 \leqslant k \leqslant s . }[/math] Ponieważ [math]\displaystyle{ \mathbb{n} (m) }[/math] jest liczbą pierwszą, to musi być [math]\displaystyle{ \mathbb{n} (m) = p_k }[/math], ale wtedy

[math]\displaystyle{ \mathbb{n} (p_k) \lt p_k =\mathbb{n} (m) \leqslant \mathbb{n} (p_k) }[/math]

Otrzymana sprzeczność dowodzi, że [math]\displaystyle{ \mathbb{n} (m) }[/math] jest względnie pierwsza z każdą z liczb pierwszych [math]\displaystyle{ p_i }[/math], gdzie [math]\displaystyle{ 1 \leqslant i \leqslant s . }[/math] Co kończy dowód.


Twierdzenie K44
Niech [math]\displaystyle{ m \geqslant 3 }[/math] będzie liczbą nieparzystą, a [math]\displaystyle{ \mathbb{n}(m) }[/math] jest najmniejszą liczbą niekwadratową modulo [math]\displaystyle{ m . }[/math] Prawdziwe są oszacowania

[math]\displaystyle{ \mathbb{n}(m) \lt \sqrt{m} + {\small\frac{1}{2}} \qquad \qquad \qquad \;\;\, \text{dla } m \geqslant 3 }[/math]
[math]\displaystyle{ \mathbb{n}(m) \leqslant 1.1 \cdot m^{1 / 4} \log m \qquad \qquad \text{dla } m \geqslant 5 }[/math]
Dowód

Niech [math]\displaystyle{ p }[/math] będzie dzielnikiem pierwszym liczby [math]\displaystyle{ m }[/math] takim, że [math]\displaystyle{ \mathbb{n}(m) = \mathbb{n} (p) }[/math] (z twierdzenia K42 wiemy, że taki dzielnik istnieje). Jeżeli prawdziwe jest oszacowanie [math]\displaystyle{ \mathbb{n}(p) \lt F (p) }[/math], gdzie [math]\displaystyle{ F(x) }[/math] jest funkcją rosnącą, to

[math]\displaystyle{ \mathbb{n}(m) = \mathbb{n} (p) \lt F (p) \leqslant F (m) }[/math]

Podane w twierdzeniu oszacowania wynikają natychmiast z twierdzeń K21 i K22.


Uwaga K45
Liczby [math]\displaystyle{ \mathbb{n} (m) }[/math] są zaskakująco małe. Średnia wartość [math]\displaystyle{ \mathbb{n} = \mathbb{n} (m) }[/math] wynosi[9]

[math]\displaystyle{ \lim_{x \to \infty} {\small\frac{1}{x}} \sum_{m \leqslant x} \mathbb{n} (m) = 2 + \sum_{k = 3}^{\infty} {\small\frac{p_k - 1}{p_1 \cdot \ldots \cdot p_{k - 1}}} = 2.920050977 \ldots }[/math]



 C. Najmniejsze dodatnie liczby niekwadratowe [math]\displaystyle{ a }[/math] takie, że [math]\displaystyle{ \left( {\small\frac{a}{m}} \right)_{\small{\!\! J}} = - 1 }[/math] 

Przykład K46
W tabeli przedstawiliśmy najmniejsze liczby niekwadratowe modulo [math]\displaystyle{ p }[/math], najmniejsze liczby niekwadratowe modulo [math]\displaystyle{ m }[/math] i najmniejsze dodatnie liczby niekwadratowe [math]\displaystyle{ a }[/math] takie, że [math]\displaystyle{ \left( {\small\frac{a}{m}} \right)_{\small{\!\! J}} = - 1 }[/math].


Uwaga K47
Do wyszukiwania liczb [math]\displaystyle{ c = c (m) }[/math] Czytelnik może wykorzystać prostą funkcję napisaną w PARI/GP

C(m) = 
{
if( m%2 == 0, return(0) );
if( issquare(m), return(0) );
forprime(p = 2, m, if( jacobi(p, m) == -1, return(p) ));
}


Uwaga K48
Najmniejsze dodatnie liczby niekwadratowe [math]\displaystyle{ a }[/math] takie, że [math]\displaystyle{ \left( {\small\frac{a}{m}} \right)_{\small{\!\! J}} = - 1 }[/math] oznaczyliśmy jako [math]\displaystyle{ c(m) }[/math]. Zauważmy, że są to liczby inne od [math]\displaystyle{ \mathbb{n}(p) }[/math] i [math]\displaystyle{ \mathbb{n}(m) }[/math]. Wystarczy zwrócić uwagę na występujące w tabeli liczby [math]\displaystyle{ \mathbb{n}(p) }[/math], [math]\displaystyle{ \mathbb{n}(m) }[/math] i [math]\displaystyle{ c(m) }[/math] dla [math]\displaystyle{ m = 15, 33, 39 }[/math]. Różnice wynikają z innej definicji liczb [math]\displaystyle{ c(m) }[/math] – jeżeli liczba [math]\displaystyle{ a }[/math] jest liczbą niekwadratową modulo [math]\displaystyle{ m }[/math], to symbol Jacobiego [math]\displaystyle{ \left( {\small\frac{a}{m}} \right)_{\small{\!\! J}} }[/math] nie musi być równy [math]\displaystyle{ - 1 }[/math]. I tak czasami bywa, co bardzo dobrze pokazuje powyższa tabela.

Ponieważ [math]\displaystyle{ c(m) }[/math] nie zawsze będzie najmniejszą liczbą kwadratową modulo [math]\displaystyle{ m }[/math], to mamy natychmiast oszacowanie: [math]\displaystyle{ c(m) \geqslant \mathbb{n} (m) }[/math] (poza przypadkami, gdy [math]\displaystyle{ m = n^2 }[/math]).

Dla [math]\displaystyle{ c(m) }[/math] nie są prawdziwe oszacowania podane w twierdzeniu K21. Łatwo zauważamy, że

[math]\displaystyle{ c = c (15) = 7 \gt \sqrt{15} + {\small\frac{1}{2}} \approx 4.37 }[/math]
[math]\displaystyle{ c = c (39) = 7 \gt \sqrt{39} + {\small\frac{1}{2}} \approx 6.74 }[/math]
[math]\displaystyle{ c = c (105) = 11 \gt \sqrt{105} + {\small\frac{1}{2}} \approx 10.75 }[/math]
[math]\displaystyle{ c = c (231) = 17 \gt \sqrt{231} + {\small\frac{1}{2}} \approx 15.7 }[/math]

Nie ma więcej takich przypadków dla [math]\displaystyle{ m \lt 10^9 }[/math].


Twierdzenie K49
Niech [math]\displaystyle{ c, m \in \mathbb{Z}_+ }[/math] i niech [math]\displaystyle{ m \geqslant 3 }[/math] będzie liczbą nieparzystą, a [math]\displaystyle{ c }[/math] będzie najmniejszą liczbą taką, że [math]\displaystyle{ \left( {\small\frac{c}{m}} \right)_{\small{\!\! J}} = - 1 }[/math]. Liczba [math]\displaystyle{ c }[/math] musi być liczbą pierwszą.

Dowód

Przypuśćmy, że [math]\displaystyle{ c = a b }[/math] jest liczbą złożoną, gdzie [math]\displaystyle{ 1 \lt a, b \lt c }[/math]. Mamy

[math]\displaystyle{ - 1 = \left( {\small\frac{c}{m}} \right)_{\small{\!\! J}} = \left( {\small\frac{a b}{m}} \right)_{\small{\!\! J}} = \left( {\small\frac{a}{m}} \right)_{\small{\!\! J}} }[/math][math]\displaystyle{ \left( {\small\frac{b}{m}} \right)_{\small{\!\! J}} }[/math]

Zatem jeden z czynników po prawej stronie musi być równy [math]\displaystyle{ - 1 }[/math] wbrew definicji liczby [math]\displaystyle{ c }[/math].



Liczby pierwsze postaci [math]\displaystyle{ x^2 + n y^2 }[/math]

Przykład K50
Przedstawiamy wszystkie rozkłady liczb naturalnych nie większych od [math]\displaystyle{ 85 }[/math] na sumę postaci [math]\displaystyle{ x^2 + y^2 }[/math], gdzie [math]\displaystyle{ x, y \in \mathbb{N}_0 }[/math]. Rozkłady różniące się jedynie kolejnością liczb [math]\displaystyle{ x , y }[/math] nie zostały uwzględnione.

Zauważmy, że liczba złożona [math]\displaystyle{ 21 }[/math] nie ma rozkładu na sumę kwadratów, a liczba złożona [math]\displaystyle{ 65 }[/math] ma dwa takie rozkłady. Obie liczby są postaci [math]\displaystyle{ 4 k + 1 }[/math].


Przykład K51
Przedstawiamy wszystkie rozkłady liczb naturalnych nie większych od [math]\displaystyle{ 73 }[/math] na sumę postaci [math]\displaystyle{ x^2 + 2 y^2 }[/math], gdzie [math]\displaystyle{ x, y \in \mathbb{N}_0 }[/math].

Zauważmy, że liczba złożona [math]\displaystyle{ 65 }[/math] nie ma rozkładu na sumę postaci [math]\displaystyle{ x^2 + 2 y^2 }[/math], a liczba złożona [math]\displaystyle{ 33 }[/math] ma dwa takie rozkłady. Obie liczby są postaci [math]\displaystyle{ 8 k + 1 }[/math].

Zauważmy też, że liczba złożona [math]\displaystyle{ 35 }[/math] nie ma rozkładu na sumę postaci [math]\displaystyle{ x^2 + 2 y^2 }[/math], a liczba złożona [math]\displaystyle{ 27 }[/math] ma dwa takie rozkłady. Obie liczby są postaci [math]\displaystyle{ 8 k + 3 }[/math].


Przykład K52
Przedstawiamy wszystkie rozkłady liczb naturalnych nie większych od [math]\displaystyle{ 103 }[/math] na sumę postaci [math]\displaystyle{ x^2 + 3 y^2 }[/math], gdzie [math]\displaystyle{ x, y \in \mathbb{N}_0 }[/math].

Zauważmy, że liczba złożona [math]\displaystyle{ 55 }[/math] nie ma rozkładu na sumę postaci [math]\displaystyle{ x^2 + 3 y^2 }[/math], a liczba złożona [math]\displaystyle{ 91 }[/math] ma dwa takie rozkłady. Obie liczby są postaci [math]\displaystyle{ 6 k + 1 }[/math].


Twierdzenie K53
Jeżeli liczba nieparzysta postaci [math]\displaystyle{ Q = x^2 + n y^2 }[/math], gdzie [math]\displaystyle{ n \in \{ 1, 2, 3 \} }[/math], ma dwa różne takie przedstawienia w liczbach całkowitych dodatnich, to jest liczbą złożoną.

Dowód

W dowodzie wyróżniliśmy miejsca, które wymagają oddzielnej analizy ze względu na wartość liczby [math]\displaystyle{ n }[/math].

Niech

[math]\displaystyle{ Q = x^2 + n y^2 = a^2 + n b^2 }[/math]

[math]\displaystyle{ \boldsymbol{n = 1} }[/math]

Z założenia [math]\displaystyle{ Q }[/math] jest liczbą nieparzystą, zatem liczby występujące w rozkładach [math]\displaystyle{ x^2 + y^2 = a^2 + b^2 }[/math] muszą mieć przeciwną parzystość. Nie zmniejszając ogólności, możemy założyć, że liczby [math]\displaystyle{ x, a }[/math] są nieparzyste, a liczby [math]\displaystyle{ y, b }[/math] parzyste.

[math]\displaystyle{ \boldsymbol{n = 2} }[/math]

Z założenia [math]\displaystyle{ Q }[/math] jest liczbą nieparzystą, zatem liczby [math]\displaystyle{ x, a }[/math] występująca w rozkładach [math]\displaystyle{ x^2 + 2 y^2 = a^2 + 2 b^2 }[/math] muszą być nieparzyste. Pokażemy, że liczby [math]\displaystyle{ y, b }[/math] muszą mieć taką samą parzystość. Przypuśćmy, że [math]\displaystyle{ y }[/math] jest parzysta, a [math]\displaystyle{ b }[/math] nieparzysta, wtedy modulo [math]\displaystyle{ 4 }[/math] dostajemy

[math]\displaystyle{ 1 + 2 \cdot 0 \equiv 1 + 2 \cdot 1 \!\! \pmod{4} }[/math]

Co jest niemożliwe.

[math]\displaystyle{ \boldsymbol{n = 3} }[/math]

Z założenia [math]\displaystyle{ Q }[/math] jest liczbą nieparzystą, zatem liczby występujące w rozkładach [math]\displaystyle{ x^2 + 3 y^2 = a^2 + 3 b^2 }[/math] muszą mieć przeciwną parzystość. Pokażemy, że liczby [math]\displaystyle{ x, a }[/math] muszą mieć taką samą parzystość. Gdyby liczba [math]\displaystyle{ x }[/math] była nieparzysta, a liczba [math]\displaystyle{ a }[/math] parzysta, to modulo [math]\displaystyle{ 4 }[/math] mielibyśmy

[math]\displaystyle{ 1 + 3 \cdot 0 \equiv 0 + 3 \cdot 1 \!\! \pmod{4} }[/math]

Co jest niemożliwe.

Z powyższego zestawienia wynika, że liczby [math]\displaystyle{ x, a }[/math] i liczby [math]\displaystyle{ y, b }[/math] mają taką samą parzystość. Mamy

[math]\displaystyle{ x^2 - a^2 = n (b^2 - y^2) }[/math]
[math]\displaystyle{ (x - a) (x + a) = n (b - y) (b + y) }[/math]

Niech [math]\displaystyle{ f = \gcd (x - a, b - y) }[/math], zatem [math]\displaystyle{ f }[/math] jest liczbą parzystą i

[math]\displaystyle{ x - a = f r , \qquad \qquad b - y = f s , \qquad \qquad \gcd (r, s) = 1 }[/math]

Czyli

[math]\displaystyle{ r(x + a) = n s (y + b) }[/math]

ale liczby [math]\displaystyle{ r, s }[/math] są względnie pierwsze, zatem [math]\displaystyle{ s \mid (x + a) }[/math] i musi być

[math]\displaystyle{ x + a = k s \qquad \qquad \Longrightarrow \qquad \qquad n (y + b) = k r }[/math]

Gdyby [math]\displaystyle{ k }[/math] było liczbą nieparzystą, to liczby [math]\displaystyle{ r, s }[/math] musiałyby być parzyste, co jest niemożliwe, bo [math]\displaystyle{ \gcd (r, s) = 1 }[/math]. Zatem [math]\displaystyle{ k }[/math] jest liczbą parzystą i [math]\displaystyle{ 2 s \mid (x + a) }[/math], czyli możemy pokazać więcej. Musi być

[math]\displaystyle{ x + a = 2 l s \qquad \qquad \Longrightarrow \qquad \qquad n (y + b) = 2 l r }[/math]

W przypadku gdy [math]\displaystyle{ n = 2 }[/math] lub [math]\displaystyle{ n = 3 }[/math], zauważmy, że [math]\displaystyle{ n \mid l }[/math] lub [math]\displaystyle{ n \mid r }[/math].

Łatwo otrzymujemy

[math]\displaystyle{ x = {\small\frac{1}{2}} (2 l s + f r) }[/math]
[math]\displaystyle{ y = {\small\frac{1}{2 n}} (2 l r - n f s) }[/math]

Ostatecznie

[math]\displaystyle{ Q = x^2 + n y^2 }[/math]
[math]\displaystyle{ \;\;\;\: = \left[ {\small\frac{1}{2}} (2 l s + f r) \right]^2 + n \left[ {\small\frac{1}{2 n}} (2 l r - n f s) \right]^2 }[/math]
[math]\displaystyle{ \;\;\;\: = {\small\frac{1}{4 n}} [n (2 l s + f r)^2 + (2 l r - n f s)^2] }[/math]
[math]\displaystyle{ \;\;\;\: = {\small\frac{1}{4 n}} [n (2 l s)^2 + n (f r)^2 + (2 l r)^2 + (n f s)^2] }[/math]
[math]\displaystyle{ \;\;\;\: = {\small\frac{1}{4 n}} [(2 l)^2 + n f^2] (r^2 + n s^2) }[/math]

[math]\displaystyle{ \boldsymbol{n = 1} }[/math]

[math]\displaystyle{ Q = {\small\frac{1}{4}} [(2 l)^2 + f^2] (r^2 + s^2) = \left[ l^2 + \left( {\small\frac{f}{2}} \right)^2 \right] (r^2 + s^2) }[/math]

[math]\displaystyle{ \boldsymbol{n = 2 , 3} }[/math]

W zależności od tego, która z liczb [math]\displaystyle{ l, r }[/math] jest podzielna przez [math]\displaystyle{ n }[/math], możemy napisać

[math]\displaystyle{ Q = {\small\frac{1}{4 n}} [(2 l)^2 + n f^2] (r^2 + n s^2) = \left[ {\small\frac{(2 l)^2 + n f^2}{4 n}} \right] (r^2 + n s^2) = \left[ {\small\frac{(2 l)^2 + n f^2}{4}} \right] \left( {\small\frac{r^2 + n s^2}{n}} \right) }[/math]

Co kończy dowód.


Uwaga K54
Zauważmy, że iloczyn liczb postaci [math]\displaystyle{ x^2 + n y^2 }[/math] jest liczbą tej samej postaci.

[math]\displaystyle{ (a^2 + n b^2) (x^2 + n y^2) = (a x + n b y)^2 + n (a y - b x)^2 }[/math]
[math]\displaystyle{ \;\;\;\:\, = (a x - n b y)^2 + n (a y + b x)^2 }[/math]


Twierdzenie K55
Niech [math]\displaystyle{ x, y, a, b \in \mathbb{Z} }[/math] i [math]\displaystyle{ n \in \{ 1, 2, 3 \} }[/math]. Jeżeli liczba parzysta [math]\displaystyle{ Q = x^2 + n y^2 }[/math], to [math]\displaystyle{ Q = 2^{\alpha} R }[/math], gdzie [math]\displaystyle{ R = a^2 + n b^2 }[/math] jest liczbą nieparzystą.

Dowód

W szczególnym przypadku, gdy [math]\displaystyle{ R = 1 }[/math], mamy [math]\displaystyle{ R = 1^2 + n \cdot 0^2 }[/math].

Dowód sprowadza się do podania wzorów, które pozwalają obniżyć wykładnik, z jakim liczba [math]\displaystyle{ 2 }[/math] występuje w rozwinięciu na czynniki pierwsze liczby [math]\displaystyle{ Q }[/math]. Zauważmy, że wynik jest zawsze liczbą, której postać jest taka sama, jak postać liczby [math]\displaystyle{ Q }[/math]. Stosując te wzory odpowiednią ilość razy, otrzymujmy rozkład [math]\displaystyle{ Q = 2^{\alpha} R }[/math], gdzie [math]\displaystyle{ R }[/math] jest liczbą nieparzystą postaci [math]\displaystyle{ a^2 + n b^2 }[/math].

1. [math]\displaystyle{ \boldsymbol{Q = x^2 + y^2} }[/math]

a) jeżeli liczby [math]\displaystyle{ x, y }[/math] są parzyste, to [math]\displaystyle{ {\small\frac{Q}{4}} = \left( {\small\frac{x}{2}} \right)^2 + \left( {\small\frac{y}{2}} \right)^2 }[/math]

b) jeżeli liczby [math]\displaystyle{ x, y }[/math] są nieparzyste, to [math]\displaystyle{ {\small\frac{Q}{2}} = \left( {\small\frac{x + y}{2}} \right)^2 + \left( {\small\frac{x - y}{2}} \right)^2 }[/math]

2. [math]\displaystyle{ \boldsymbol{Q = x^2 + 2 y^2} }[/math]

a) jeżeli liczby [math]\displaystyle{ x, y }[/math] są parzyste, to [math]\displaystyle{ {\small\frac{Q}{4}} = \left( {\small\frac{x}{2}} \right)^2 + 2 \left( {\small\frac{y}{2}} \right)^2 }[/math]

b) jeżeli liczba [math]\displaystyle{ x }[/math] jest parzysta, a [math]\displaystyle{ y }[/math] nieparzysta, to [math]\displaystyle{ {\small\frac{Q}{2}} = y^2 + 2 \left( {\small\frac{x}{2}} \right)^2 }[/math]

3. [math]\displaystyle{ \boldsymbol{Q = x^2 + 3 y^2} }[/math]

a) jeżeli liczby [math]\displaystyle{ x, y }[/math] są parzyste, to [math]\displaystyle{ {\small\frac{Q}{4}} = \left( {\small\frac{x}{2}} \right)^2 + 3 \left( {\small\frac{y}{2}} \right)^2 }[/math]

b) jeżeli liczby [math]\displaystyle{ x, y }[/math] są nieparzyste i [math]\displaystyle{ 4 \mid (x + y) }[/math], to [math]\displaystyle{ {\small\frac{Q}{4}} = \left( {\small\frac{x - 3 y}{4}} \right)^2 + 3 \left( {\small\frac{x + y}{4}} \right)^2 }[/math]

c) jeżeli liczby [math]\displaystyle{ x, y }[/math] są nieparzyste i [math]\displaystyle{ 4 \mid (x - y) }[/math], to [math]\displaystyle{ {\small\frac{Q}{4}} = \left( {\small\frac{x + 3 y}{4}} \right)^2 + 3 \left( {\small\frac{x - y}{4}} \right)^2 }[/math]

Co należało pokazać.


Twierdzenie K56
Liczba pierwsza [math]\displaystyle{ p \geqslant 3 }[/math] jest postaci

(a)  [math]\displaystyle{ 4 k + 1 }[/math]
(b)  [math]\displaystyle{ 8 k + 1 \, }[/math] lub [math]\displaystyle{ \: 8 k + 3 }[/math]
(c)  [math]\displaystyle{ 6 k + 1 }[/math]

wtedy i tylko wtedy, gdy istnieje dokładnie jedna para liczb całkowitych dodatnich [math]\displaystyle{ x, y }[/math], że

(a)  [math]\displaystyle{ p = x^2 + y^2 }[/math]
(b)  [math]\displaystyle{ p = x^2 + 2 y^2 }[/math]
(c)  [math]\displaystyle{ p = x^2 + 3 y^2 }[/math]
Dowód

[math]\displaystyle{ \Large{\Longleftarrow} }[/math]

Niech [math]\displaystyle{ n = 1, 2, 3 }[/math]. Z założenia liczba pierwsza [math]\displaystyle{ p \geqslant 3 }[/math] może być przedstawiona w postaci [math]\displaystyle{ p = x_0^2 + n y_0^2 }[/math], gdzie [math]\displaystyle{ x_0, y_0 }[/math] są liczbami takimi, że [math]\displaystyle{ 1 \leqslant x_0, y_0 \lt p }[/math]. Zatem [math]\displaystyle{ p \nmid x_0 }[/math] i [math]\displaystyle{ p \nmid y_0 }[/math], a rozpatrując równanie [math]\displaystyle{ p = x_0^2 + n y_0^2 }[/math] modulo [math]\displaystyle{ p }[/math] dostajemy

[math]\displaystyle{ x_0^2 + n y_0^2 \equiv 0 \!\! \pmod{p} }[/math]

Zauważmy, że liczba [math]\displaystyle{ x_0 }[/math] jest rozwiązaniem kongruencji

[math]\displaystyle{ x^2 \equiv - n y_0^2 \!\! \pmod{p} }[/math]

Wynika stąd, że liczba [math]\displaystyle{ - n y_0^2 }[/math] jest liczbą kwadratową modulo [math]\displaystyle{ p }[/math]. Zatem

[math]\displaystyle{ \left( {\small\frac{- n y_0^2}{p}} \right)_{\small{\!\! J}} = \left( {\small\frac{- n}{p}} \right)_{\small{\!\! J}} \cdot \left( {\small\frac{y_0^2}{p}} \right)_{\small{\!\! J}} = \left( {\small\frac{- n}{p}} \right)_{\small{\!\! J}} = 1 }[/math]

Z twierdzenia J41 i zadania J45 otrzymujemy natychmiast

(a) jeżeli [math]\displaystyle{ \left( {\small\frac{- 1}{p}} \right)_{\small{\!\! J}} = 1 }[/math], to liczba pierwsza [math]\displaystyle{ p }[/math] musi być postaci [math]\displaystyle{ 4 k + 1 }[/math]
(b) jeżeli [math]\displaystyle{ \left( {\small\frac{- 2}{p}} \right)_{\small{\!\! J}} = 1 }[/math], to liczba pierwsza [math]\displaystyle{ p }[/math] musi być postaci [math]\displaystyle{ 8 k + 1 }[/math] lub [math]\displaystyle{ 8 k + 3 }[/math]
(c) jeżeli [math]\displaystyle{ \left( {\small\frac{- 3}{p}} \right)_{\small{\!\! J}} = 1 }[/math], to liczba pierwsza [math]\displaystyle{ p }[/math] musi być postaci [math]\displaystyle{ 6 k + 1 }[/math]

Co należało pokazać.


[math]\displaystyle{ \Large{\Longrightarrow} }[/math]

A. Istnienie rozwiązania kongruencji [math]\displaystyle{ \boldsymbol{x^2 + n y^2 \equiv 0 \!\! \pmod{p}} }[/math]

Z założenia liczba pierwsza [math]\displaystyle{ p \geqslant 3 }[/math] jest postaci

(a)  [math]\displaystyle{ 4 k + 1 }[/math]
(b)  [math]\displaystyle{ 8 k + 1 \, }[/math] lub [math]\displaystyle{ \: 8 k + 3 }[/math]
(c)  [math]\displaystyle{ 6 k + 1 }[/math]

Wynika stąd, że dla (a) [math]\displaystyle{ n = 1 }[/math], (b) [math]\displaystyle{ n = 2 }[/math], (c) [math]\displaystyle{ n = 3 }[/math] mamy

[math]\displaystyle{ \left( {\small\frac{- n}{p}} \right)_{\small{\!\! J}} = 1 }[/math]

(zobacz J41 i J45) i liczba [math]\displaystyle{ - n }[/math] jest liczbą kwadratową modulo [math]\displaystyle{ p }[/math]. Zatem kongruencja

[math]\displaystyle{ x^2 \equiv - n \!\! \pmod{p} }[/math]

ma rozwiązanie, czyli istnieje taka liczba [math]\displaystyle{ k }[/math], że

[math]\displaystyle{ k^2 + n \equiv 0 \!\! \pmod{p} }[/math]

Zauważmy, że liczby [math]\displaystyle{ x_0 = k }[/math] i [math]\displaystyle{ y_0 = 1 }[/math] są szczególnymi przypadkami rozwiązania kongruencji

[math]\displaystyle{ x^2 + n y^2 \equiv 0 \!\! \pmod{p} }[/math]

W przypadku (a), korzystając z twierdzenia Wilsona (zobacz J18), liczbę [math]\displaystyle{ x_0 }[/math] możemy jawnie wypisać: [math]\displaystyle{ x_0 = \left( {\small\frac{p - 1}{2}} \right) ! }[/math]


B. Zmniejszenie rozwiązania początkowego

Niech liczby [math]\displaystyle{ x_0, y_0 }[/math] takie, że [math]\displaystyle{ p \nmid x_0 \, }[/math] i [math]\displaystyle{ \, p \nmid y_0 }[/math] spełniają kongruencję

[math]\displaystyle{ x_0^2 + n y_0^2 \equiv 0 \!\! \pmod{p} }[/math]

Wybierzmy liczby [math]\displaystyle{ r, s }[/math] tak, aby były najbliższymi liczbami całkowitymi odpowiednio dla liczb [math]\displaystyle{ {\small\frac{x_0}{p}} \, }[/math] i [math]\displaystyle{ \, {\small\frac{y_0}{p}} }[/math]. Z definicji mamy

[math]\displaystyle{ \left| {\small\frac{x_0}{p}} - r \right| \leqslant {\small\frac{1}{2}} \qquad \qquad \text{i} \qquad \qquad \left| {\small\frac{y_0}{p}} - s \right| \leqslant {\small\frac{1}{2}} }[/math]

Zatem

[math]\displaystyle{ | x_0 - r p | \leqslant {\small\frac{p}{2}} \qquad \qquad \text{i} \qquad \qquad | y_0 - s p | \leqslant {\small\frac{p}{2}} }[/math]

Ponieważ liczby po lewej stronie nierówności są liczbami całkowitymi, to nigdy nie będą równe liczbie [math]\displaystyle{ {\small\frac{p}{2}} }[/math], gdzie [math]\displaystyle{ p }[/math] jest liczbą nieparzystą. Pozwala to wzmocnić wypisane nierówności.

[math]\displaystyle{ | x_0 - r p | \lt {\small\frac{p}{2}} \qquad \qquad \text{i} \qquad \qquad | y_0 - s p | \lt {\small\frac{p}{2}} }[/math]

Wynika stąd, że dla dowolnego rozwiązania początkowego [math]\displaystyle{ x_0, y_0 }[/math] możemy wybrać liczby

[math]\displaystyle{ x = x_0 - r p \qquad \qquad \text{i} \qquad \qquad y = y_0 - s p }[/math]

takie, że [math]\displaystyle{ p \nmid x }[/math] oraz [math]\displaystyle{ p \nmid y }[/math] i dla których

[math]\displaystyle{ 0 \lt x^2 + n y^2 \lt \left( {\small\frac{p}{2}} \right)^2 + n \left( {\small\frac{p}{2}} \right)^2 = {\small\frac{(n + 1) p}{4}} \cdot p }[/math]

Ponieważ modulo [math]\displaystyle{ p }[/math] jest [math]\displaystyle{ x \equiv x_0 \, }[/math] i [math]\displaystyle{ \, y \equiv y_0 }[/math], to liczby [math]\displaystyle{ x, y }[/math] spełniają kongruencję

[math]\displaystyle{ x^2 + n y^2 \equiv 0 \!\! \pmod{p} }[/math]

Zatem wynikające z powyższej kongruencji równanie

[math]\displaystyle{ x^2 + n y^2 = m p }[/math]

ma rozwiązanie dla liczb

[math]\displaystyle{ | x | \lt {\small\frac{p}{2}} , \qquad \qquad | y | \lt {\small\frac{p}{2}}, \qquad \qquad 1 \leqslant m \lt {\small\frac{(n + 1) p}{4}} }[/math]

Pomysł ze zmniejszaniem liczb stanowiących rozwiązanie za chwilę wykorzystamy ponownie i będzie to istotny element dowodu.


C. Metoda nieskończonego schodzenia Fermata[10][11]

Pomysł dowodu został zaczerpnięty z książki Hardy'ego i Wrighta[12].

Jeżeli w rozwiązaniu [math]\displaystyle{ m = 1 }[/math], to [math]\displaystyle{ p = x^2 + n y^2 }[/math] i twierdzenie jest udowodnione. W przypadku gdy [math]\displaystyle{ m \gt 1 }[/math] wskażemy sposób postępowania, który pozwoli nam z istniejącego rozwiązania równania

[math]\displaystyle{ x^2 + n y^2 = m p }[/math]

otrzymać nowe rozwiązanie tej samej postaci

[math]\displaystyle{ x_1^2 + n y_1^2 = m_1 p }[/math]

takie, że [math]\displaystyle{ 1 \leqslant m_1 \lt m }[/math]. Powtarzając tę procedurę odpowiednią ilość razy, otrzymamy rozwiązanie [math]\displaystyle{ x_k, y_k, m_k }[/math], gdzie [math]\displaystyle{ m_k = 1 }[/math]. Istnienie takiej procedury stanowi dowód prawdziwości twierdzenia.

Zauważmy, że podział na parzyste i nieparzyste liczby [math]\displaystyle{ m }[/math] jest konieczny tylko w przypadku gdy [math]\displaystyle{ n = 3 }[/math]. W pozostałych przypadkach nie musimy wzmacniać nierówności, aby prawdziwe było oszacowanie [math]\displaystyle{ 1 \leqslant m_1 \lt m }[/math].

Przypadek, gdy [math]\displaystyle{ \boldsymbol{m \gt 1} }[/math] jest liczbą parzystą

Jeżeli [math]\displaystyle{ m \gt 1 }[/math] jest liczbą parzystą, to z twierdzenia K55 wiemy, że liczba [math]\displaystyle{ x^2 + n y^2 }[/math] może być zapisana w postaci

[math]\displaystyle{ x^2 + n y^2 = 2^{\alpha} (x^2_1 + n y^2_1) }[/math]

gdzie [math]\displaystyle{ x^2_1 + n y^2_1 }[/math] jest liczbą nieparzystą. Wystarczy położyć [math]\displaystyle{ m_1 = {\small\frac{m}{2^{\alpha}}} }[/math], aby z istniejącego rozwiązania otrzymać nowe rozwiązanie tej samej postaci

[math]\displaystyle{ x_1^2 + n y_1^2 = m_1 p }[/math]

gdzie [math]\displaystyle{ m_1 }[/math] jest liczbą nieparzystą i [math]\displaystyle{ 1 \leqslant m_1 \lt m }[/math].

Przypadek, gdy [math]\displaystyle{ \boldsymbol{m \gt 1} }[/math] jest liczbą nieparzystą

Niech liczby [math]\displaystyle{ r, s }[/math] będą liczbami całkowitymi najbliższymi liczbom [math]\displaystyle{ {\small\frac{x}{m}} \, }[/math] i [math]\displaystyle{ \, {\small\frac{y}{m}} }[/math]. Z definicji mamy

[math]\displaystyle{ \left| {\small\frac{x}{m}} - r \right| \leqslant {\small\frac{1}{2}} \qquad \qquad \text{i} \qquad \qquad \left| {\small\frac{y}{m}} - s \right| \leqslant {\small\frac{1}{2}} }[/math]

Zatem

[math]\displaystyle{ | x - r m | \leqslant {\small\frac{m}{2}} \qquad \qquad \text{i} \qquad \qquad | y - s m | \leqslant {\small\frac{m}{2}} }[/math]

Ponieważ liczby po lewej stronie nierówności są liczbami całkowitymi, to nigdy nie będą równe liczbie [math]\displaystyle{ {\small\frac{m}{2}} }[/math], gdzie [math]\displaystyle{ m }[/math] jest liczbą nieparzystą. Pozwala to wzmocnić wypisane nierówności.

[math]\displaystyle{ | x - r m | \lt {\small\frac{m}{2}} \qquad \qquad \text{i} \qquad \qquad | y - s m | \lt {\small\frac{m}{2}} }[/math]

Połóżmy

[math]\displaystyle{ a = x - r m \qquad \qquad \text{i} \qquad \qquad b = y - s m }[/math]

Zauważmy, że liczba [math]\displaystyle{ m }[/math] nie może jednocześnie dzielić liczb [math]\displaystyle{ x }[/math] i [math]\displaystyle{ y }[/math], bo mielibyśmy [math]\displaystyle{ m^2 \mid (x^2 + n y^2) }[/math], czyli [math]\displaystyle{ m \mid p }[/math], co jest niemożliwe. Zatem przynajmniej jedna z liczb [math]\displaystyle{ a, b }[/math] musi być różna od [math]\displaystyle{ 0 }[/math].

Rozpatrując równanie [math]\displaystyle{ x^2 + n y^2 = m p }[/math] modulo [math]\displaystyle{ m }[/math] i uwzględniając, że

[math]\displaystyle{ x \equiv a \!\! \pmod{m} }[/math]
[math]\displaystyle{ y \equiv b \!\! \pmod{m} }[/math]

otrzymujemy

[math]\displaystyle{ a^2 + n b^2 \equiv 0 \pmod{m} }[/math]

Mamy też oszacowanie

[math]\displaystyle{ 0 \lt a^2 + n b^2 \lt \left( {\small\frac{m}{2}} \right)^2 + n \cdot \left( {\small\frac{m}{2}} \right)^2 = {\small\frac{(n + 1) m^2}{4}} = {\small\frac{(n + 1) m}{4}} \cdot m }[/math]

Wynika stąd, że istnieje taka liczba [math]\displaystyle{ m_1 }[/math] spełniająca warunek [math]\displaystyle{ 1 \leqslant m_1 \lt {\small\frac{(n + 1) m}{4}} }[/math], że

[math]\displaystyle{ a^2 + n b^2 = m_1 m }[/math]

Mnożąc stronami powyższe równanie i równanie [math]\displaystyle{ x^2 + n y^2 = m p }[/math], otrzymujemy

[math]\displaystyle{ m_1 m^2 p = (a^2 + n b^2) (x^2 + n y^2) }[/math]
[math]\displaystyle{ \;\; = (a x + n b y)^2 + n (a y - b x)^2 }[/math]

(zobacz K54). Zauważmy teraz, że

[math]\displaystyle{ a x + n b y = (x - r m) x + n (y - s m) y }[/math]
[math]\displaystyle{ \quad \; = x^2 - r m x + n y^2 - n s m y }[/math]
[math]\displaystyle{ \quad \; = m (p - r x - n s y) }[/math]
[math]\displaystyle{ \quad \; = m x_1 }[/math]


[math]\displaystyle{ a y - b x = (x - r m) y - (y - s m) x }[/math]
[math]\displaystyle{ \;\;\, = x y - r m y - y x + s m x }[/math]
[math]\displaystyle{ \;\;\, = m (s x - r y) }[/math]
[math]\displaystyle{ \;\;\, = m y_1 }[/math]

Gdzie oznaczyliśmy

[math]\displaystyle{ x_1 = p - r x - n s y }[/math]
[math]\displaystyle{ y_1 = s x - r y }[/math]

Wynika stąd, że

[math]\displaystyle{ m_1 m^2 p = (m x_1)^2 + n (m y_1)^2 }[/math]

Zatem

[math]\displaystyle{ x^2_1 + n y^2_1 = m_1 p }[/math]

gdzie

[math]\displaystyle{ 1 \leqslant m_1 \lt {\small\frac{(n + 1) m}{4}} }[/math]

Czyli powtarzając odpowiednią ilość razy opisaną powyżej procedurę, otrzymamy [math]\displaystyle{ m_k = 1 }[/math].


D. Jednoznaczność rozkładu

Z założenia [math]\displaystyle{ p }[/math] jest liczbą pierwszą, zatem jednoznaczność rozkładu wynika z twierdzenia K53. Co kończy dowód.


Uwaga K57
Udowodnione wyżej twierdzenie można wykorzystać do znalezienia rozkładu liczby pierwszej [math]\displaystyle{ p }[/math] postaci [math]\displaystyle{ 4 k + 1 }[/math] na sumę dwóch kwadratów. Dla dużych liczb pierwszych funkcja działa wolno, bo dużo czasu zajmuje obliczanie silni.

Pokaż kod
SumOfTwoSquares(p) = 
{
local(m, r, s, x, y, x1, y1);
if( p%4 <> 1 || !isprime(p), return("Error") );
x = 1;
for(k = 2, (p-1)/2, x = (x*k)%p); \\ x = { [(p-1)/2]! } % p
x = x - round(x/p)*p;
y = 1;
m = (x^2 + y^2)/p;
while( m > 1,
       r = round(x/m);
       s = round(y/m);
       x1 = p - r*x - s*y;
       y1 = r*y - s*x;
       x = x1;
       y = y1;
       m = (x^2 + y^2)/p;
     );
return([ abs(x), abs(y), p ]);
}


Zadanie K58
Niech liczby pierwsze [math]\displaystyle{ p, q }[/math] będą postaci [math]\displaystyle{ 4 k + 1 }[/math], a liczba pierwsza [math]\displaystyle{ r }[/math] będzie postaci [math]\displaystyle{ 4 k + 3 }[/math]. Pokazać, że

  •   liczby [math]\displaystyle{ r, p r \, }[/math] i [math]\displaystyle{ \, r^2 }[/math] nie rozkładają się na sumę dwóch kwadratów liczb całkowitych dodatnich
  •   liczby [math]\displaystyle{ p }[/math], [math]\displaystyle{ 2 p }[/math], [math]\displaystyle{ p^2 \, }[/math] i [math]\displaystyle{ \, p r^2 }[/math] mają jeden rozkład na sumę dwóch kwadratów liczb całkowitych dodatnich
  •   liczba [math]\displaystyle{ p q }[/math], [math]\displaystyle{ p \neq q }[/math] ma dwa rozkłady na sumę dwóch kwadratów liczb całkowitych dodatnich
Rozwiązanie

Punkt 1.

Ponieważ liczby [math]\displaystyle{ r \, }[/math] i [math]\displaystyle{ \, p r }[/math] są postaci [math]\displaystyle{ 4 k + 3 }[/math], to modulo [math]\displaystyle{ 4 }[/math] mamy

[math]\displaystyle{ r, p r \equiv 3 \!\! \pmod{4} }[/math]

Suma [math]\displaystyle{ x^2 + y^2 }[/math] musi być liczbą nieparzystą, zatem liczby [math]\displaystyle{ x, y }[/math] muszą mieć przeciwną parzystość i modulo [math]\displaystyle{ 4 }[/math] mamy

[math]\displaystyle{ x^2 + y^2 \equiv 1 \!\! \pmod{4} }[/math]

Przypuśćmy, że

[math]\displaystyle{ r^2 = x^2 + y^2 }[/math]

gdzie [math]\displaystyle{ x, y \in \mathbb{Z}_+ }[/math]. Liczby [math]\displaystyle{ x, y }[/math] muszą mieć przeciwną parzystość, zatem [math]\displaystyle{ x \neq y }[/math]. Z twierdzenia J24 wynika, że liczba [math]\displaystyle{ x^2 + y^2 }[/math] musi mieć dzielnik pierwszy postaci [math]\displaystyle{ 4 k + 1 }[/math], co w sposób oczywisty jest niemożliwe.

Punkt 2.

W przypadku liczby pierwszej [math]\displaystyle{ p }[/math] odpowiedzi udziela twierdzenie K56. Niech [math]\displaystyle{ p = x^2 + y^2 }[/math], mamy

[math]\displaystyle{ 2 p = (x + y)^2 + (x - y)^2 }[/math]
[math]\displaystyle{ p^2 = (x^2 - y^2)^2 + (2 x y)^2 }[/math]
[math]\displaystyle{ p r^2 = (r x)^2 + (r y)^2 }[/math]

Punkt 3.

Niech [math]\displaystyle{ p = x^2 + y^2 }[/math] i [math]\displaystyle{ q = a^2 + b^2 }[/math]. Ze wzorów podanych w uwadze K54 mamy

[math]\displaystyle{ p q = (a^2 + b^2) (x^2 + y^2) = (a x + b y)^2 + (a y - b x)^2 }[/math]
[math]\displaystyle{ \:\, = (a x - b y)^2 + (a y + b x)^2 }[/math]

Co należało pokazać.



Twierdzenia o istnieniu liczb pierwszych kwadratowych i niekwadratowych modulo

Zadanie K59
Niech [math]\displaystyle{ s = \pm 1 }[/math]. Zbadać podzielność liczby [math]\displaystyle{ p - s a^2 }[/math]

  • przez [math]\displaystyle{ 4 }[/math], gdy [math]\displaystyle{ p = 4 k + r }[/math], gdzie [math]\displaystyle{ r = 1, 3 }[/math]
  • przez [math]\displaystyle{ 8 }[/math], gdy [math]\displaystyle{ p = 8 k + r }[/math], gdzie [math]\displaystyle{ r = 1, 3, 5, 7 }[/math]
Rozwiązanie

Problem sprowadza się do uzyskania odpowiedzi, kiedy kongruencja

[math]\displaystyle{ p - s a^2 \equiv 0 \pmod{2^n} }[/math]

gdzie [math]\displaystyle{ n = 2, 3 }[/math], ma rozwiązanie. Podstawiając, dostajemy

[math]\displaystyle{ 2^n k + r \equiv s a^2 \pmod{2^n} }[/math]
[math]\displaystyle{ s a^2 \equiv r \pmod{2^n} }[/math]
[math]\displaystyle{ a^2 \equiv s r \pmod{2^n} }[/math]

Z twierdzenia J54 wiemy, że aby powyższa kongruencja miała rozwiązanie, musi być [math]\displaystyle{ 2^n \mid (s r - 1) }[/math], co jest możliwe tylko, gdy

[math]\displaystyle{ s = \begin{cases} \;\;\: 1 & \text{gdy } r = 1 \\ - 1 & \text{gdy } r = 3 \\ \end{cases} }[/math]

dla [math]\displaystyle{ 2^n = 4 }[/math] i gdy

[math]\displaystyle{ s = \begin{cases} \;\;\: 1 & \text{gdy } r = 1 \\ - 1 & \text{gdy } r = 7 \\ \end{cases} }[/math]

dla [math]\displaystyle{ 2^n = 8 }[/math]. Dla [math]\displaystyle{ 2^n = 8 }[/math] i [math]\displaystyle{ r = 3, 5 }[/math] rozpatrywana kongruencja nie ma rozwiązania.


Uwaga K60
Poniżej udowodnimy trzy twierdzenia dotyczące istnienia liczb pierwszych, które są liczbami kwadratowymi modulo [math]\displaystyle{ p }[/math]. Pomysł ujęcia problemu zaczerpnęliśmy z pracy Alexandru Gicy[13]. Zadanie K59 należy traktować jako uzupełnienie do dowodu twierdzenia K61. Z zadania łatwo widzimy, że powiązanie liczby [math]\displaystyle{ s }[/math] z postacią liczby pierwszej [math]\displaystyle{ p }[/math] nie jest przypadkowe.

Zauważmy, że twierdzenia ograniczają się do liczb pierwszych [math]\displaystyle{ p }[/math], ponieważ dla liczb złożonych nieparzystych [math]\displaystyle{ m \gt 0 }[/math] wynik [math]\displaystyle{ \left( {\small\frac{q}{m}} \right)_{\small{\!\! J}} = 1 }[/math] nie oznacza, że liczba pierwsza [math]\displaystyle{ q }[/math] jest liczbą kwadratową modulo [math]\displaystyle{ m }[/math].

W tabeli przedstawiamy najmniejsze liczby pierwsze [math]\displaystyle{ q }[/math] postaci [math]\displaystyle{ 4 k + 1 }[/math] kwadratowe modulo [math]\displaystyle{ p }[/math].


W kolejnej tabeli przedstawiamy najmniejsze liczby pierwsze [math]\displaystyle{ q }[/math] postaci [math]\displaystyle{ 4 k + 3 }[/math] kwadratowe modulo [math]\displaystyle{ p }[/math].


Twierdzenie K61
Jeżeli [math]\displaystyle{ p \geqslant 11 }[/math] jest liczbą pierwszą i [math]\displaystyle{ p \neq 17 }[/math], to istnieje liczba pierwsza [math]\displaystyle{ q \lt p }[/math] postaci [math]\displaystyle{ 4 k + 3 }[/math] kwadratowa modulo [math]\displaystyle{ p }[/math].

Dowód

Niech

[math]\displaystyle{ s = \begin{cases} \;\;\: 1 & \text{gdy } \, p \, \text{ jest postaci } \, 4 k + 1 \\ - 1 & \text{gdy } \, p \, \text{ jest postaci } \, 4 k + 3 \\ \end{cases} }[/math]

Dla ustalonych liczb [math]\displaystyle{ n }[/math] i [math]\displaystyle{ s }[/math] rozważmy liczbę [math]\displaystyle{ u(a) = {\small\frac{p - s a^2}{2^n}} }[/math] taką, że [math]\displaystyle{ 3 \leqslant u (a) \lt p }[/math]. Jeżeli liczba ta jest postaci [math]\displaystyle{ 4 k + 3 }[/math], to ma dzielnik pierwszy [math]\displaystyle{ q \lt p }[/math] postaci [math]\displaystyle{ 4 k + 3 }[/math] (zobacz C21). Zatem możemy napisać [math]\displaystyle{ u (a) = t q }[/math], co oznacza, że

[math]\displaystyle{ p - s a^2 = 2^n u (a) = 2^n t q }[/math]

Czyli

[math]\displaystyle{ p \equiv s a^2 \pmod{q} }[/math]

i otrzymujemy

[math]\displaystyle{ \left( {\small\frac{q}{p}} \right)_{\small{\!\! J}} = s \cdot \left( {\small\frac{p}{q}} \right)_{\small{\!\! J}} = s \cdot \left( {\small\frac{s a^2}{q}} \right)_{\small{\!\! J}} = s \cdot \left( {\small\frac{s}{q}} \right)_{\small{\!\! J}} \cdot \left( {\small\frac{a^2}{q}} \right)_{\small{\!\! J}} =s \cdot \left( {\small\frac{s}{q}} \right)_{\small{\!\! J}} = 1 }[/math]

Zatem liczba [math]\displaystyle{ q \lt p }[/math] jest liczbą kwadratową modulo [math]\displaystyle{ p }[/math].

Pomysł dowodu polega na wskazaniu kilku liczb [math]\displaystyle{ u(a_1), \ldots, u(a_r) }[/math] takich, że

[math]\displaystyle{ 3 \leqslant u(a_1) \lt \ldots \lt u(a_r) \lt p }[/math]

z których jedna musi być postaci [math]\displaystyle{ 4 k + 3 }[/math].

Przypadek pierwszy: [math]\displaystyle{ \boldsymbol{p \equiv 3 \!\! \pmod{8}} }[/math]

Mamy [math]\displaystyle{ s = - 1 }[/math] i przyjmujemy [math]\displaystyle{ n = 2 }[/math]. Rozważmy liczby

[math]\displaystyle{ 3 \leqslant {\small\frac{p + 1}{4}} \lt {\small\frac{p + 9}{4}} \lt p }[/math]

Oszacowania są jednocześnie spełnione dla [math]\displaystyle{ p \geqslant 11 }[/math]. Z założenia [math]\displaystyle{ p = 8 k + 3 }[/math], zatem rozpatrywane liczby to [math]\displaystyle{ \{ 2 k + 1, 2 k + 3 \} }[/math]. Ponieważ są to dwie kolejne liczby nieparzyste, to jedna z nich jest postaci [math]\displaystyle{ 4 k + 3 }[/math].

Przypadek drugi: [math]\displaystyle{ \boldsymbol{p \equiv 5 \!\! \pmod{8}} }[/math]

Mamy [math]\displaystyle{ s = + 1 }[/math] i przyjmujemy [math]\displaystyle{ n = 2 }[/math]. Rozważmy liczby

[math]\displaystyle{ 3 \leqslant {\small\frac{p - 9}{4}} \lt {\small\frac{p - 1}{4}} \lt p }[/math]

Oszacowania są jednocześnie spełnione dla [math]\displaystyle{ p \geqslant 21 }[/math]. Z założenia [math]\displaystyle{ p = 8 k + 5 }[/math], zatem rozpatrywane liczby to [math]\displaystyle{ \{ 2 k - 1, 2 k + 1 \} }[/math]. Ponieważ są to dwie kolejne liczby nieparzyste, to jedna z nich jest postaci [math]\displaystyle{ 4 k + 3 }[/math].

Przypadek trzeci: [math]\displaystyle{ \boldsymbol{p \equiv 7 \!\! \pmod{8}} }[/math]

Mamy [math]\displaystyle{ s = - 1 }[/math] i przyjmujemy [math]\displaystyle{ n = 3 }[/math]. Rozważmy liczby

[math]\displaystyle{ 3 \leqslant {\small\frac{p + 1}{8}} \lt {\small\frac{p + 9}{8}} \lt {\small\frac{p + 25}{8}} \lt {\small\frac{p + 49}{8}} \lt p }[/math]

Oszacowania są jednocześnie spełnione dla [math]\displaystyle{ p \geqslant 23 }[/math]. Z założenia [math]\displaystyle{ p = 8 k + 7 }[/math], zatem rozpatrywane liczby to [math]\displaystyle{ \{ k + 1, k + 2, k + 4, k + 7 \} }[/math]. Jeżeli [math]\displaystyle{ k \equiv r \!\! \pmod{4} }[/math], to modulo [math]\displaystyle{ 4 }[/math] mamy zbiór [math]\displaystyle{ \{ r + 1, r + 2, r, r + 3 \} }[/math]. Zatem jedna z liczb w tym zbiorze jest postaci [math]\displaystyle{ 4 k + 3 }[/math].

Przypadek czwarty: [math]\displaystyle{ \boldsymbol{p \equiv 1 \!\! \pmod{8}} }[/math]

Mamy [math]\displaystyle{ s = + 1 }[/math] i przyjmujemy [math]\displaystyle{ n = 3 }[/math]. Rozważmy liczby

[math]\displaystyle{ 3 \leqslant {\small\frac{p - 49}{8}} \lt {\small\frac{p - 25}{8}} \lt {\small\frac{p - 9}{8}} \lt {\small\frac{p - 1}{8}} \lt p }[/math]

Oszacowania są jednocześnie spełnione dla [math]\displaystyle{ p \geqslant 73 }[/math]. Z założenia [math]\displaystyle{ p = 8 k + 1 }[/math], zatem rozpatrywane liczby to [math]\displaystyle{ \{ k - 6, k - 3, k - 1, k \} }[/math]. Jeżeli [math]\displaystyle{ k \equiv r \!\! \pmod{4} }[/math], to modulo [math]\displaystyle{ 4 }[/math] mamy zbiór [math]\displaystyle{ \{ r + 2, r + 1, r + 3, r \} }[/math]. Zatem jedna z liczb w tym zbiorze jest postaci [math]\displaystyle{ 4 k + 3 }[/math].

Pozostaje sprawdzić twierdzenie dla liczb pierwszych [math]\displaystyle{ p \lt 73 }[/math]. Co kończy dowód.


Twierdzenie K62
Jeżeli [math]\displaystyle{ p \geqslant 11 }[/math] jest liczbą pierwszą postaci [math]\displaystyle{ 8 k + 1 }[/math] lub [math]\displaystyle{ 8 k + 3 }[/math], to istnieje liczba pierwsza [math]\displaystyle{ q \lt p }[/math] postaci [math]\displaystyle{ 4 k + 1 }[/math] kwadratowa modulo [math]\displaystyle{ p }[/math].

Dowód

W przypadku, gdy liczba pierwsza [math]\displaystyle{ p }[/math] jest postaci [math]\displaystyle{ 8 k + 1 }[/math] lub [math]\displaystyle{ 8 k + 3 }[/math], to istnieją takie liczby całkowite dodatnie [math]\displaystyle{ x, y }[/math], że [math]\displaystyle{ p = x^2 + 2 y^2 }[/math] (zobacz K56). Ponieważ z założenia [math]\displaystyle{ p \geqslant 11 }[/math], to musi być [math]\displaystyle{ x \neq y }[/math]. Z twierdzenia J24 wynika, że liczba [math]\displaystyle{ x^2 + y^2 }[/math] ma dzielnik pierwszy [math]\displaystyle{ q }[/math] postaci [math]\displaystyle{ 4 k + 1 }[/math]. Łatwo widzimy, że [math]\displaystyle{ q \leqslant x^2 + y^2 \lt x^2 + 2 y^2 = p }[/math].

Modulo [math]\displaystyle{ q }[/math] możemy napisać

[math]\displaystyle{ x^2 + y^2 \equiv 0 \!\! \pmod{q} }[/math]

Liczba pierwsza [math]\displaystyle{ q \lt p }[/math] nie może dzielić [math]\displaystyle{ y }[/math], bo mielibyśmy [math]\displaystyle{ q \mid x }[/math], czyli [math]\displaystyle{ q \mid p }[/math], co jest niemożliwe. Rozpatrując równość [math]\displaystyle{ p = x^2 + 2 y^2 }[/math] modulo [math]\displaystyle{ q }[/math], dostajemy

[math]\displaystyle{ p \equiv y^2 \!\! \pmod{q} }[/math]

Wynika stąd natychmiast (zobacz J41 p.9)

[math]\displaystyle{ \left( {\small\frac{q}{p}} \right)_{\small{\!\! J}} = \left( {\small\frac{p}{q}} \right)_{\small{\!\! J}} = \left( {\small\frac{y^2}{q}} \right)_{\small{\!\! J}} = 1 }[/math]

Co kończy dowód.


Twierdzenie K63
Jeżeli [math]\displaystyle{ p \geqslant 19 }[/math] jest liczbą pierwszą postaci [math]\displaystyle{ 12 k + 7 }[/math], to istnieje liczba pierwsza [math]\displaystyle{ q \lt p }[/math] postaci [math]\displaystyle{ 4 k + 1 }[/math] kwadratowa modulo [math]\displaystyle{ p }[/math].

Dowód

Z założenia [math]\displaystyle{ p \equiv 1 \!\! \pmod{6} }[/math], zatem istnieją takie liczby [math]\displaystyle{ x, y \in \mathbb{Z}_+ }[/math], że [math]\displaystyle{ p = x^2 + 3 y^2 }[/math] (zobacz K56). Liczby [math]\displaystyle{ x, y }[/math] muszą mieć przeciwną parzystość i być względnie pierwsze. Gdyby liczba [math]\displaystyle{ x }[/math] była nieparzysta, to modulo [math]\displaystyle{ 4 }[/math] mielibyśmy

[math]\displaystyle{ 1 + 3 \cdot 0 \equiv 3 \!\! \pmod{4} }[/math]

Co jest niemożliwe. Zatem [math]\displaystyle{ x = 2 k }[/math], a liczba [math]\displaystyle{ y }[/math] musi być nieparzysta. Otrzymujemy

[math]\displaystyle{ p = 4 k^2 + 3 y^2 = 4 (k^2 + y^2) - y^2 }[/math]

Ponieważ [math]\displaystyle{ p }[/math] jest liczbą pierwszą, to jedynie w przypadku gdy [math]\displaystyle{ k = y = 1 }[/math] możliwa jest sytuacja, że [math]\displaystyle{ k = y }[/math]. Mielibyśmy wtedy [math]\displaystyle{ p = 7 }[/math], ale z założenia musi być [math]\displaystyle{ p \geqslant 19 }[/math]. Wynika stąd, że [math]\displaystyle{ k \neq y }[/math], zatem liczba [math]\displaystyle{ k^2 + y^2 }[/math] ma dzielnik pierwszy [math]\displaystyle{ q }[/math] postaci [math]\displaystyle{ 4 k + 1 }[/math] (zobacz J24). Oczywiście [math]\displaystyle{ q \leqslant k^2 + y^2 \lt 4 k^2 + 3 y^2 = p }[/math].

Modulo [math]\displaystyle{ q }[/math] możemy napisać

[math]\displaystyle{ k^2 + y^2 \equiv 0 \!\! \pmod{q} }[/math]

Liczba pierwsza [math]\displaystyle{ q }[/math] nie może dzielić [math]\displaystyle{ y }[/math], bo mielibyśmy [math]\displaystyle{ q \mid k }[/math], czyli [math]\displaystyle{ q \mid p }[/math], co jest niemożliwe. Rozpatrując równość [math]\displaystyle{ p = 4 (k^2 + y^2) - y^2 }[/math] modulo [math]\displaystyle{ q }[/math], dostajemy

[math]\displaystyle{ p \equiv - y^2 \!\! \pmod{q} }[/math]

Wynika stąd natychmiast (zobacz J41 p.9 i p.6)

[math]\displaystyle{ \left( {\small\frac{q}{p}} \right)_{\small{\!\! J}} = \left( {\small\frac{p}{q}} \right)_{\small{\!\! J}} = \left( {\small\frac{- y^2}{q}} \right)_{\small{\!\! J}} = \left( {\small\frac{- 1}{q}} \right)_{\small{\!\! J}} \cdot \left( {\small\frac{y^2}{q}} \right)_{\small{\!\! J}} = \left( {\small\frac{- 1}{q}} \right)_{\small{\!\! J}} = 1 }[/math]

Co kończy dowód.


Twierdzenia K62 i K63 można uogólnić na wszystkie liczby pierwsze.[13]
Twierdzenie K64*
Jeżeli [math]\displaystyle{ p \geqslant 11 }[/math] jest liczbą pierwszą i [math]\displaystyle{ p \neq 13, 37 }[/math], to istnieje liczba pierwsza [math]\displaystyle{ q \lt p }[/math] postaci [math]\displaystyle{ 4 k + 1 }[/math] kwadratowa modulo [math]\displaystyle{ p }[/math].


Uwaga K65
W tabeli przedstawiamy najmniejsze liczby pierwsze [math]\displaystyle{ q }[/math] postaci [math]\displaystyle{ 4 k + 1 }[/math] niekwadratowe modulo [math]\displaystyle{ m }[/math].


W kolejnej tabeli przedstawiamy najmniejsze liczby pierwsze [math]\displaystyle{ q }[/math] postaci [math]\displaystyle{ 4 k + 3 }[/math] niekwadratowe modulo [math]\displaystyle{ m }[/math].


Twierdzenie K66
Jeżeli [math]\displaystyle{ m \geqslant 7 }[/math] jest liczbą całkowitą postaci [math]\displaystyle{ 4 k + 3 }[/math], to istnieje liczba pierwsza [math]\displaystyle{ q \lt m }[/math] postaci [math]\displaystyle{ 4 k + 3 }[/math] niekwadratowa modulo [math]\displaystyle{ m }[/math].

Dowód

Ponieważ liczba [math]\displaystyle{ m - 4 \geqslant 3 }[/math] jest postaci [math]\displaystyle{ 4 k + 3 }[/math], to ma dzielnik pierwszy [math]\displaystyle{ q \lt m }[/math] postaci [math]\displaystyle{ 4 k + 3 }[/math] (zobacz C21). Czyli [math]\displaystyle{ m - 4 = k q }[/math] i z twierdzenia J41 p.9 dostajemy

[math]\displaystyle{ \left( {\small\frac{q}{m}} \right)_{\small{\!\! J}} = - \left( {\small\frac{m}{q}} \right)_{\small{\!\! J}} = - \left( {\small\frac{k q + 4}{q}} \right)_{\small{\!\! J}} = - \left( {\small\frac{4}{q}} \right)_{\small{\!\! J}} = - 1 }[/math]

Zatem [math]\displaystyle{ q }[/math] jest liczbą niekwadratową modulo [math]\displaystyle{ m }[/math]. Co należało pokazać.


Można też pokazać, że[14]
Twierdzenie K67*
A. Jeżeli [math]\displaystyle{ p \geqslant 13 }[/math] jest liczbą pierwszą, to istnieje liczba pierwsza [math]\displaystyle{ q \lt p }[/math] postaci [math]\displaystyle{ 4 k + 1 }[/math] niekwadratowa modulo [math]\displaystyle{ p }[/math].

B. Jeżeli [math]\displaystyle{ p \geqslant 5 }[/math] jest liczbą pierwszą, to istnieje liczba pierwsza [math]\displaystyle{ q \lt p }[/math] postaci [math]\displaystyle{ 4 k + 3 }[/math] niekwadratowa modulo [math]\displaystyle{ p }[/math].


Zauważmy, że twierdzenie K67 można łatwo uogólnić na liczby całkowite dodatnie.
Twierdzenie K68
A. Jeżeli [math]\displaystyle{ m \geqslant 6 }[/math] jest liczbą całkowitą i [math]\displaystyle{ m \neq 10 , 11 }[/math], to istnieje liczba pierwsza [math]\displaystyle{ q \lt m }[/math] postaci [math]\displaystyle{ 4 k + 1 }[/math] niekwadratowa modulo [math]\displaystyle{ m }[/math].

B. Jeżeli [math]\displaystyle{ m \geqslant 4 }[/math] jest liczbą całkowitą i [math]\displaystyle{ m \neq 6 , 9 }[/math], to istnieje liczba pierwsza [math]\displaystyle{ q \lt m }[/math] postaci [math]\displaystyle{ 4 k + 3 }[/math] niekwadratowa modulo [math]\displaystyle{ m }[/math].

Dowód

Punkt B

Rozważmy liczby [math]\displaystyle{ m }[/math] postaci [math]\displaystyle{ m = 2^a 3^b }[/math].

Jeżeli [math]\displaystyle{ 3 \mid m }[/math], to [math]\displaystyle{ 11 }[/math] jest liczbą niekwadratową modulo [math]\displaystyle{ m }[/math], bo [math]\displaystyle{ \left( {\small\frac{11}{3}} \right)_{\small{\!\! J}} = - 1 }[/math] (zobacz J55 i K41).

Jeżeli [math]\displaystyle{ 3 \nmid m }[/math], ale [math]\displaystyle{ 8 \mid m }[/math], to [math]\displaystyle{ 8 \nmid (11 - 1) }[/math], zatem liczba [math]\displaystyle{ 11 }[/math] jest liczbą niekwadratową modulo [math]\displaystyle{ m }[/math] (zobacz J55).

Jeżeli [math]\displaystyle{ 3 \nmid m }[/math] i [math]\displaystyle{ 8 \nmid m }[/math], ale [math]\displaystyle{ 4 \mid m }[/math], to [math]\displaystyle{ 4 \nmid (11 - 1) }[/math], zatem liczba [math]\displaystyle{ 11 }[/math] jest liczbą niekwadratową modulo [math]\displaystyle{ m }[/math] (zobacz J55).

Jeżeli [math]\displaystyle{ m = 2 }[/math], to łatwo zauważamy, że nie istnieją liczby niekwadratowe modulo [math]\displaystyle{ 2 }[/math].


Zbierając:

  • jeśli liczba [math]\displaystyle{ m \geqslant 12 }[/math] nie ma dzielnika pierwszego [math]\displaystyle{ p \geqslant 5 }[/math], czyli jest postaci [math]\displaystyle{ m = 2^a 3^b }[/math], to liczba pierwsza [math]\displaystyle{ q = 11 }[/math] jest mniejsza od [math]\displaystyle{ m }[/math], jest postaci [math]\displaystyle{ 4 k + 3 }[/math] i jest liczbą niekwadratową modulo [math]\displaystyle{ m }[/math].
  • jeśli liczba [math]\displaystyle{ m \geqslant 12 }[/math] ma dzielnik pierwszy [math]\displaystyle{ p \geqslant 5 }[/math], to istnieje liczba pierwsza [math]\displaystyle{ q \lt p \leqslant m }[/math] taka, że [math]\displaystyle{ q }[/math] jest postaci [math]\displaystyle{ 4 k + 3 }[/math] i jest liczbą niekwadratową modulo [math]\displaystyle{ m }[/math] (zobacz K67 i K41).


Pozostaje wypisać dla liczb [math]\displaystyle{ 3 \leqslant m \leqslant 11 }[/math] najmniejsze liczby niekwadratowe, które są liczbami pierwszymi postaci [math]\displaystyle{ 4 k + 3 }[/math].

for(m = 3, 15, forprimestep(q = 3, 100, 4, if( isQR(q,m) == -1, print(m, "  ", q); break() )))

Widzimy, że twierdzenie jest prawdziwe dla [math]\displaystyle{ m \geqslant 4 }[/math], o ile [math]\displaystyle{ m \neq 6 , 9 }[/math].

Punkt A

Rozważmy liczby [math]\displaystyle{ m }[/math] postaci [math]\displaystyle{ m = 2^a 3^b 5^c 7^d 11^e }[/math].

Jeżeli jedna z liczb [math]\displaystyle{ 3, 5, 7, 11 }[/math] dzieli [math]\displaystyle{ m }[/math], to [math]\displaystyle{ 17 }[/math] jest liczbą niekwadratową modulo [math]\displaystyle{ m }[/math], bo [math]\displaystyle{ \left( {\small\frac{17}{3}} \right)_{\small{\!\! J}} = \left( {\small\frac{17}{5}} \right)_{\small{\!\! J}} = \left( {\small\frac{17}{7}} \right)_{\small{\!\! J}} = \left( {\small\frac{17}{11}} \right)_{\small{\!\! J}} = - 1 }[/math].

Jeżeli żadna z liczb [math]\displaystyle{ 3, 5, 7, 11 }[/math] nie dzieli [math]\displaystyle{ m }[/math], ale [math]\displaystyle{ 8 \mid m }[/math], to [math]\displaystyle{ 8 \nmid (5 - 1) }[/math], zatem liczba [math]\displaystyle{ 5 }[/math] jest liczbą niekwadratową modulo [math]\displaystyle{ m }[/math].

Jeżeli żadna z liczb [math]\displaystyle{ 3, 5, 7, 11 }[/math] nie dzieli [math]\displaystyle{ m }[/math] i [math]\displaystyle{ 8 \nmid m }[/math], ale [math]\displaystyle{ 4 \mid m }[/math], to nie istnieją liczby pierwsze postaci [math]\displaystyle{ 4 k + 1 }[/math] niekwadratowe modulo [math]\displaystyle{ m }[/math], bo [math]\displaystyle{ 4 \mid [(4 k + 1) - 1] }[/math]

Jeżeli [math]\displaystyle{ m = 2 }[/math], to łatwo zauważamy, że nie istnieją liczby niekwadratowe modulo [math]\displaystyle{ 2 }[/math].

Zbierając:

  • jeśli liczba [math]\displaystyle{ m \geqslant 18 }[/math] nie ma dzielnika pierwszego [math]\displaystyle{ p \geqslant 13 }[/math], czyli jest postaci [math]\displaystyle{ m = 2^a 3^b 5^c 7^d 11^e }[/math], to liczba pierwsza [math]\displaystyle{ q = 5 }[/math] lub [math]\displaystyle{ q = 17 }[/math] jest mniejsza od [math]\displaystyle{ m }[/math], jest postaci [math]\displaystyle{ 4 k + 1 }[/math] i jest liczbą niekwadratową modulo [math]\displaystyle{ m }[/math].
  • jeśli liczba [math]\displaystyle{ m \geqslant 18 }[/math] ma dzielnik pierwszy [math]\displaystyle{ p \geqslant 13 }[/math], to istnieje liczba pierwsza [math]\displaystyle{ q \lt p \leqslant m }[/math] taka, że [math]\displaystyle{ q }[/math] jest postaci [math]\displaystyle{ 4 k + 1 }[/math] i jest liczbą niekwadratową modulo [math]\displaystyle{ m }[/math] (zobacz K67 i K41).

Pozostaje wypisać dla liczb [math]\displaystyle{ 3 \leqslant m \leqslant 17 }[/math] najmniejsze liczby niekwadratowe, które są liczbami pierwszymi postaci [math]\displaystyle{ 4 k + 1 }[/math].

for(m = 3, 20, forprimestep(q = 1, 100, 4, if( isQR(q,m) == -1, print(m, "  ", q); break() )))

Widzimy, że twierdzenie jest prawdziwe dla [math]\displaystyle{ m \geqslant 6 }[/math], o ile [math]\displaystyle{ m \neq 10 , 11 }[/math].


Twierdzenie K69
Jeżeli [math]\displaystyle{ p \geqslant 5 }[/math] jest liczbą pierwszą, to istnieje liczba pierwsza nieparzysta [math]\displaystyle{ q \lt p }[/math] taka, że [math]\displaystyle{ \left( {\small\frac{p}{q}} \right)_{\small{\!\! J}} = - 1 . }[/math]

Dowód

Łatwo sprawdzamy, że

[math]\displaystyle{ \left( {\small\frac{5}{3}} \right)_{\small{\!\! J}} = \left( {\small\frac{7}{5}} \right)_{\small{\!\! J}} = \left( {\small\frac{11}{3}} \right)_{\small{\!\! J}} = - 1 }[/math]

(zobacz J41 p.7). Zatem dowód wystarczy przeprowadzić dla [math]\displaystyle{ p \geqslant 13 }[/math].

A. Liczba pierwsza [math]\displaystyle{ \, \boldsymbol{p} \, }[/math] jest postaci [math]\displaystyle{ \, \boldsymbol{4 k + 1} }[/math]

Niech liczba [math]\displaystyle{ q }[/math] będzie najmniejszą nieparzystą liczbą niekwadratową modulo [math]\displaystyle{ p }[/math]. Z twierdzenia K25 wiemy, że dla [math]\displaystyle{ p \geqslant 5 }[/math] liczba [math]\displaystyle{ q }[/math] jest liczbą pierwszą i jest mniejsza od [math]\displaystyle{ p }[/math]. Ponieważ [math]\displaystyle{ p \equiv 1 \!\! \pmod{4} }[/math], to z twierdzenia J41 p.9 otrzymujemy natychmiast

[math]\displaystyle{ \left( {\small\frac{p}{q}} \right)_{\small{\!\! J}} = \left( {\small\frac{q}{p}} \right)_{\small{\!\! J}} = - 1 }[/math]

B. Liczba pierwsza [math]\displaystyle{ \, \boldsymbol{p} \, }[/math] jest postaci [math]\displaystyle{ \, \boldsymbol{4 k + 3} }[/math]

Z twierdzenia K61 wynika, że dla każdej liczby pierwszej [math]\displaystyle{ p \geqslant 11 }[/math] postaci [math]\displaystyle{ 4 k + 3 }[/math] istnieje liczba pierwsza [math]\displaystyle{ q \lt p }[/math] taka, że [math]\displaystyle{ q }[/math] jest postaci [math]\displaystyle{ 4 k + 3 }[/math] i jest liczbą kwadratową modulo [math]\displaystyle{ p }[/math]. Ponieważ [math]\displaystyle{ p \equiv q \equiv 3 \!\! \pmod{4} }[/math], to z twierdzenia J41 p.9 otrzymujemy natychmiast

[math]\displaystyle{ \left( {\small\frac{p}{q}} \right)_{\small{\!\! J}} = - \left( {\small\frac{q}{p}} \right)_{\small{\!\! J}} = - 1 }[/math]

Co kończy dowód.


Zadanie K70
Udowodnić twierdzenie K69 w przypadku, gdy liczba pierwsza [math]\displaystyle{ p \geqslant 19 }[/math] jest postaci [math]\displaystyle{ 4 k + 3 }[/math], nie korzystając z twierdzenia K61.

Rozwiązanie

Z założenia [math]\displaystyle{ p = 4 k + 3 }[/math]. Liczba [math]\displaystyle{ k }[/math] może być postaci [math]\displaystyle{ k = 3 j }[/math], [math]\displaystyle{ k = 3 j + 1 }[/math] i [math]\displaystyle{ k = 3 j + 2 }[/math]. Odpowiada to liczbom pierwszym postaci [math]\displaystyle{ p = 12 j + 3 }[/math], [math]\displaystyle{ p = 12 j + 7 }[/math] i [math]\displaystyle{ p = 12 j + 11 }[/math].

Ponieważ nie ma liczb pierwszych [math]\displaystyle{ p \geqslant 19 }[/math] i będących postaci [math]\displaystyle{ p = 12 j + 3 }[/math], to pozostaje rozważyć przypadki [math]\displaystyle{ p = 12 j + 7 }[/math] i [math]\displaystyle{ p = 12 j + 11 }[/math].

A. Liczba pierwsza [math]\displaystyle{ \, \boldsymbol{p} \, }[/math] jest postaci [math]\displaystyle{ \, \boldsymbol{12 j + 11} }[/math]

Wiemy, że w tym przypadku [math]\displaystyle{ \left( {\small\frac{3}{p}} \right)_{\small{\!\! J}} = + 1 }[/math] (zobacz J46). Mamy

[math]\displaystyle{ \left( {\small\frac{p}{3}} \right)_{\small{\!\! J}} = - \left( {\small\frac{3}{p}} \right)_{\small{\!\! J}} = - 1 }[/math]

Czyli wystarczy przyjąć [math]\displaystyle{ q = 3 }[/math].

B. Liczba pierwsza [math]\displaystyle{ \, \boldsymbol{p} \, }[/math] jest postaci [math]\displaystyle{ \, \boldsymbol{12 j + 7} }[/math]

Wiemy, że w tym przypadku [math]\displaystyle{ \left( {\small\frac{- 1}{p}} \right)_{\small{\!\! J}} = \left( {\small\frac{3}{p}} \right)_{\small{\!\! J}} = - 1 }[/math] (zobacz J41 p.6 oraz J46). Otrzymujemy

[math]\displaystyle{ \left( {\small\frac{p}{p - 12}} \right)_{\small{\!\! J}} = - \left( {\small\frac{p - 12}{p}} \right)_{\small{\!\! J}} = - \left( {\small\frac{- 12}{p}} \right)_{\small{\!\! J}} = \left[ - \left( {\small\frac{- 1}{p}} \right)_{\small{\!\! J}} \right] \cdot \left( {\small\frac{2^2}{p}} \right)_{\small{\!\! J}} \cdot \left( {\small\frac{3}{p}} \right)_{\small{\!\! J}} = \left( {\small\frac{3}{p}} \right)_{\small{\!\! J}} = -1 }[/math]

Ponieważ liczba [math]\displaystyle{ p - 12 \geqslant 7 }[/math] jest nieparzysta, to musi istnieć nieparzysty dzielnik pierwszy [math]\displaystyle{ q \lt p }[/math] liczby [math]\displaystyle{ p - 12 }[/math] taki, że [math]\displaystyle{ \left( {\small\frac{p}{q}} \right)_{\small{\!\! J}} = - 1 }[/math]. W przeciwnym razie z twierdzenia J41 p.4 mielibyśmy [math]\displaystyle{ \left( {\small\frac{p}{p - 12}} \right)_{\small{\!\! J}} = 1 }[/math]. Co kończy dowód.








Przypisy

  1. Dušan Đukić, Quadratic Congruences, International Mathematical Olympiad training materials, (IMOmath.com)
  2. Helmut Hasse, Zur Theorie der abstrakten elliptischen Funktionenkörper. I. Die Struktur der Gruppe der Divisisorenklassen endlicher Ordnung. II. Automorphismen und Meromorphismen. Das Additionstheorem. III. Die Struktur des Meromorphismenrings. Die Riemannsche Vermutung, Journal für die reine und angewandte Mathematik 175 (1936) 55–62, 69–88, 193–207.
  3. Wikipedia, Hasse's theorem on elliptic curves, (Wiki-en), (Wiki-ru)
  4. Yu. I. Manin, On cubic congruences to a prime modulus, Izv. Akad. Nauk SSSR Ser. Mat., 1956, Volume 20, Issue 5, 673–678
  5. Karl K. Norton, Numbers with Small Prime Factors, and the Least kth Power Non-Residue, Memoirs of the American Mathematical Society, No. 106 (1971)
  6. Enrique Treviño, The least k-th power non-residue, Journal of Number Theory, Volume 149 (2015)
  7. Kevin J. McGown and Enrique Treviño, The least quadratic non-residue, Mexican Mathematicians in the World (2021)
  8. Paul Erdős, Számelméleti megjegyzések I, Afar. Lapok, v. 12 (1961)
  9. Paul Pollack, The average least quadratic nonresidue modulo [math]\displaystyle{ m }[/math] and other variations on a theme of Erdős, Journal of Number Theory, Vol. 132 (2012), No. 6, pp. 1185-1202.
  10. Wikipedia, Proof by infinite descent, (Wiki-en)
  11. W. H. Bussey, Fermat's Method of Infinite Descent, The American Mathematical Monthly, Vol. 25, No. 8 (1918)
  12. G. H. Hardy and Edward M. Wright, An Introduction to the Theory of Numbers, New York: Oxford University Press, 5th Edition, zobacz dowód Twierdzenia 366 w sekcji 20.4 na stronie 301.
  13. 13,0 13,1 Alexandru Gica, Quadratic Residues of Certain Types, Rocky Mountain J. Math. 36 (2006), no. 6, 1867-1871.
  14. Paul Pollack, The least prime quadratic nonresidue in a prescribed residue class mod 4, Journal of Number Theory 187 (2018), 403-414