ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Wed, 12 Nov 2014 23:58:49 +0100A defect in the first_terms function in the OEIS modulehttps://ask.sagemath.org/question/24847/a-defect-in-the-first_terms-function-in-the-oeis-module/ oeis(17).first_terms(12)
throws the
TypeError: You found a sign inconsistency, please contact OEIS
The sequence [A000017](https://oeis.org/A000017) is 'dead', what means it has errors in the data and was replaced by another version. It is policy of the OEIS to keep such sequences so they can be found in the case they are referenced in the literature.
I think the OEIS functions should simply ignore sequences with the keyword 'dead'. At least they should not attempt to return terms of these sequences.
Peter LuschnyWed, 12 Nov 2014 23:58:49 +0100https://ask.sagemath.org/question/24847/reading, computing, writinghttps://ask.sagemath.org/question/9228/reading-computing-writing/OK, I just installed Sage for the first time and now I would like to figure out how to read and write a file as well as run 'functions' like primepi (count of prime numbers).
Axxxxxx is a sequence in the OEIS at oeis.org.
The data file has two columns "n, A104272(n)" with n > 3*10^6:
1 2
2 11
3 17
4 29
5 41
... ...
After reading the data I need it take the difference of the A182873(n) = A104272(n+1) - A104272(n), find primepi(A104272(n+1)) and primepi(A104272(n)) and the difference of those two A190874(n) = primepi(A104272(n+1)) - primepi(A104272(n)). After that I would like to write the data back to a file.
I have been looking at the tutorial, but I have not found the section on reading data or anything like it.reddwarf2956Mon, 13 Aug 2012 01:52:32 +0200https://ask.sagemath.org/question/9228/