cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A064627 Positive integers not in A064494.

This page as a plain text file.
%I A064627 #10 Nov 20 2023 00:03:18
%S A064627 2,3,5,7,10,11,13,17,19,21,23,25,27,29,30,31,37,41,42,43,45,47,50,53,
%T A064627 54,59,61,63,65,66,67,69,71,73,74,78,79,83,85,86,89,93,97,99,101,103,
%U A064627 105,107,109,110,112,113,115,117,119,123,126,127,129,131,135,137,138
%N A064627 Positive integers not in A064494.
%o A064627 (SageMath)
%o A064627 def divsign(s, k):
%o A064627     if not k.divides(s): return 0
%o A064627     return (-1)^(s//k)*k
%o A064627 def A(n):
%o A064627     s = n + 1
%o A064627     for k in srange(n, 1, -1):
%o A064627         s -= divsign(s, k)
%o A064627     return s
%o A064627 # Use with caution: search range must be adjusted as necessary!
%o A064627 def A064627List(size):
%o A064627     return sorted(Set([A(n) for n in (1..3*size)]))[0:size]
%o A064627 print(A064627List(63)) # _Peter Luschny_, Sep 16 2019
%Y A064627 Cf. A064494.
%K A064627 nonn
%O A064627 1,1
%A A064627 Klaus Strassburger (strass(AT)ddfi.uni-duesseldorf.de), Oct 16 2001