Talk:Combinations with repetitions/Square digit chain: Difference between revisions

From Rosetta Code
Content added Content deleted
No edit summary
Line 2: Line 2:


I see a variety of contradictions here. For example, the iterated square digit chain had an explicit "only natural numbers" requirement, but the code here mentions 0 as a part of the set. Also, the language here talks about all possible combinations of 1s, which is an odd thing to talk about in the context of a set.
I see a variety of contradictions here. For example, the iterated square digit chain had an explicit "only natural numbers" requirement, but the code here mentions 0 as a part of the set. Also, the language here talks about all possible combinations of 1s, which is an odd thing to talk about in the context of a set.
:I have changed set to collection so with k=3, 1,1,1 is valid and c would be 1. 1,2,3 is valid and c would be 6. I have excluded 0,0,0--[[User:Nigel Galloway|Nigel Galloway]] ([[User talk:Nigel Galloway|talk]]) 16:55, 16 September 2014 (UTC)
:I have changed set to collection so with k=3, 1,1,1 is valid and c would be 1. 0,9,81 is valid and c would be 6. I have excluded 0,0,0--[[User:Nigel Galloway|Nigel Galloway]] ([[User talk:Nigel Galloway|talk]]) 16:55, 16 September 2014 (UTC)


To help resolve what this task is really about (and possible task description changes), I think we should see a few result examples.
To help resolve what this task is really about (and possible task description changes), I think we should see a few result examples.

Revision as of 13:18, 17 September 2014

Resolving contradictions?

I see a variety of contradictions here. For example, the iterated square digit chain had an explicit "only natural numbers" requirement, but the code here mentions 0 as a part of the set. Also, the language here talks about all possible combinations of 1s, which is an odd thing to talk about in the context of a set.

I have changed set to collection so with k=3, 1,1,1 is valid and c would be 1. 0,9,81 is valid and c would be 6. I have excluded 0,0,0--Nigel Galloway (talk) 16:55, 16 September 2014 (UTC)

To help resolve what this task is really about (and possible task description changes), I think we should see a few result examples.

To follow soon--Nigel Galloway (talk) 16:55, 16 September 2014 (UTC)

Thanks. --Rdm (talk) 12:01, 16 September 2014 (UTC)