Alphabeta Math
Session-authored (Fable 5 assisted)
How statement and proof provenance work

The first chip identifies the source of the statement or construction; the second identifies the source of its local proof or verification.

  • Literature-sourced — the exact statement appears in a cited source; only wording and notation differ.
  • AI-adapted — a semantically identical restatement of literature-sourced material, modulo indexing, notation, and boundary cases adopted by the library.
  • AI-generated — a genuinely novel statement formulated by AI, with no source for the claim itself.

These labels describe origin, not correctness: citations and verification chips remain separate evidence.

13 results · all verified · 0 also independently AI-judged
Every result on this page is machine-checked by a proof checker and read in full and owner-audited; the judge is an additional, independent cross-model AI review of the proofs. The 13 not AI-judged were verified by owner audit (typically over a confirmed judge false positive), not failures.

Cosets, Index and Lagrange's Theorem

1 · Prerequisites

2 · Summary

Published definitions of groups and subgroups, finite cardinality and finite sums, integer divisibility, congruence classes, and the unit group modulo a positive integer provide the algebraic and counting setting. Translating a subgroup by ambient group elements produces left and right cosets; their equality criterion, partition property, and explicit bijections with the subgroup turn the index into a precise finite count when the ambient group is finite.

Lagrange's theorem follows by summing the equal coset sizes. Its divisibility formula controls element orders, powers in finite groups, and prime-order groups; the same count gives the finite index-tower law, while index one characterizes the whole subgroup without a finiteness assumption. Applied to the published unit group modulo nn, the finite-group power identity yields Euler's theorem and Fermat's little theorem.

3 · Logical flowchart

4 · Definitions, theorems and proofs

DefinitionDefinition: Literature-sourcedProof: Not applicableaudited 2026-08-01Open item page →

Left and right cosets gHgH and HgHg of a subgroup

Definition

Let GG be a group and let HGH\le G be a subgroup (Group and abelian group, Subgroup). For gGg\in G, the left coset and right coset of HH represented by gg are

gH:={gh:hH},Hg:={hg:hH}.gH:=\{gh:h\in H\},\qquad Hg:=\{hg:h\in H\}.

The element gg is a representative of these cosets. The notation denotes subsets of GG; it does not assert that either subset is a subgroup.

Remarks

  • Because the identity ee belongs to HH, every representative belongs to its two cosets: g=ge=eggHHgg=ge=eg\in gH\cap Hg.
  • The identity cosets are eH=H=HeeH=H=He. Left and right cosets can differ in a nonabelian group.
LemmaStatement: AI-adaptedProof: AI-adaptedprecheck passaudited 2026-08-01Open item page →

xaHx\in aH iff a1xHa^{-1}x\in H, and aH=bHaH=bH iff a1bHa^{-1}b\in H

Statement

Let HGH\le G and let a,b,xGa,b,x\in G. Then

xaH    a1xH,x\in aH\iff a^{-1}x\in H,

and

aH=bH    a1bH.aH=bH\iff a^{-1}b\in H.

The corresponding right-coset criterion is Ha=HbHa=Hb if and only if ab1Hab^{-1}\in H.

Facts & Assumptions

Given: A group GG, a subgroup HGH\le G, and elements a,b,xGa,b,x\in G.

[F1]

The left coset aHaH is {ah:hH}\{ah:h\in H\}, and the right coset HaHa is {ha:hH}\{ha:h\in H\} (Left and right cosets gHgH and HgHg of a subgroup).

[F2]

A subgroup contains the identity and is closed under products and inverses (Subgroup).

Proof

technique · direct
1.1

If xaHx\in aH, write x=ahx=ah with hHh\in H; then a1x=a1ah=hHa^{-1}x=a^{-1}ah=h\in H. Conversely, if a1xHa^{-1}x\in H, then x=a(a1x)aHx=a(a^{-1}x)\in aH.

F1F2L2
1.2

Suppose a1bHa^{-1}b\in H. If xbHx\in bH, write x=bh=a(a1b)hx=bh=a(a^{-1}b)h; subgroup closure gives (a1b)hH(a^{-1}b)h\in H, so xaHx\in aH. Thus bHaHbH\subseteq aH.

givenF1F2
2.1

If aH=bHaH=bH, then b=bebH=aHb=be\in bH=aH, so step 1.1 gives a1bHa^{-1}b\in H.

step 1.1F1F2
2.2

Since (a1b)1=b1aH(a^{-1}b)^{-1}=b^{-1}a\in H, the same argument with a,ba,b interchanged gives aHbHaH\subseteq bH. Hence aH=bHaH=bH.

step 1.2F2L1
3.1

Finally, Ha=HbHa=Hb is equivalent, after taking inverses elementwise, to a1H=b1Ha^{-1}H=b^{-1}H; by the left-coset criterion this holds exactly when ab1Hab^{-1}\in H.

step 2.1step 1.2step 2.2F2L1
LemmaStatement: Literature-sourcedProof: AI-adaptedprecheck passverified 2026-08-03 (gpt-5.6-sol-codex-subscription)Open item page →

The left cosets of a subgroup partition the group

Statement

For a subgroup HGH\le G, the set of distinct left cosets {gH:gG}\{gH:g\in G\} is a partition of GG: every element belongs to a left coset, every coset is nonempty, and two left cosets are either equal or disjoint.

Facts & Assumptions

Given: A group GG and a subgroup HGH\le G.

[F1]

A relation is an equivalence relation when it is reflexive, symmetric and transitive (Equivalence relation, equivalence class, and the quotient set A/A/{\sim}).

[L1]

The equivalence classes of an equivalence relation on a set are nonempty, cover the set and are pairwise equal or disjoint (The equivalence classes of an equivalence relation are nonempty, cover AA, and are pairwise equal or disjoint; conversely every such cover arises from exactly one equivalence relation).

[L2]

For a,bGa,b\in G, baHb\in aH if and only if a1bHa^{-1}b\in H, and aH=bHaH=bH if and only if a1bHa^{-1}b\in H (xaHx\in aH iff a1xHa^{-1}x\in H, and aH=bHaH=bH iff a1bHa^{-1}b\in H).

[F2]

Because HGH\le G, it contains the identity and is closed under inverses and products (Subgroup).

Proof

technique · direct
1.1

Define aba\sim b when a1bHa^{-1}b\in H. Since the given HH is a subgroup, a1a=eHa^{-1}a=e\in H, so the relation is reflexive.

givenF1F2L2
1.2

If aba\sim b, then a1bHa^{-1}b\in H, so its inverse b1ab^{-1}a belongs to HH and bab\sim a; thus the relation is symmetric.

givenF1F2L2
1.3

If aba\sim b and bcb\sim c, subgroup closure gives a1c=(a1b)(b1c)Ha^{-1}c=(a^{-1}b)(b^{-1}c)\in H, so aca\sim c; thus the relation is transitive.

givenF1F2L2
2.1

By steps 1.1 to 1.3, \sim is an equivalence relation. Its class at aa is {b:a1bH}=aH\{b:a^{-1}b\in H\}=aH by [L2].

step 1.1step 1.2step 1.3F1L2
3.1

The conclusion follows from [L1] applied to these equivalence classes.

step 2.1L1
LemmaStatement: Literature-sourcedProof: AI-adaptedprecheck passverified 2026-08-03 (gpt-5.6-sol-codex-subscription)Open item page →

Every left or right coset of HH is equinumerous with HH

Statement

If HGH\le G and gGg\in G, then the maps

HgH,hgh,H\longrightarrow gH,\quad h\longmapsto gh,

and

HHg,hhg,H\longrightarrow Hg,\quad h\longmapsto hg,

are bijections. Thus every left and right coset of HH is equinumerous with HH.

Facts & Assumptions

Given: A group GG, a subgroup HGH\le G, and gGg\in G.

[F1]

The cosets are gH={gh:hH}gH=\{gh:h\in H\} and Hg={hg:hH}Hg=\{hg:h\in H\} (Left and right cosets gHgH and HgHg of a subgroup).

[F2]

A map is bijective when it is injective and surjective; two sets are equinumerous when a bijection between them exists (Injection, surjection, bijection, Equinumerous sets, ABA \approx B and ABA \preceq B).

Proof

technique · direct
1.1

The map λg:HgH\lambda_g:H\to gH, hghh\mapsto gh, is surjective by the definition of gHgH and injective because gh1=gh2gh_1=gh_2 implies h1=h2h_1=h_2 by left cancellation.

F1L1
1.2

The map ρg:HHg\rho_g:H\to Hg, hhgh\mapsto hg, is surjective by the definition of HgHg and injective by right cancellation.

F1L1
2.1

Both maps are bijections. Thus HH is equinumerous with each coset; moreover ρgλg1:gHHg\rho_g\circ\lambda_g^{-1}:gH\to Hg is a bijection, so HH, gHgH and HgHg are pairwise equinumerous.

step 1.1step 1.2F2
LemmaStatement: AI-adaptedProof: AI-generatedprecheck passaudited 2026-08-01Open item page →

Inversion induces a bijection gHHg1gH\mapsto Hg^{-1} from left cosets to right cosets

Statement

For HGH\le G, the rule

gHHg1gH\longmapsto Hg^{-1}

is a well-defined bijection from the set of left cosets of HH to the set of right cosets of HH. Its inverse sends HgHg to g1Hg^{-1}H.

Facts & Assumptions

Given: A group GG and a subgroup HGH\le G.

[L1]

For left cosets, gH=kHgH=kH if and only if g1kHg^{-1}k\in H; for right cosets, Hg=HkHg=Hk if and only if gk1Hgk^{-1}\in H (xaHx\in aH iff a1xHa^{-1}x\in H, and aH=bHaH=bH iff a1bHa^{-1}b\in H).

[L3]

A subgroup is closed under inverses (Subgroup).

Proof

technique · direct
1.1

If gH=kHgH=kH, then g1kHg^{-1}k\in H by [L1], so (g1k)1=k1gH(g^{-1}k)^{-1}=k^{-1}g\in H by subgroup inverse closure. The right-coset criterion gives Hg1=Hk1Hg^{-1}=Hk^{-1}, so the rule is well defined.

givenL1L2L3
1.2

Define the reverse rule by Hgg1HHg\mapsto g^{-1}H. The same argument, with left and right interchanged, shows that it is well defined.

L1L2
2.1

The two composites send gHgH to (g1)1H=gH(g^{-1})^{-1}H=gH and HgHg to H(g1)1=HgH(g^{-1})^{-1}=Hg. Thus the rules are inverse bijections.

step 1.1step 1.2L2F1
DefinitionDefinition: AI-adaptedProof: Not applicableaudited 2026-08-01Open item page →

The coset set G/HG/H and the index [G:H][G:H] of a subgroup

Definition

Let HGH\le G. The left coset set is

G/H:={gH:gG}.G/H:=\{gH:g\in G\}.

By The left cosets of a subgroup partition the group, its elements are exactly the blocks of the coset partition of GG. The index of HH in GG is

[G:H]:=G/H[G:H]:=|G/H|

when G/HG/H is finite, with finite cardinality as in The cardinality A\lvert A\rvert of a finite set. If G/HG/H is not finite, write [G:H]=[G:H]=\infty. Here \infty is a symbol, not a natural number, and no arithmetic with it is defined.

The right coset set has the same finite or infinite size because Inversion induces a bijection gHHg1gH\mapsto Hg^{-1} from left cosets to right cosets gives an explicit bijection between the two coset sets. Thus the index does not depend on choosing left rather than right cosets.

LemmaStatement: AI-adaptedProof: AI-generatedprecheck passaudited 2026-08-01Open item page →

In a finite group, the subgroup, every coset and the set of cosets are finite

Statement

Let GG be a finite group and HGH\le G. Then HH, every left and right coset of HH, and the coset set G/HG/H are finite. Moreover every coset has cardinality H|H|, and [G:H]=G/H[G:H]=|G/H| is a natural number.

Facts & Assumptions

Given: A finite group GG and a subgroup HGH\le G.

[L3]

Every left or right coset of HH is equinumerous with HH (Every left or right coset of HH is equinumerous with HH).

[F1]

A bijection transports finiteness and finite cardinality (The cardinality A\lvert A\rvert of a finite set).

[F2]

The coset set is G/H={gH:gG}G/H=\{gH:g\in G\}, and its finite cardinality is the index (The coset set G/HG/H and the index [G:H][G:H] of a subgroup, The left cosets of a subgroup partition the group).

Proof

technique · direct
1.1

Since HGH\subseteq G and GG is finite, HH is finite by [L1].

givenL1
1.2

Every coset is a subset of GG, so G/HP(G)G/H\subseteq\mathcal P(G). The power set is finite by [L2], hence G/HG/H is finite by [L1].

F2L1L2
2.1

Every coset is equinumerous with HH, so every coset is finite and has cardinality H|H|.

step 1.1L3F1
3.1

Therefore [G:H]=G/HN[G:H]=|G/H|\in\mathbb N, and the finiteness and cardinality assertions are steps 1.1, 1.2 and 2.1.

step 1.1step 2.1step 1.2F2
TheoremStatement: AI-adaptedProof: AI-adaptedprecheck passverified 2026-08-03 (gpt-5.6-sol-codex-subscription)Open item page →

Lagrange's theorem: G=[G:H]H|G|=[G:H]|H| for every subgroup HH of a finite group GG

Statement

Let GG be a finite group and HGH\le G. Then

G=[G:H]H.|G|=[G:H]\,|H|.

Consequently, under the canonical embedding ι:NZ\iota:\mathbb N\to\mathbb Z, ι(H)\iota(|H|) divides ι(G)\iota(|G|).

Facts & Assumptions

Given: A finite group GG and a subgroup HGH\le G.

[L1]

The distinct left cosets of HH partition GG (The left cosets of a subgroup partition the group).

[L2]

The subgroup, every coset, and G/HG/H are finite; every coset has cardinality H|H| and G/H=[G:H]|G/H|=[G:H] (In a finite group, the subgroup, every coset and the set of cosets are finite, Every left or right coset of HH is equinumerous with HH, The coset set G/HG/H and the index [G:H][G:H] of a subgroup).

[L4]

The embedding ι\iota preserves multiplication, and dad\mid a in Z\mathbb Z means a=dqa=dq for some integer qq (The naturals embed in the integers, Divisibility in Z\mathbb{Z}: dad \mid a when a=dqa = dq for some integer qq).

Proof

technique · direct
1.1

Apply the finite partition sum to the coset partition: G=CG/HC|G|=\sum_{C\in G/H}|C|.

L1L2L3F1
2.1

Every summand equals H|H|, and there are G/H=[G:H]|G/H|=[G:H] summands, so the constant-sum clause gives G=[G:H]H|G|=[G:H]|H|.

step 1.1L2L3
3.1

Applying ι\iota gives ι(G)=ι(H)ι([G:H])\iota(|G|)=\iota(|H|)\iota([G:H]), so ι(H)ι(G)\iota(|H|)\mid\iota(|G|).

step 2.1L4
CorollaryStatement: AI-adaptedProof: AI-adaptedprecheck passaudited 2026-08-01Open item page →

The order of every element of a finite group divides the order of the group

Statement

If GG is finite and gGg\in G, then gg has finite order and

ι(ord(g))ι(G)\iota(\operatorname{ord}(g))\mid\iota(|G|)

in Z\mathbb Z, where ι:NZ\iota:\mathbb N\to\mathbb Z is the canonical embedding.

Facts & Assumptions

Given: A finite group GG and an element gGg\in G.

[L2]

Lagrange's theorem gives G=[G:H]H|G|=[G:H]|H| for every subgroup HH of a finite group and consequently ι(H)ι(G)\iota(|H|)\mid\iota(|G|) (Lagrange's theorem: G=[G:H]H|G|=[G:H]|H| for every subgroup HH of a finite group GG, Divisibility in Z\mathbb{Z}: dad \mid a when a=dqa = dq for some integer qq, The naturals embed in the integers).

Proof

technique · direct
1.1

The element gg has finite order, and gG\langle g\rangle\le G has order g=ord(g)|\langle g\rangle|=\operatorname{ord}(g).

F1L1
2.1

Apply [L2] to H=gH=\langle g\rangle to obtain ι(ord(g))ι(G)\iota(\operatorname{ord}(g))\mid\iota(|G|).

step 1.1L2
CorollaryStatement: AI-adaptedProof: AI-adaptedprecheck passaudited 2026-08-01Open item page →

gG=eg^{|G|}=e for every element gg of a finite group GG

Statement

Let GG be a finite group with identity ee. Then

gG=eg^{|G|}=e

for every gGg\in G.

Facts & Assumptions

Proof

technique · direct
1.1

By [L1], ord(g)\operatorname{ord}(g) divides G|G| after both naturals are embedded in Z\mathbb Z.

L1
2.1

Applying [L2] with k=ι(G)k=\iota(|G|) gives gG=eg^{|G|}=e.

step 1.1L2
CorollaryStatement: AI-adaptedProof: AI-adaptedprecheck passverified 2026-08-03 (gpt-5.6-sol-codex-subscription)Open item page →

A finite group of prime order is cyclic and every nonidentity element generates it

Statement

Let GG be a finite group such that the positive integer ι(G)\iota(|G|) is prime. Then every geg\ne e has order G|G|, satisfies g=G\langle g\rangle=G, and hence generates GG. In particular, GG is cyclic.

Facts & Assumptions

Given: A finite group GG with identity ee, with ι(G)\iota(|G|) prime, and an element gGg\in G with geg\ne e.

[F1]

A prime integer pp satisfies p>1p>1, and every positive divisor of pp is 11 or pp (Prime and composite integers: pp is prime when p>1p > 1 and its only positive divisors are 11 and pp).

[L1]

The natural ord(g)\operatorname{ord}(g) is positive, equals 11 exactly when g=eg=e, and its image in Z\mathbb Z divides ι(G)\iota(|G|); the embedding ι:NZ\iota:\mathbb N\to\mathbb Z is injective and preserves order (The order G|G| of a finite group and the order ord(g)\operatorname{ord}(g) of an element, with ord(g)=\operatorname{ord}(g) = \infty when no positive power of gg is the identity, The order of every element of a finite group divides the order of the group, The naturals embed in the integers).

[F2]

If a finite set GG contains ee and G1|G|\ne1, then some element of GG differs from ee: otherwise G={e}G=\{e\}, whose cardinality is 11 (The cardinality A\lvert A\rvert of a finite set).

Proof

technique · direct
1.1

The positive integer ι(ord(g))\iota(\operatorname{ord}(g)) divides the prime ι(G)\iota(|G|), so it is 11 or ι(G)\iota(|G|). It is not 11 because geg\ne e, hence ord(g)=G\operatorname{ord}(g)=|G| by injectivity of ι\iota.

givenF1L1
2.1

The subgroup gG\langle g\rangle\subseteq G has cardinality ord(g)=G\operatorname{ord}(g)=|G|, so g=G\langle g\rangle=G.

step 1.1L2L3
3.1

Thus every nonidentity element generates GG. Since ι(G)>1=ι(1)\iota(|G|)>1=\iota(1) by [F1], these two integers differ; injectivity in [L1] gives G1|G|\ne1, and [F2] supplies a nonidentity element. Consequently GG is cyclic.

step 2.1F1F2L1
CorollaryStatement: AI-adaptedProof: AI-generatedprecheck passverified 2026-08-03 (gpt-5.6-sol-codex-subscription)Open item page →

For KHGK\le H\le G with GG finite, [G:K]=[G:H][H:K][G:K]=[G:H][H:K]

Statement

If KHGK\le H\le G and GG is finite, then all three indices are finite and

[G:K]=[G:H][H:K].[G:K]=[G:H][H:K].

Facts & Assumptions

Given: A finite group GG and subgroups KHGK\le H\le G.

[F1]

Every subgroup contains the identity; hence its underlying set is nonempty. Also, if KHGK\le H\le G, then KGK\le G: one has KHGK\subseteq H\subseteq G, and the identity, product, and inverse conditions for KK are the same inherited operations in HH and GG (Subgroup).

[L2]

Natural multiplication is associative, and xz=yzxz=yz with z0z\ne0 implies x=yx=y (Multiplication is associative, Cancellation for multiplication by a nonzero factor).

Proof

technique · direct
1.1

Since HGH\le G, its underlying set is a subset of the finite set GG, so HH is finite by [F2]. Also KGK\le G by the subgroup-transitivity derivation in [F1]. Applying [L1] to KHK\le H, HGH\le G and this KGK\le G gives H=[H:K]K|H|=[H:K]|K|, G=[G:H]H|G|=[G:H]|H|, and G=[G:K]K|G|=[G:K]|K|.

givenF1F2L1
2.1

Substituting the first equality into the second and comparing with the third gives [G:K]K=([G:H][H:K])K[G:K]|K|=([G:H][H:K])|K|.

step 1.1L2
3.1

Since KK contains the identity, K0|K|\ne0. Cancellation in N\mathbb N therefore yields [G:K]=[G:H][H:K][G:K]=[G:H][H:K].

step 2.1F1L2
CorollaryStatement: AI-adaptedProof: AI-generatedprecheck passverified 2026-08-03 (gpt-5.6-sol-codex-subscription)Open item page →

[G:H]=1[G:H]=1 if and only if H=GH=G

Statement

For any subgroup HGH\le G, finite or infinite,

[G:H]=1    H=G.[G:H]=1\iff H=G.

Facts & Assumptions

Given: A group GG and a subgroup HGH\le G.

[F1]

The coset set is G/H={gH:gG}G/H=\{gH:g\in G\}. Its index is its finite cardinality when the coset set is finite and is the non-natural symbol \infty otherwise; hence [G:H]=1[G:H]=1 says that G/HG/H is finite of cardinality 11 (The coset set G/HG/H and the index [G:H][G:H] of a subgroup, Left and right cosets gHgH and HgHg of a subgroup).

[F2]

A finite set has cardinality 11 exactly when it is a singleton: a bijection to 1={0}1=\{0\} has one fibre and hence one element, while the unique map from a singleton to 11 is a bijection (The cardinality A\lvert A\rvert of a finite set).

Proof

technique · direct
1.1

If H=GH=G, then every coset gHgH equals GG, so G/H={G}G/H=\{G\} and [G:H]=1[G:H]=1.

givenF1F2
1.2

Conversely, if [G:H]=1[G:H]=1, then G/HG/H is the singleton containing H=eHH=eH. Thus gH=HgH=H for every gGg\in G, and [L1] gives gHg\in H. Hence GHG\subseteq H.

givenF1F2L1
2.1

Since always HGH\subseteq G, step 1.2 gives H=GH=G; together with step 1.1 this proves the equivalence.

step 1.1step 1.2
TheoremStatement: Literature-sourcedProof: AI-adaptedprecheck passverified 2026-08-03 (gpt-5.6-sol-codex-subscription)Open item page →

Euler's theorem: if n1n\ge1 and gcd(a,n)=1\gcd(a,n)=1, then aφ(n)1(modn)a^{\varphi(n)}\equiv1\pmod n

Statement

Let n1n\ge1 be an integer and let aZa\in\mathbb Z. If gcd(a,n)=1\gcd(a,n)=1, then

aφ(n)1(modn).a^{\varphi(n)}\equiv1\pmod n.

Facts & Assumptions

Given: A positive integer nn and an integer aa with gcd(a,n)=1\gcd(a,n)=1.

[F1]

The unit group (Z/n)×(\mathbb Z/n)^\times is finite of order φ(n)\varphi(n) and has identity [1]n[1]_n (The unit group (Z/n)×(\mathbb{Z}/n)^\times and Euler's totient φ(n)=(Z/n)×\varphi(n)=\lvert(\mathbb{Z}/n)^\times\rvert for n1n\ge1).

[L1]

The class [a]n[a]_n is a unit if and only if gcd(a,n)=1\gcd(a,n)=1 (For n1n\ge1, [a]n[a]_n is a unit if and only if gcd(a,n)=1\gcd(a,n)=1).

Proof

technique · direct
1.1

By [L1], [a]n(Z/n)×[a]_n\in(\mathbb Z/n)^\times. Applying [L2] in that group gives [a]nφ(n)=[1]n[a]_n^{\varphi(n)}=[1]_n.

givenF1L1L2
2.1

By [F2], the equality is [aφ(n)]n=[1]n[a^{\varphi(n)}]_n=[1]_n, which is equivalent to aφ(n)1(modn)a^{\varphi(n)}\equiv1\pmod n.

step 1.1F2
TheoremStatement: Literature-sourcedProof: AI-adaptedprecheck passaudited 2026-08-01Open item page →

Fermat's little theorem: for prime pp, pap\nmid a implies ap11(modp)a^{p-1}\equiv1\pmod p, and always apa(modp)a^p\equiv a\pmod p

Statement

Let pp be a prime integer and aZa\in\mathbb Z. If pap\nmid a, then

ap11(modp).a^{p-1}\equiv1\pmod p.

For every integer aa, without the nondivisibility hypothesis,

apa(modp).a^p\equiv a\pmod p.

Facts & Assumptions

Given: A prime integer pp and an integer aa.

[L1]

Euler's theorem gives aφ(p)1(modp)a^{\varphi(p)}\equiv1\pmod p when gcd(a,p)=1\gcd(a,p)=1, and φ(p)=p1\varphi(p)=p-1 for prime pp (Euler's theorem: if n1n\ge1 and gcd(a,n)=1\gcd(a,n)=1, then aφ(n)1(modn)a^{\varphi(n)}\equiv1\pmod n, φ(1)=1\varphi(1)=1, and φ(p)=p1\varphi(p)=p-1 for every prime pp).

Proof

technique · cases
1.1

Assume first that pap\nmid a. Then gcd(a,p)=1\gcd(a,p)=1, so [L1] gives ap11(modp)a^{p-1}\equiv1\pmod p. Multiplying by aa and using [L2] gives apa(modp)a^p\equiv a\pmod p.

assume-case nondivF1L1F2L2
1.2

Assume instead that pap\mid a. Then a0(modp)a\equiv0\pmod p, so repeated multiplication gives ap0p=0a(modp)a^p\equiv0^p=0\equiv a\pmod p.

assume-case divF1F2
2.1

The first assertion is contained in step 1.1, and the two exhaustive cases pap\nmid a and pap\mid a give the unconditional congruence.

step 1.1step 1.2cases-exhaustive

5 · Examples, counterexamples and false statements

None yet.

Sources