Step-by-step derivation
S001 · implies
Before
selected modulus representative1:original nonnegative Euclidean inputs=[1, 21]
After
division rows[a,b,q,r] with a=q*b+r and0<=r<b=[[1, 21, 0, 1], [21, 1, 21, 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 dependencies
Rule: totient_Euclidean_division_chain_preserves_common_divisors · Uses: G001
S002 · implies
Before
selected modulus:original representative k=1 in1..21;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 dependencies
Rule: totient_every_original_representative_unit_gcd_test · Uses: G001, S001
S003 · implies
Before
selected modulus representative2:original nonnegative Euclidean inputs=[2, 21]
After
division rows[a,b,q,r] with a=q*b+r and0<=r<b=[[2, 21, 0, 2], [21, 2, 10, 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 dependencies
Rule: totient_Euclidean_division_chain_preserves_common_divisors · Uses: G001, S002
S004 · implies
Before
selected modulus:original representative k=2 in1..21;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 dependencies
Rule: totient_every_original_representative_unit_gcd_test · Uses: G001, S003
S005 · implies
Before
selected modulus representative3:original nonnegative Euclidean inputs=[3, 21]
After
division rows[a,b,q,r] with a=q*b+r and0<=r<b=[[3, 21, 0, 3], [21, 3, 7, 0]];terminal positive gcd=3
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 dependencies
Rule: totient_Euclidean_division_chain_preserves_common_divisors · Uses: G001, S004
S006 · implies
Before
selected modulus:original representative k=3 in1..21;verified gcd(k,n)=3
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 dependencies
Rule: totient_every_original_representative_unit_gcd_test · Uses: G001, S005
S007 · implies
Before
selected modulus representative4:original nonnegative Euclidean inputs=[4, 21]
After
division rows[a,b,q,r] with a=q*b+r and0<=r<b=[[4, 21, 0, 4], [21, 4, 5, 1], [4, 1, 4, 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 dependencies
Rule: totient_Euclidean_division_chain_preserves_common_divisors · Uses: G001, S006
S008 · implies
Before
selected modulus:original representative k=4 in1..21;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 dependencies
Rule: totient_every_original_representative_unit_gcd_test · Uses: G001, S007
S009 · implies
Before
selected modulus representative5:original nonnegative Euclidean inputs=[5, 21]
After
division rows[a,b,q,r] with a=q*b+r and0<=r<b=[[5, 21, 0, 5], [21, 5, 4, 1], [5, 1, 5, 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 dependencies
Rule: totient_Euclidean_division_chain_preserves_common_divisors · Uses: G001, S008
S010 · implies
Before
selected modulus:original representative k=5 in1..21;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 dependencies
Rule: totient_every_original_representative_unit_gcd_test · Uses: G001, S009
S011 · implies
Before
selected modulus representative6:original nonnegative Euclidean inputs=[6, 21]
After
division rows[a,b,q,r] with a=q*b+r and0<=r<b=[[6, 21, 0, 6], [21, 6, 3, 3], [6, 3, 2, 0]];terminal positive gcd=3
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 dependencies
Rule: totient_Euclidean_division_chain_preserves_common_divisors · Uses: G001, S010
S012 · implies
Before
selected modulus:original representative k=6 in1..21;verified gcd(k,n)=3
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 dependencies
Rule: totient_every_original_representative_unit_gcd_test · Uses: G001, S011
S013 · implies
Before
selected modulus representative7:original nonnegative Euclidean inputs=[7, 21]
After
division rows[a,b,q,r] with a=q*b+r and0<=r<b=[[7, 21, 0, 7], [21, 7, 3, 0]];terminal positive gcd=7
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 dependencies
Rule: totient_Euclidean_division_chain_preserves_common_divisors · Uses: G001, S012
S014 · implies
Before
selected modulus:original representative k=7 in1..21;verified gcd(k,n)=7
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 dependencies
Rule: totient_every_original_representative_unit_gcd_test · Uses: G001, S013
S015 · implies
Before
selected modulus representative8:original nonnegative Euclidean inputs=[8, 21]
After
division rows[a,b,q,r] with a=q*b+r and0<=r<b=[[8, 21, 0, 8], [21, 8, 2, 5], [8, 5, 1, 3], [5, 3, 1, 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 dependencies
Rule: totient_Euclidean_division_chain_preserves_common_divisors · Uses: G001, S014
S016 · implies
Before
selected modulus:original representative k=8 in1..21;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 dependencies
Rule: totient_every_original_representative_unit_gcd_test · Uses: G001, S015
S017 · implies
Before
selected modulus representative9:original nonnegative Euclidean inputs=[9, 21]
After
division rows[a,b,q,r] with a=q*b+r and0<=r<b=[[9, 21, 0, 9], [21, 9, 2, 3], [9, 3, 3, 0]];terminal positive gcd=3
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 dependencies
Rule: totient_Euclidean_division_chain_preserves_common_divisors · Uses: G001, S016
S018 · implies
Before
selected modulus:original representative k=9 in1..21;verified gcd(k,n)=3
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 dependencies
Rule: totient_every_original_representative_unit_gcd_test · Uses: G001, S017
S019 · implies
Before
selected modulus representative10:original nonnegative Euclidean inputs=[10, 21]
After
division rows[a,b,q,r] with a=q*b+r and0<=r<b=[[10, 21, 0, 10], [21, 10, 2, 1], [10, 1, 10, 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 dependencies
Rule: totient_Euclidean_division_chain_preserves_common_divisors · Uses: G001, S018
S020 · implies
Before
selected modulus:original representative k=10 in1..21;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 dependencies
Rule: totient_every_original_representative_unit_gcd_test · Uses: G001, S019
S021 · implies
Before
selected modulus representative11:original nonnegative Euclidean inputs=[11, 21]
After
division rows[a,b,q,r] with a=q*b+r and0<=r<b=[[11, 21, 0, 11], [21, 11, 1, 10], [11, 10, 1, 1], [10, 1, 10, 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 dependencies
Rule: totient_Euclidean_division_chain_preserves_common_divisors · Uses: G001, S020
S022 · implies
Before
selected modulus:original representative k=11 in1..21;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 dependencies
Rule: totient_every_original_representative_unit_gcd_test · Uses: G001, S021
S023 · implies
Before
selected modulus representative12:original nonnegative Euclidean inputs=[12, 21]
After
division rows[a,b,q,r] with a=q*b+r and0<=r<b=[[12, 21, 0, 12], [21, 12, 1, 9], [12, 9, 1, 3], [9, 3, 3, 0]];terminal positive gcd=3
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 dependencies
Rule: totient_Euclidean_division_chain_preserves_common_divisors · Uses: G001, S022
S024 · implies
Before
selected modulus:original representative k=12 in1..21;verified gcd(k,n)=3
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 dependencies
Rule: totient_every_original_representative_unit_gcd_test · Uses: G001, S023
S025 · implies
Before
selected modulus representative13:original nonnegative Euclidean inputs=[13, 21]
After
division rows[a,b,q,r] with a=q*b+r and0<=r<b=[[13, 21, 0, 13], [21, 13, 1, 8], [13, 8, 1, 5], [8, 5, 1, 3], [5, 3, 1, 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 dependencies
Rule: totient_Euclidean_division_chain_preserves_common_divisors · Uses: G001, S024
S026 · implies
Before
selected modulus:original representative k=13 in1..21;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 dependencies
Rule: totient_every_original_representative_unit_gcd_test · Uses: G001, S025
S027 · implies
Before
selected modulus representative14:original nonnegative Euclidean inputs=[14, 21]
After
division rows[a,b,q,r] with a=q*b+r and0<=r<b=[[14, 21, 0, 14], [21, 14, 1, 7], [14, 7, 2, 0]];terminal positive gcd=7
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 dependencies
Rule: totient_Euclidean_division_chain_preserves_common_divisors · Uses: G001, S026
S028 · implies
Before
selected modulus:original representative k=14 in1..21;verified gcd(k,n)=7
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 dependencies
Rule: totient_every_original_representative_unit_gcd_test · Uses: G001, S027
S029 · implies
Before
selected modulus representative15:original nonnegative Euclidean inputs=[15, 21]
After
division rows[a,b,q,r] with a=q*b+r and0<=r<b=[[15, 21, 0, 15], [21, 15, 1, 6], [15, 6, 2, 3], [6, 3, 2, 0]];terminal positive gcd=3
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 dependencies
Rule: totient_Euclidean_division_chain_preserves_common_divisors · Uses: G001, S028
S030 · implies
Before
selected modulus:original representative k=15 in1..21;verified gcd(k,n)=3
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 dependencies
Rule: totient_every_original_representative_unit_gcd_test · Uses: G001, S029
S031 · implies
Before
selected modulus representative16:original nonnegative Euclidean inputs=[16, 21]
After
division rows[a,b,q,r] with a=q*b+r and0<=r<b=[[16, 21, 0, 16], [21, 16, 1, 5], [16, 5, 3, 1], [5, 1, 5, 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 dependencies
Rule: totient_Euclidean_division_chain_preserves_common_divisors · Uses: G001, S030
S032 · implies
Before
selected modulus:original representative k=16 in1..21;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 dependencies
Rule: totient_every_original_representative_unit_gcd_test · Uses: G001, S031
S033 · implies
Before
selected modulus representative17:original nonnegative Euclidean inputs=[17, 21]
After
division rows[a,b,q,r] with a=q*b+r and0<=r<b=[[17, 21, 0, 17], [21, 17, 1, 4], [17, 4, 4, 1], [4, 1, 4, 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 dependencies
Rule: totient_Euclidean_division_chain_preserves_common_divisors · Uses: G001, S032
S034 · implies
Before
selected modulus:original representative k=17 in1..21;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 dependencies
Rule: totient_every_original_representative_unit_gcd_test · Uses: G001, S033
S035 · implies
Before
selected modulus representative18:original nonnegative Euclidean inputs=[18, 21]
After
division rows[a,b,q,r] with a=q*b+r and0<=r<b=[[18, 21, 0, 18], [21, 18, 1, 3], [18, 3, 6, 0]];terminal positive gcd=3
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 dependencies
Rule: totient_Euclidean_division_chain_preserves_common_divisors · Uses: G001, S034
S036 · implies
Before
selected modulus:original representative k=18 in1..21;verified gcd(k,n)=3
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 dependencies
Rule: totient_every_original_representative_unit_gcd_test · Uses: G001, S035
S037 · implies
Before
selected modulus representative19:original nonnegative Euclidean inputs=[19, 21]
After
division rows[a,b,q,r] with a=q*b+r and0<=r<b=[[19, 21, 0, 19], [21, 19, 1, 2], [19, 2, 9, 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 dependencies
Rule: totient_Euclidean_division_chain_preserves_common_divisors · Uses: G001, S036
S038 · implies
Before
selected modulus:original representative k=19 in1..21;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 dependencies
Rule: totient_every_original_representative_unit_gcd_test · Uses: G001, S037
S039 · implies
Before
selected modulus representative20:original nonnegative Euclidean inputs=[20, 21]
After
division rows[a,b,q,r] with a=q*b+r and0<=r<b=[[20, 21, 0, 20], [21, 20, 1, 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 dependencies
Rule: totient_Euclidean_division_chain_preserves_common_divisors · Uses: G001, S038
S040 · implies
Before
selected modulus:original representative k=20 in1..21;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 dependencies
Rule: totient_every_original_representative_unit_gcd_test · Uses: G001, S039
S041 · implies
Before
selected modulus representative21:original nonnegative Euclidean inputs=[21, 21]
After
division rows[a,b,q,r] with a=q*b+r and0<=r<b=[[21, 21, 1, 0]];terminal positive gcd=21
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 dependencies
Rule: totient_Euclidean_division_chain_preserves_common_divisors · Uses: G001, S040
S042 · implies
Before
selected modulus:original representative k=21 in1..21;verified gcd(k,n)=21
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 dependencies
Rule: totient_every_original_representative_unit_gcd_test · Uses: G001, S041
S043 · calculation
Before
selected modulus exact coprime indicator count := sum(1, 1, 0, 1, 1, 0, 0, 1, 0, 1, 1, 0, 1, 0, 0, 1, 1, 0, 1, 1, 0)
After
selected modulus exact coprime indicator count = 12
Conditions: none
Compute exactly from original roles and established intermediates,retaining indices,denominators,signs and operation roles.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S042
S044 · implies
Before
selected modulus:complete representative range1..21;all selected coprime representatives=[1, 2, 4, 5, 8, 10, 11, 13, 16, 17, 19, 20]
After
phi(21)=12;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 dependencies
Rule: totient_complete_finite_count_not_sample_formula · Uses: G001, S043
S045 · implies
Before
original n=21;exact phi=12;first proper trial divisor up to floor(sqrt(n))=3
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 dependencies
Rule: totient_one_prime_composite_distinct_cases · Uses: G001, S044