Combinations with repetitions/Square digit chain: Difference between revisions

no edit summary
No edit summary
Line 11:
:Optionally answer the question for k=17. These numbers will be larger than the basic integer type for many languages, if it is not easy to use larger numbers it is not necessary for this task.
 
=={{header|D}}==
<lang d>
 
// Count how many number chains for Natural Numbers < 10**K end with a value of 1.
//
// Nigel_Galloway
// September 18th., 2014.
</lang>
=={{header|Ruby}}==
<lang ruby>
2,172

edits