Talk:EKG sequence convergence: Difference between revisions

From Rosetta Code
Content added Content deleted
(Created page with "==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...")
 
(Primes+)
Line 1: Line 1:
==N==
==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.
:It can be other than prime. --[[User:Paddy3118|Paddy3118]] ([[User talk:Paddy3118|talk]]) 15:27, 8 August 2018 (UTC)

Revision as of 15:27, 8 August 2018

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? --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.
It can be other than prime. --Paddy3118 (talk) 15:27, 8 August 2018 (UTC)