This site is supported by donations to The OEIS Foundation.

Talk:Sequence Tools

From OeisWiki
Jump to: navigation, search

Fencepost

The sequence length calculations have an 'off-by-one' error: they calculate the length of a sequence with a trailing comma and space. I'm not sure if I should change this (increasing the length of the sequences returned in some cases), change this and reduce 260 to 258 (leaving behavior the same), or leave it alone.

Actually I looked only at the Mathematica and GP versions, but if the Maple version is a translation I assume it has the same issue.

Charles R Greathouse IV 16:30, 10 May 2011 (UTC)

Well, the Maple version also has the 'off-by-one' error. Even worse, Maple has a feature I was not aware of. The integers 1,2,3,...,9 have 'length' 1; however the integer 0 has 'length' 0. Not sure if this is in accordance with the principle of least astonishment. Anyway, I have updated the Maple version now. Peter Luschny 10:32, 17 September 2011 (UTC)