# Question 2546: First Repeat, Transient Length and the Starting Point’s Period

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

[← Question derivation index](https://ocme.evemisslab.com/en/questions/) · [Original question batch](https://ocme.evemisslab.com/en/practice/batch-20261013-advance-20261021-r03-orbit-fixed-periodic-foundations/#q-20261013-advance-20261021-r03-orbit-fixed-periodic-0071)

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.

R0004-02546 · q-20261013-advance-20261021-r03-orbit-fixed-periodic-0071



## Original question and givens

Use the complete finite self-map on Fin(7)={0,…,6}, T(x)=(a*x+b) mod 7, a=3, b=12. Take least nonnegative residues even for negative a*x+b. Fixed points, return times and least positive periods are different notions; the conclusion concerns this finite model only. x=6. Give (modulus,a,b,x,trace before first repeat,repeated state,zero-based cycle-start index,least positive period or nonperiodic-point).


- G001 — Use the complete finite self-map on Fin(7)={0,…,6}, T(x)=(a*x+b) mod 7, a=3, b=12. Take least nonnegative residues even for negative a*x+b. Fixed points, return times and least positive periods are different notions; the conclusion concerns this finite model only. x=6. Give (modulus,a,b,x,trace before first repeat,repeated state,zero-based cycle-start index,least positive period or nonperiodic-point).





## 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-orbit-fixed-periodic](https://ocme.evemisslab.com/en/mko/mko-orbit-fixed-periodic/)





## Step-by-step derivation

S001 · impliesBefore

n=7; a=3; b=12

After

S={0,...,6}; T(z)=(a·z+b) mod n

Conditions: none

Remainders lie in0,...,n−1,so every state has one successor in the same finite set;negative dividends do not produce negative canonical remainders.

Step identifiers and dependenciesRule: finite_self_map · Uses: G001





S002 · impliesBefore

start=6

After

record each state before its first successor calculation

Conditions: none

Start with the specified point itself,not its first successor.

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





S003 · calculationBefore

least period step1 product := mul(3, 6)

After

least period step1 product = 18

Conditions: none

Multiply the current state by the original coefficient a,retaining its sign.

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





S004 · calculationBefore

least period step1 affine value := sum(18, 12)

After

least period step1 affine value = 30

Conditions: none

Then add the original constant b;this integer is not yet the canonical state.

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





S005 · impliesBefore

Euclidean division of 30 by 7

After

30=4·7+2

Conditions: none

Check the transition using quotient and nonnegative remainder;n>0 and0≤remainder<n ensure uniqueness.

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





S006 · calculationBefore

least period step2 product := mul(3, 2)

After

least period step2 product = 6

Conditions: none

Multiply the current state by the original coefficient a,retaining its sign.

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





S007 · calculationBefore

least period step2 affine value := sum(6, 12)

After

least period step2 affine value = 18

Conditions: none

Then add the original constant b;this integer is not yet the canonical state.

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





S008 · impliesBefore

Euclidean division of 18 by 7

After

18=2·7+4

Conditions: none

Check the transition using quotient and nonnegative remainder;n>0 and0≤remainder<n ensure uniqueness.

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





S009 · calculationBefore

least period step3 product := mul(3, 4)

After

least period step3 product = 12

Conditions: none

Multiply the current state by the original coefficient a,retaining its sign.

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





S010 · calculationBefore

least period step3 affine value := sum(12, 12)

After

least period step3 affine value = 24

Conditions: none

Then add the original constant b;this integer is not yet the canonical state.

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





S011 · impliesBefore

Euclidean division of 24 by 7

After

24=3·7+3

Conditions: none

Check the transition using quotient and nonnegative remainder;n>0 and0≤remainder<n ensure uniqueness.

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





S012 · calculationBefore

least period step4 product := mul(3, 3)

After

least period step4 product = 9

Conditions: none

Multiply the current state by the original coefficient a,retaining its sign.

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





S013 · calculationBefore

least period step4 affine value := sum(9, 12)

After

least period step4 affine value = 21

Conditions: none

Then add the original constant b;this integer is not yet the canonical state.

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





S014 · impliesBefore

Euclidean division of 21 by 7

After

21=3·7+0

Conditions: none

Check the transition using quotient and nonnegative remainder;n>0 and0≤remainder<n ensure uniqueness.

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





S015 · calculationBefore

least period step5 product := mul(3, 0)

After

least period step5 product = 0

Conditions: none

Multiply the current state by the original coefficient a,retaining its sign.

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





S016 · calculationBefore

least period step5 affine value := sum(0, 12)

After

least period step5 affine value = 12

Conditions: none

Then add the original constant b;this integer is not yet the canonical state.

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





S017 · impliesBefore

Euclidean division of 12 by 7

After

12=1·7+5

Conditions: none

Check the transition using quotient and nonnegative remainder;n>0 and0≤remainder<n ensure uniqueness.

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





S018 · calculationBefore

least period step6 product := mul(3, 5)

After

least period step6 product = 15

Conditions: none

Multiply the current state by the original coefficient a,retaining its sign.

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





S019 · calculationBefore

least period step6 affine value := sum(15, 12)

After

least period step6 affine value = 27

Conditions: none

Then add the original constant b;this integer is not yet the canonical state.

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





S020 · impliesBefore

Euclidean division of 27 by 7

After

27=3·7+6

Conditions: none

Check the transition using quotient and nonnegative remainder;n>0 and0≤remainder<n ensure uniqueness.

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





S021 · impliesBefore

distinct trace=[6, 2, 4, 3, 0, 5]; first repeated state=6

After

cycle_start=0; starting-point least period=6

Conditions: none

The first repeated state locates the cycle entry.If it is the initial point,the preceding states are distinct,so the first return is the least positive period.If entry is later,the initial point lies outside the cycle and never returns.

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









## Reverse checks


- S021 · premise_and_result_audit — Replay the cycle of this fixed self-map;return or nonreturn is certified only for this complete finite model,not an unspecified system.
- 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 — Recompute least period step6 affine value with exact rational arithmetic, not rounded decimals.
- S018 · premise_and_result_audit — Recompute least period step6 product with exact rational arithmetic, not rounded decimals.
- 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 — Recompute least period step5 affine value with exact rational arithmetic, not rounded decimals.
- S015 · premise_and_result_audit — Recompute least period step5 product with exact rational arithmetic, not rounded decimals.
- 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 — Recompute least period step4 affine value with exact rational arithmetic, not rounded decimals.
- S012 · premise_and_result_audit — Recompute least period step4 product with exact rational arithmetic, not rounded decimals.
- 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 — Recompute least period step3 affine value with exact rational arithmetic, not rounded decimals.
- S009 · premise_and_result_audit — Recompute least period step3 product with exact rational arithmetic, not rounded decimals.
- 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 — Recompute least period step2 affine value with exact rational arithmetic, not rounded decimals.
- S006 · premise_and_result_audit — Recompute least period step2 product with exact rational arithmetic, not rounded decimals.
- 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 — Recompute least period step1 affine value with exact rational arithmetic, not rounded decimals.
- S003 · premise_and_result_audit — Recompute least period step1 product with exact rational arithmetic, not rounded decimals.
- 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

(7, 3, 12, 6, [6, 2, 4, 3, 0, 5], 6, 0, 6)

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: 7d6f672bec48aeb9ec6150de02fe0803b9bc724b5e0f81395259aa746068e8b9
- candidate record SHA-256: 9ba4964c40100d41fd927acda383c13462efd744852409ea588f715892ee6996
- semantic review receipt SHA-256: 312ae86315346b8955842a547cb2d09246e1f826755f72c2a51f042e5c7d5c56
- question-first witness SHA-256: 831f449ed41ff9144a290e534aa32adf7252d15b81c16ed5886a7dfd65dee70c
- Lean: NOT_RUN · human review: NOT_PERFORMED

[Same-source full JSON](https://ocme.evemisslab.com/data/question-derivations/questions/q-20261013-advance-20261021-r03-orbit-fixed-periodic-0071.json)




