Combinations with repetitions/Square digit chain: Difference between revisions
Combinations with repetitions/Square digit chain (view source)
Revision as of 10:46, 18 September 2014
, 9 years agono 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>
|