@@ -177,7 +177,7 @@ def _fetch(url):
177
177
178
178
TESTS::
179
179
180
- sage: from sage.databases.oeis import _fetch, oeis_url
180
+ sage: from sage.databases.oeis import _fetch, oeis_url # optional -- internet
181
181
sage: _fetch(oeis_url + 'hints.html')[-8:-1] # optional -- internet
182
182
'</html>'
183
183
"""
@@ -309,12 +309,12 @@ class OEIS:
309
309
14930352, 24157817, 39088169, 63245986, 102334155)
310
310
311
311
sage: fibo.cross_references()[0] # optional -- internet
312
- 'A039834 '
312
+ 'A001622 '
313
313
314
314
sage: fibo == oeis(45) # optional -- internet
315
315
True
316
316
317
- sage: sfibo = oeis('A039834')
317
+ sage: sfibo = oeis('A039834') # optional -- internet
318
318
sage: sfibo.first_terms() # optional -- internet
319
319
(1, 1, 0, 1, -1, 2, -3, 5, -8, 13, -21, 34, -55, 89, -144, 233,
320
320
-377, 610, -987, 1597, -2584, 4181, -6765, 10946, -17711, 28657,
@@ -707,11 +707,12 @@ def online_update(self):
707
707
708
708
TESTS::
709
709
710
+ sage: # optional -- internet
710
711
sage: s = oeis._imaginary_sequence(ident='A004238')
711
712
sage: s
712
713
A004238: The characteristic sequence of 42 plus one, starting from 38.
713
- sage: s.online_update() # optional -- internet
714
- sage: s # optional -- internet
714
+ sage: s.online_update()
715
+ sage: s
715
716
A004238: a(n) = 100*log(n) rounded to nearest integer.
716
717
"""
717
718
options = {'q' : self ._id , 'n' : '1' , 'fmt' : 'text' }
@@ -832,7 +833,7 @@ def raw_entry(self):
832
833
A000045: Fibonacci numbers: F(n) = F(n-1) + F(n-2) with F(0) = 0 and F(1) = 1.
833
834
834
835
sage: print(f.raw_entry()) # optional -- internet
835
- %I A000045 M0692 N0256
836
+ %I A000045 M0692 N0256...
836
837
%S A000045 0,1,1,2,3,5,8,13,21,34,55,89,144,...
837
838
%T A000045 10946,17711,28657,46368,...
838
839
...
@@ -890,7 +891,7 @@ def old_IDs(self):
890
891
A000045: Fibonacci numbers: F(n) = F(n-1) + F(n-2) with F(0) = 0 and F(1) = 1.
891
892
892
893
sage: f.old_IDs() # optional -- internet
893
- ('M0692', 'N0256')
894
+ ('M0692', 'N0256'... )
894
895
895
896
TESTS::
896
897
@@ -1111,7 +1112,7 @@ def is_dead(self, warn_only=False):
1111
1112
A warning is triggered if any field of a dead sequence is accessed,
1112
1113
unless :meth:`is_dead` is called before::
1113
1114
1114
- sage: s = oeis(17)
1115
+ sage: s = oeis(17) # optional -- internet
1115
1116
sage: s # optional -- internet
1116
1117
doctest:warning
1117
1118
...
@@ -1803,6 +1804,7 @@ def show(self):
1803
1804
URL
1804
1805
https://oeis.org/A012345
1805
1806
<BLANKLINE>
1807
+ ...
1806
1808
AUTHOR
1807
1809
Patrick Demichel (patrick.demichel(AT)hp.com)
1808
1810
<BLANKLINE>
0 commit comments