# Question 16620: Keep phi(1), the Prime Case and the Composite Boundary Distinct

[Return to catalogue page 84](https://ocme.evemisslab.com/en/questions/page/84/)

[← Question derivation index](https://ocme.evemisslab.com/en/questions/) · [Original question batch](https://ocme.evemisslab.com/en/practice/batch-20261014-advance-20261101-r06-euler-totient-function-foundations/#q-20261014-advance-20261101-r06-euler-totient-function-0070)

This teaching derivation has second-context AI mathematical and bilingual semantic review, limited to the model and assumptions stated in this question. It has no human review or new Lean proof and does not promote the original question or MKO to Canonical truth.

R0032-16620 · q-20261014-advance-20261101-r06-euler-totient-function-0070



## Original question and givens

Positive integer n=20, with phi computed from the complete 1-through-n representative convention. Give (n,phi_n,classification). Classification is phi_1_equals_1, prime_phi_equals_n_minus_1 or composite_no_prime_shortcut.


- G001 — Positive integer n=20, with phi computed from the complete 1-through-n representative convention. Give (n,phi_n,classification). Classification is phi_1_equals_1, prime_phi_equals_n_minus_1 or composite_no_prime_shortcut.





## Definition and scope

Use the original question domain, assumptions and cited MKO definitions. This item has second-context mathematical and bilingual review, with the model, answer and every arithmetic step independently recomputed from the original parameters; the source question remains a candidate.


- [mko-euler-totient-function](https://ocme.evemisslab.com/en/mko/mko-euler-totient-function/)





## Step-by-step derivation

S001 · impliesBefore

selected modulus representative1:original nonnegative Euclidean inputs=[1, 20]

After

division rows[a,b,q,r] with a=q*b+r and0<=r<b=[[1, 20, 0, 1], [20, 1, 20, 0]];terminal positive gcd=1

Conditions: none

Each row gives a=q*b+r with its remainder bound.The pairs(a,b)and(b,r)have exactly the same common divisors.Repeat until the second entry is0;the last nonzero value is the gcd.This is an exact chain,not a floating-point approximation or an unexplained answer.

Step identifiers and dependenciesRule: totient_Euclidean_division_chain_preserves_common_divisors · Uses: G001





S002 · impliesBefore

selected modulus:original representative k=1 in1..20;verified gcd(k,n)=1

After

coprime indicator=1;include representative=Yes

Conditions: none

Test gcd=1 for every original representative1 through n exactly once.Include only qualifying representatives.For n=1 the representative is1 and gcd(1,1)=1;do not switch to a different0-through-n−1 list.

Step identifiers and dependenciesRule: totient_every_original_representative_unit_gcd_test · Uses: G001, S001





S003 · impliesBefore

selected modulus representative2:original nonnegative Euclidean inputs=[2, 20]

After

division rows[a,b,q,r] with a=q*b+r and0<=r<b=[[2, 20, 0, 2], [20, 2, 10, 0]];terminal positive gcd=2

Conditions: none

Each row gives a=q*b+r with its remainder bound.The pairs(a,b)and(b,r)have exactly the same common divisors.Repeat until the second entry is0;the last nonzero value is the gcd.This is an exact chain,not a floating-point approximation or an unexplained answer.

Step identifiers and dependenciesRule: totient_Euclidean_division_chain_preserves_common_divisors · Uses: G001, S002





S004 · impliesBefore

selected modulus:original representative k=2 in1..20;verified gcd(k,n)=2

After

coprime indicator=0;include representative=No

Conditions: none

Test gcd=1 for every original representative1 through n exactly once.Include only qualifying representatives.For n=1 the representative is1 and gcd(1,1)=1;do not switch to a different0-through-n−1 list.

Step identifiers and dependenciesRule: totient_every_original_representative_unit_gcd_test · Uses: G001, S003





S005 · impliesBefore

selected modulus representative3:original nonnegative Euclidean inputs=[3, 20]

After

division rows[a,b,q,r] with a=q*b+r and0<=r<b=[[3, 20, 0, 3], [20, 3, 6, 2], [3, 2, 1, 1], [2, 1, 2, 0]];terminal positive gcd=1

Conditions: none

Each row gives a=q*b+r with its remainder bound.The pairs(a,b)and(b,r)have exactly the same common divisors.Repeat until the second entry is0;the last nonzero value is the gcd.This is an exact chain,not a floating-point approximation or an unexplained answer.

Step identifiers and dependenciesRule: totient_Euclidean_division_chain_preserves_common_divisors · Uses: G001, S004





S006 · impliesBefore

selected modulus:original representative k=3 in1..20;verified gcd(k,n)=1

After

coprime indicator=1;include representative=Yes

Conditions: none

Test gcd=1 for every original representative1 through n exactly once.Include only qualifying representatives.For n=1 the representative is1 and gcd(1,1)=1;do not switch to a different0-through-n−1 list.

Step identifiers and dependenciesRule: totient_every_original_representative_unit_gcd_test · Uses: G001, S005





S007 · impliesBefore

selected modulus representative4:original nonnegative Euclidean inputs=[4, 20]

After

division rows[a,b,q,r] with a=q*b+r and0<=r<b=[[4, 20, 0, 4], [20, 4, 5, 0]];terminal positive gcd=4

Conditions: none

Each row gives a=q*b+r with its remainder bound.The pairs(a,b)and(b,r)have exactly the same common divisors.Repeat until the second entry is0;the last nonzero value is the gcd.This is an exact chain,not a floating-point approximation or an unexplained answer.

Step identifiers and dependenciesRule: totient_Euclidean_division_chain_preserves_common_divisors · Uses: G001, S006





S008 · impliesBefore

selected modulus:original representative k=4 in1..20;verified gcd(k,n)=4

After

coprime indicator=0;include representative=No

Conditions: none

Test gcd=1 for every original representative1 through n exactly once.Include only qualifying representatives.For n=1 the representative is1 and gcd(1,1)=1;do not switch to a different0-through-n−1 list.

Step identifiers and dependenciesRule: totient_every_original_representative_unit_gcd_test · Uses: G001, S007





S009 · impliesBefore

selected modulus representative5:original nonnegative Euclidean inputs=[5, 20]

After

division rows[a,b,q,r] with a=q*b+r and0<=r<b=[[5, 20, 0, 5], [20, 5, 4, 0]];terminal positive gcd=5

Conditions: none

Each row gives a=q*b+r with its remainder bound.The pairs(a,b)and(b,r)have exactly the same common divisors.Repeat until the second entry is0;the last nonzero value is the gcd.This is an exact chain,not a floating-point approximation or an unexplained answer.

Step identifiers and dependenciesRule: totient_Euclidean_division_chain_preserves_common_divisors · Uses: G001, S008





S010 · impliesBefore

selected modulus:original representative k=5 in1..20;verified gcd(k,n)=5

After

coprime indicator=0;include representative=No

Conditions: none

Test gcd=1 for every original representative1 through n exactly once.Include only qualifying representatives.For n=1 the representative is1 and gcd(1,1)=1;do not switch to a different0-through-n−1 list.

Step identifiers and dependenciesRule: totient_every_original_representative_unit_gcd_test · Uses: G001, S009





S011 · impliesBefore

selected modulus representative6:original nonnegative Euclidean inputs=[6, 20]

After

division rows[a,b,q,r] with a=q*b+r and0<=r<b=[[6, 20, 0, 6], [20, 6, 3, 2], [6, 2, 3, 0]];terminal positive gcd=2

Conditions: none

Each row gives a=q*b+r with its remainder bound.The pairs(a,b)and(b,r)have exactly the same common divisors.Repeat until the second entry is0;the last nonzero value is the gcd.This is an exact chain,not a floating-point approximation or an unexplained answer.

Step identifiers and dependenciesRule: totient_Euclidean_division_chain_preserves_common_divisors · Uses: G001, S010





S012 · impliesBefore

selected modulus:original representative k=6 in1..20;verified gcd(k,n)=2

After

coprime indicator=0;include representative=No

Conditions: none

Test gcd=1 for every original representative1 through n exactly once.Include only qualifying representatives.For n=1 the representative is1 and gcd(1,1)=1;do not switch to a different0-through-n−1 list.

Step identifiers and dependenciesRule: totient_every_original_representative_unit_gcd_test · Uses: G001, S011





S013 · impliesBefore

selected modulus representative7:original nonnegative Euclidean inputs=[7, 20]

After

division rows[a,b,q,r] with a=q*b+r and0<=r<b=[[7, 20, 0, 7], [20, 7, 2, 6], [7, 6, 1, 1], [6, 1, 6, 0]];terminal positive gcd=1

Conditions: none

Each row gives a=q*b+r with its remainder bound.The pairs(a,b)and(b,r)have exactly the same common divisors.Repeat until the second entry is0;the last nonzero value is the gcd.This is an exact chain,not a floating-point approximation or an unexplained answer.

Step identifiers and dependenciesRule: totient_Euclidean_division_chain_preserves_common_divisors · Uses: G001, S012





S014 · impliesBefore

selected modulus:original representative k=7 in1..20;verified gcd(k,n)=1

After

coprime indicator=1;include representative=Yes

Conditions: none

Test gcd=1 for every original representative1 through n exactly once.Include only qualifying representatives.For n=1 the representative is1 and gcd(1,1)=1;do not switch to a different0-through-n−1 list.

Step identifiers and dependenciesRule: totient_every_original_representative_unit_gcd_test · Uses: G001, S013





S015 · impliesBefore

selected modulus representative8:original nonnegative Euclidean inputs=[8, 20]

After

division rows[a,b,q,r] with a=q*b+r and0<=r<b=[[8, 20, 0, 8], [20, 8, 2, 4], [8, 4, 2, 0]];terminal positive gcd=4

Conditions: none

Each row gives a=q*b+r with its remainder bound.The pairs(a,b)and(b,r)have exactly the same common divisors.Repeat until the second entry is0;the last nonzero value is the gcd.This is an exact chain,not a floating-point approximation or an unexplained answer.

Step identifiers and dependenciesRule: totient_Euclidean_division_chain_preserves_common_divisors · Uses: G001, S014





S016 · impliesBefore

selected modulus:original representative k=8 in1..20;verified gcd(k,n)=4

After

coprime indicator=0;include representative=No

Conditions: none

Test gcd=1 for every original representative1 through n exactly once.Include only qualifying representatives.For n=1 the representative is1 and gcd(1,1)=1;do not switch to a different0-through-n−1 list.

Step identifiers and dependenciesRule: totient_every_original_representative_unit_gcd_test · Uses: G001, S015





S017 · impliesBefore

selected modulus representative9:original nonnegative Euclidean inputs=[9, 20]

After

division rows[a,b,q,r] with a=q*b+r and0<=r<b=[[9, 20, 0, 9], [20, 9, 2, 2], [9, 2, 4, 1], [2, 1, 2, 0]];terminal positive gcd=1

Conditions: none

Each row gives a=q*b+r with its remainder bound.The pairs(a,b)and(b,r)have exactly the same common divisors.Repeat until the second entry is0;the last nonzero value is the gcd.This is an exact chain,not a floating-point approximation or an unexplained answer.

Step identifiers and dependenciesRule: totient_Euclidean_division_chain_preserves_common_divisors · Uses: G001, S016





S018 · impliesBefore

selected modulus:original representative k=9 in1..20;verified gcd(k,n)=1

After

coprime indicator=1;include representative=Yes

Conditions: none

Test gcd=1 for every original representative1 through n exactly once.Include only qualifying representatives.For n=1 the representative is1 and gcd(1,1)=1;do not switch to a different0-through-n−1 list.

Step identifiers and dependenciesRule: totient_every_original_representative_unit_gcd_test · Uses: G001, S017





S019 · impliesBefore

selected modulus representative10:original nonnegative Euclidean inputs=[10, 20]

After

division rows[a,b,q,r] with a=q*b+r and0<=r<b=[[10, 20, 0, 10], [20, 10, 2, 0]];terminal positive gcd=10

Conditions: none

Each row gives a=q*b+r with its remainder bound.The pairs(a,b)and(b,r)have exactly the same common divisors.Repeat until the second entry is0;the last nonzero value is the gcd.This is an exact chain,not a floating-point approximation or an unexplained answer.

Step identifiers and dependenciesRule: totient_Euclidean_division_chain_preserves_common_divisors · Uses: G001, S018





S020 · impliesBefore

selected modulus:original representative k=10 in1..20;verified gcd(k,n)=10

After

coprime indicator=0;include representative=No

Conditions: none

Test gcd=1 for every original representative1 through n exactly once.Include only qualifying representatives.For n=1 the representative is1 and gcd(1,1)=1;do not switch to a different0-through-n−1 list.

Step identifiers and dependenciesRule: totient_every_original_representative_unit_gcd_test · Uses: G001, S019





S021 · impliesBefore

selected modulus representative11:original nonnegative Euclidean inputs=[11, 20]

After

division rows[a,b,q,r] with a=q*b+r and0<=r<b=[[11, 20, 0, 11], [20, 11, 1, 9], [11, 9, 1, 2], [9, 2, 4, 1], [2, 1, 2, 0]];terminal positive gcd=1

Conditions: none

Each row gives a=q*b+r with its remainder bound.The pairs(a,b)and(b,r)have exactly the same common divisors.Repeat until the second entry is0;the last nonzero value is the gcd.This is an exact chain,not a floating-point approximation or an unexplained answer.

Step identifiers and dependenciesRule: totient_Euclidean_division_chain_preserves_common_divisors · Uses: G001, S020





S022 · impliesBefore

selected modulus:original representative k=11 in1..20;verified gcd(k,n)=1

After

coprime indicator=1;include representative=Yes

Conditions: none

Test gcd=1 for every original representative1 through n exactly once.Include only qualifying representatives.For n=1 the representative is1 and gcd(1,1)=1;do not switch to a different0-through-n−1 list.

Step identifiers and dependenciesRule: totient_every_original_representative_unit_gcd_test · Uses: G001, S021





S023 · impliesBefore

selected modulus representative12:original nonnegative Euclidean inputs=[12, 20]

After

division rows[a,b,q,r] with a=q*b+r and0<=r<b=[[12, 20, 0, 12], [20, 12, 1, 8], [12, 8, 1, 4], [8, 4, 2, 0]];terminal positive gcd=4

Conditions: none

Each row gives a=q*b+r with its remainder bound.The pairs(a,b)and(b,r)have exactly the same common divisors.Repeat until the second entry is0;the last nonzero value is the gcd.This is an exact chain,not a floating-point approximation or an unexplained answer.

Step identifiers and dependenciesRule: totient_Euclidean_division_chain_preserves_common_divisors · Uses: G001, S022





S024 · impliesBefore

selected modulus:original representative k=12 in1..20;verified gcd(k,n)=4

After

coprime indicator=0;include representative=No

Conditions: none

Test gcd=1 for every original representative1 through n exactly once.Include only qualifying representatives.For n=1 the representative is1 and gcd(1,1)=1;do not switch to a different0-through-n−1 list.

Step identifiers and dependenciesRule: totient_every_original_representative_unit_gcd_test · Uses: G001, S023





S025 · impliesBefore

selected modulus representative13:original nonnegative Euclidean inputs=[13, 20]

After

division rows[a,b,q,r] with a=q*b+r and0<=r<b=[[13, 20, 0, 13], [20, 13, 1, 7], [13, 7, 1, 6], [7, 6, 1, 1], [6, 1, 6, 0]];terminal positive gcd=1

Conditions: none

Each row gives a=q*b+r with its remainder bound.The pairs(a,b)and(b,r)have exactly the same common divisors.Repeat until the second entry is0;the last nonzero value is the gcd.This is an exact chain,not a floating-point approximation or an unexplained answer.

Step identifiers and dependenciesRule: totient_Euclidean_division_chain_preserves_common_divisors · Uses: G001, S024





S026 · impliesBefore

selected modulus:original representative k=13 in1..20;verified gcd(k,n)=1

After

coprime indicator=1;include representative=Yes

Conditions: none

Test gcd=1 for every original representative1 through n exactly once.Include only qualifying representatives.For n=1 the representative is1 and gcd(1,1)=1;do not switch to a different0-through-n−1 list.

Step identifiers and dependenciesRule: totient_every_original_representative_unit_gcd_test · Uses: G001, S025





S027 · impliesBefore

selected modulus representative14:original nonnegative Euclidean inputs=[14, 20]

After

division rows[a,b,q,r] with a=q*b+r and0<=r<b=[[14, 20, 0, 14], [20, 14, 1, 6], [14, 6, 2, 2], [6, 2, 3, 0]];terminal positive gcd=2

Conditions: none

Each row gives a=q*b+r with its remainder bound.The pairs(a,b)and(b,r)have exactly the same common divisors.Repeat until the second entry is0;the last nonzero value is the gcd.This is an exact chain,not a floating-point approximation or an unexplained answer.

Step identifiers and dependenciesRule: totient_Euclidean_division_chain_preserves_common_divisors · Uses: G001, S026





S028 · impliesBefore

selected modulus:original representative k=14 in1..20;verified gcd(k,n)=2

After

coprime indicator=0;include representative=No

Conditions: none

Test gcd=1 for every original representative1 through n exactly once.Include only qualifying representatives.For n=1 the representative is1 and gcd(1,1)=1;do not switch to a different0-through-n−1 list.

Step identifiers and dependenciesRule: totient_every_original_representative_unit_gcd_test · Uses: G001, S027





S029 · impliesBefore

selected modulus representative15:original nonnegative Euclidean inputs=[15, 20]

After

division rows[a,b,q,r] with a=q*b+r and0<=r<b=[[15, 20, 0, 15], [20, 15, 1, 5], [15, 5, 3, 0]];terminal positive gcd=5

Conditions: none

Each row gives a=q*b+r with its remainder bound.The pairs(a,b)and(b,r)have exactly the same common divisors.Repeat until the second entry is0;the last nonzero value is the gcd.This is an exact chain,not a floating-point approximation or an unexplained answer.

Step identifiers and dependenciesRule: totient_Euclidean_division_chain_preserves_common_divisors · Uses: G001, S028





S030 · impliesBefore

selected modulus:original representative k=15 in1..20;verified gcd(k,n)=5

After

coprime indicator=0;include representative=No

Conditions: none

Test gcd=1 for every original representative1 through n exactly once.Include only qualifying representatives.For n=1 the representative is1 and gcd(1,1)=1;do not switch to a different0-through-n−1 list.

Step identifiers and dependenciesRule: totient_every_original_representative_unit_gcd_test · Uses: G001, S029





S031 · impliesBefore

selected modulus representative16:original nonnegative Euclidean inputs=[16, 20]

After

division rows[a,b,q,r] with a=q*b+r and0<=r<b=[[16, 20, 0, 16], [20, 16, 1, 4], [16, 4, 4, 0]];terminal positive gcd=4

Conditions: none

Each row gives a=q*b+r with its remainder bound.The pairs(a,b)and(b,r)have exactly the same common divisors.Repeat until the second entry is0;the last nonzero value is the gcd.This is an exact chain,not a floating-point approximation or an unexplained answer.

Step identifiers and dependenciesRule: totient_Euclidean_division_chain_preserves_common_divisors · Uses: G001, S030





S032 · impliesBefore

selected modulus:original representative k=16 in1..20;verified gcd(k,n)=4

After

coprime indicator=0;include representative=No

Conditions: none

Test gcd=1 for every original representative1 through n exactly once.Include only qualifying representatives.For n=1 the representative is1 and gcd(1,1)=1;do not switch to a different0-through-n−1 list.

Step identifiers and dependenciesRule: totient_every_original_representative_unit_gcd_test · Uses: G001, S031





S033 · impliesBefore

selected modulus representative17:original nonnegative Euclidean inputs=[17, 20]

After

division rows[a,b,q,r] with a=q*b+r and0<=r<b=[[17, 20, 0, 17], [20, 17, 1, 3], [17, 3, 5, 2], [3, 2, 1, 1], [2, 1, 2, 0]];terminal positive gcd=1

Conditions: none

Each row gives a=q*b+r with its remainder bound.The pairs(a,b)and(b,r)have exactly the same common divisors.Repeat until the second entry is0;the last nonzero value is the gcd.This is an exact chain,not a floating-point approximation or an unexplained answer.

Step identifiers and dependenciesRule: totient_Euclidean_division_chain_preserves_common_divisors · Uses: G001, S032





S034 · impliesBefore

selected modulus:original representative k=17 in1..20;verified gcd(k,n)=1

After

coprime indicator=1;include representative=Yes

Conditions: none

Test gcd=1 for every original representative1 through n exactly once.Include only qualifying representatives.For n=1 the representative is1 and gcd(1,1)=1;do not switch to a different0-through-n−1 list.

Step identifiers and dependenciesRule: totient_every_original_representative_unit_gcd_test · Uses: G001, S033





S035 · impliesBefore

selected modulus representative18:original nonnegative Euclidean inputs=[18, 20]

After

division rows[a,b,q,r] with a=q*b+r and0<=r<b=[[18, 20, 0, 18], [20, 18, 1, 2], [18, 2, 9, 0]];terminal positive gcd=2

Conditions: none

Each row gives a=q*b+r with its remainder bound.The pairs(a,b)and(b,r)have exactly the same common divisors.Repeat until the second entry is0;the last nonzero value is the gcd.This is an exact chain,not a floating-point approximation or an unexplained answer.

Step identifiers and dependenciesRule: totient_Euclidean_division_chain_preserves_common_divisors · Uses: G001, S034





S036 · impliesBefore

selected modulus:original representative k=18 in1..20;verified gcd(k,n)=2

After

coprime indicator=0;include representative=No

Conditions: none

Test gcd=1 for every original representative1 through n exactly once.Include only qualifying representatives.For n=1 the representative is1 and gcd(1,1)=1;do not switch to a different0-through-n−1 list.

Step identifiers and dependenciesRule: totient_every_original_representative_unit_gcd_test · Uses: G001, S035





S037 · impliesBefore

selected modulus representative19:original nonnegative Euclidean inputs=[19, 20]

After

division rows[a,b,q,r] with a=q*b+r and0<=r<b=[[19, 20, 0, 19], [20, 19, 1, 1], [19, 1, 19, 0]];terminal positive gcd=1

Conditions: none

Each row gives a=q*b+r with its remainder bound.The pairs(a,b)and(b,r)have exactly the same common divisors.Repeat until the second entry is0;the last nonzero value is the gcd.This is an exact chain,not a floating-point approximation or an unexplained answer.

Step identifiers and dependenciesRule: totient_Euclidean_division_chain_preserves_common_divisors · Uses: G001, S036





S038 · impliesBefore

selected modulus:original representative k=19 in1..20;verified gcd(k,n)=1

After

coprime indicator=1;include representative=Yes

Conditions: none

Test gcd=1 for every original representative1 through n exactly once.Include only qualifying representatives.For n=1 the representative is1 and gcd(1,1)=1;do not switch to a different0-through-n−1 list.

Step identifiers and dependenciesRule: totient_every_original_representative_unit_gcd_test · Uses: G001, S037





S039 · impliesBefore

selected modulus representative20:original nonnegative Euclidean inputs=[20, 20]

After

division rows[a,b,q,r] with a=q*b+r and0<=r<b=[[20, 20, 1, 0]];terminal positive gcd=20

Conditions: none

Each row gives a=q*b+r with its remainder bound.The pairs(a,b)and(b,r)have exactly the same common divisors.Repeat until the second entry is0;the last nonzero value is the gcd.This is an exact chain,not a floating-point approximation or an unexplained answer.

Step identifiers and dependenciesRule: totient_Euclidean_division_chain_preserves_common_divisors · Uses: G001, S038





S040 · impliesBefore

selected modulus:original representative k=20 in1..20;verified gcd(k,n)=20

After

coprime indicator=0;include representative=No

Conditions: none

Test gcd=1 for every original representative1 through n exactly once.Include only qualifying representatives.For n=1 the representative is1 and gcd(1,1)=1;do not switch to a different0-through-n−1 list.

Step identifiers and dependenciesRule: totient_every_original_representative_unit_gcd_test · Uses: G001, S039





S041 · calculationBefore

selected modulus exact coprime indicator count := sum(1, 0, 1, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 0, 1, 0, 1, 0)

After

selected modulus exact coprime indicator count = 8

Conditions: none

Compute exactly from original roles and established intermediates,retaining indices,denominators,signs and operation roles.

Step identifiers and dependenciesRule: exact_rational_arithmetic · Uses: G001, S040





S042 · impliesBefore

selected modulus:complete representative range1..20;all selected coprime representatives=[1, 3, 7, 9, 11, 13, 17, 19]

After

phi(20)=8;representatives_1_through_n

Conditions: none

Sum every indicator for the exact count.This is complete finite counting for the supplied n,not a general formula extrapolated from samples.

Step identifiers and dependenciesRule: totient_complete_finite_count_not_sample_formula · Uses: G001, S041





S043 · impliesBefore

original n=20;exact phi=8;first proper trial divisor up to floor(sqrt(n))=2

After

n=1 handled before primality;classification=composite_no_prime_shortcut

Conditions: none

One is not prime but phi(1)=1.For n≥2,no divisor up to its square root means primality;then every representative1 through n−1 is coprime and phi=n−1.Composite inputs retain the complete count rather than a prime-only shortcut.

Step identifiers and dependenciesRule: totient_one_prime_composite_distinct_cases · Uses: G001, S042









## Reverse checks


- S043 · premise_and_result_audit — Check against the original data and this step's premises; a one-way implication is not an equivalence.
- S042 · premise_and_result_audit — Check against the original data and this step's premises; a one-way implication is not an equivalence.
- S041 · premise_and_result_audit — Recompute selected modulus exact coprime indicator count with exact rational arithmetic, not rounded decimals.
- S040 · premise_and_result_audit — Check against the original data and this step's premises; a one-way implication is not an equivalence.
- S039 · premise_and_result_audit — Check against the original data and this step's premises; a one-way implication is not an equivalence.
- S038 · premise_and_result_audit — Check against the original data and this step's premises; a one-way implication is not an equivalence.
- S037 · premise_and_result_audit — Check against the original data and this step's premises; a one-way implication is not an equivalence.
- S036 · premise_and_result_audit — Check against the original data and this step's premises; a one-way implication is not an equivalence.
- S035 · premise_and_result_audit — Check against the original data and this step's premises; a one-way implication is not an equivalence.
- S034 · premise_and_result_audit — Check against the original data and this step's premises; a one-way implication is not an equivalence.
- S033 · premise_and_result_audit — Check against the original data and this step's premises; a one-way implication is not an equivalence.
- S032 · premise_and_result_audit — Check against the original data and this step's premises; a one-way implication is not an equivalence.
- S031 · premise_and_result_audit — Check against the original data and this step's premises; a one-way implication is not an equivalence.
- S030 · premise_and_result_audit — Check against the original data and this step's premises; a one-way implication is not an equivalence.
- S029 · premise_and_result_audit — Check against the original data and this step's premises; a one-way implication is not an equivalence.
- S028 · premise_and_result_audit — Check against the original data and this step's premises; a one-way implication is not an equivalence.
- S027 · premise_and_result_audit — Check against the original data and this step's premises; a one-way implication is not an equivalence.
- S026 · premise_and_result_audit — Check against the original data and this step's premises; a one-way implication is not an equivalence.
- S025 · premise_and_result_audit — Check against the original data and this step's premises; a one-way implication is not an equivalence.
- S024 · premise_and_result_audit — Check against the original data and this step's premises; a one-way implication is not an equivalence.
- S023 · premise_and_result_audit — Check against the original data and this step's premises; a one-way implication is not an equivalence.
- S022 · premise_and_result_audit — Check against the original data and this step's premises; a one-way implication is not an equivalence.
- S021 · premise_and_result_audit — Check against the original data and this step's premises; a one-way implication is not an equivalence.
- S020 · premise_and_result_audit — Check against the original data and this step's premises; a one-way implication is not an equivalence.
- S019 · premise_and_result_audit — Check against the original data and this step's premises; a one-way implication is not an equivalence.
- S018 · premise_and_result_audit — Check against the original data and this step's premises; a one-way implication is not an equivalence.
- S017 · premise_and_result_audit — Check against the original data and this step's premises; a one-way implication is not an equivalence.
- S016 · premise_and_result_audit — Check against the original data and this step's premises; a one-way implication is not an equivalence.
- S015 · premise_and_result_audit — Check against the original data and this step's premises; a one-way implication is not an equivalence.
- S014 · premise_and_result_audit — Check against the original data and this step's premises; a one-way implication is not an equivalence.
- S013 · premise_and_result_audit — Check against the original data and this step's premises; a one-way implication is not an equivalence.
- S012 · premise_and_result_audit — Check against the original data and this step's premises; a one-way implication is not an equivalence.
- S011 · premise_and_result_audit — Check against the original data and this step's premises; a one-way implication is not an equivalence.
- S010 · premise_and_result_audit — Check against the original data and this step's premises; a one-way implication is not an equivalence.
- S009 · premise_and_result_audit — Check against the original data and this step's premises; a one-way implication is not an equivalence.
- S008 · premise_and_result_audit — Check against the original data and this step's premises; a one-way implication is not an equivalence.
- S007 · premise_and_result_audit — Check against the original data and this step's premises; a one-way implication is not an equivalence.
- S006 · premise_and_result_audit — Check against the original data and this step's premises; a one-way implication is not an equivalence.
- S005 · premise_and_result_audit — Check against the original data and this step's premises; a one-way implication is not an equivalence.
- S004 · premise_and_result_audit — Check against the original data and this step's premises; a one-way implication is not an equivalence.
- S003 · premise_and_result_audit — Check against the original data and this step's premises; a one-way implication is not an equivalence.
- S002 · premise_and_result_audit — Check against the original data and this step's premises; a one-way implication is not an equivalence.
- S001 · premise_and_result_audit — Check against the original data and this step's premises; a one-way implication is not an equivalence.





## Result

(20, 8, composite_no_prime_shortcut)

The full substitutions and premise checks give the original answer; source identity,format and status are unchanged.





## This question review and source binding

Review date: 2026-10-26

Original questions, answers, step expressions, numeric ASTs and historical records are retained. Source candidate labels remain historical and are not overwritten as formal proof.

Source hashes and review receipts
- input commit: 0f7be61e2c22317a4075561dc822c87d881a50db
- original question SHA-256: 60f229fd1ed902c6acee203cc775f3cef9872483e621f4506499b6698e995ef4
- candidate record SHA-256: b8316b716b26298089f4757b10ede64a7eb7e97cd91b4c1043ae22d7124c66bc
- semantic review receipt SHA-256: d64b4e08bda1c25dd393b7c7e4140a8734610a9b84ae47e6f0adcff7f30a0b8e
- question-first witness SHA-256: 790fd6623c04ba52a6ffb0a95cea52b532a02b23bb9453926d2d9f7a825fdec8
- Lean: NOT_RUN · human review: NOT_PERFORMED

[Same-source full JSON](https://ocme.evemisslab.com/data/question-derivations/questions/q-20261014-advance-20261101-r06-euler-totient-function-0070.json)




