Goodstein Sequence: Difference between revisions

m
→‎{{header|Wren}}: Small change to output (N -> n)
m (→‎{{header|Phix}}: removed an unnecessary abs())
m (→‎{{header|Wren}}: Small change to output (N -> n))
Line 351:
for (i in BigInt.zero..7) System.print("Goodstein of %(i): %(goodstein.call(i, 10))")
 
System.print("\nThe nth term of Goodstein(Nn) sequence counting from 0, for values of n in [0, 16]:")
for (i in BigInt.zero..16) {
Fmt.print("Term $2i of Goodstein($2i): $i", i, i, a266201.call(i, 10))
Line 368:
Goodstein of 7: [7, 30, 259, 3127, 46657, 823543, 16777215, 37665879, 77777775, 150051213]
 
The nth term of Goodstein(Nn) sequence counting from 0, for values of n in [0, 16]:
Term 0 of Goodstein( 0): 0
Term 1 of Goodstein( 1): 0
9,492

edits