RosettaCodeData/Task/Van-Eck-sequence/J/van-eck-sequence-3.j
2023-07-01 13:44:08 -04:00

2 lines
128 B
Text

next =. <:@:# - }: i: {: NB. Next term of the sequence
VanEck=. (, next)^:(]`0:) f. NB. Appending terms and fixing the verb