EKG sequence convergence: Difference between revisions

Content deleted Content added
→‎Python: Using prime factor generation: Removed. Even if fixed it wouldn't be best.
m added templates and whitespace to the task preamble.
Line 13:
* ... the sequence starting <code>1, N, ...</code> the <code>EKG(N)</code> sequence.
 
 
''';Convergence'''<br>
If an algorithm that keeps track of the minimum amount of numbers and their corresponding prime factors used to generate the next term is used, then this may be known as the generators essential '''state'''. Two EKG generators with differing starts can converge to produce the same sequence after initial differences.<br>
<code>EKG(N1)</code> and <code>EKG(N2)</code> are said to to have converged at and after generation <code>a(c)</code> if <code>state_of(EKG(N1).a(c)) == state_of(EKG(N2).a(c))</code>.
 
;Task:
 
;Task:
# Calculate and show here the first 10 members of <code>EKG(2)</code>.
# Calculate and show here the first 10 members of <code>EKG(5)</code>.
Line 25 ⟶ 26:
# Calculate and show here the first 10 members of <code>EKG(10)</code>.
# '''Stretch goal''': Calculate and show here at which term EKG(5) and EKG(7) converge.
 
 
;Reference:
* [https://www.youtube.com/watch?v=yd2jr30K2R4 The EKG Sequence and the Tree of Numbers]. (Video).
<br><br>
 
=={{header|C}}==