RosettaCodeData/Task/Hailstone-sequence/Jq/hailstone-sequence-3.jq

7 lines
203 B
Text
Raw Permalink Normal View History

2016-12-05 23:44:36 +01:00
$ jq -M -r -n -f hailstone.jq
[27|hailstone]|length is 112
The first four numbers: [27,82,41,124]
The last four numbers: [8,4,2,1]
Maximum length for n|hailstone for n in 1..100000 is 351 (n == 77031)