Talk:EKG sequence convergence: Difference between revisions

Content added Content deleted
(Another look...)
m (→‎N: tidy)
Line 1: Line 1:
==Problem with task==
==N==
The task description states "Variants of the sequence can be generated starting 1, N where N is any natural number larger than one". The examples all have N prime. Is it the intention that N may be composite? If so should there be an example say 10? --[[User:Nigel Galloway|Nigel Galloway]] ([[User talk:Nigel Galloway|talk]]) 14:31, 8 August 2018 (UTC)
The task description states "Variants of the sequence can be generated starting 1, N where N is any natural number larger than one". The examples all have N prime. Is it the intention that N may be composite? If so should there be an example say 10? --[[User:Nigel Galloway|Nigel Galloway]] ([[User talk:Nigel Galloway|talk]]) 14:31, 8 August 2018 (UTC)
: Hi Nigel, that second number, then one after the initial 1; can be any integer greater than one. 2 is the base, or normal sequence known as the EKG sequence when people don't mention the variants. When developing the task I noted that 3 and 7 seemed to converge then diverge before finally converging (see the second Python example), so that lead to me asking for 2, 5, and 7.
: Hi Nigel, that second number, then one after the initial 1; can be any integer greater than one. 2 is the base, or normal sequence known as the EKG sequence when people don't mention the variants. When developing the task I noted that 3 and 7 seemed to converge then diverge before finally converging (see the second Python example), so that lead to me asking for 2, 5, and 7.
Line 13: Line 13:


Addressing your comments:
Addressing your comments:
* ''I have modified the task to require EKG(9) and EKG(10)'' - You've certainly shown that there is a need.
* ''"I have modified the task to require EKG(9) and EKG(10)"'' - You've certainly shown that there is a need.
* ''I think all the solutions will be wrong.'' - Not necessarily, they just need to cover the extra requirements. Their algorithms may be correct I mean.
* ''"I think all the solutions will be wrong"'' - Not necessarily, they just need to cover the extra requirements. Their algorithms may be correct I mean.
* ''This divergence/convergence is illusionary''. It is real. The Python generator that uses gcd is easiest for me to reason about. What it generates next is solely down to the state help in names last and so_far. If they coincide between two generators then those generators could not then diverge.<br>
* ''"This divergence/convergence is illusionary"''. It is real. The Python generator that uses gcd is easiest for me to reason about. What it generates next is solely down to the state help in names last and so_far. If they coincide between two generators then those generators could not then diverge.<br>


I've learnt something more. Thanks Nigel. --[[User:Paddy3118|Paddy3118]] ([[User talk:Paddy3118|talk]]) 21:34, 8 August 2018 (UTC)
I've learnt something more. Thanks Nigel. --[[User:Paddy3118|Paddy3118]] ([[User talk:Paddy3118|talk]]) 21:34, 8 August 2018 (UTC)