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.

A239122 Partial sums of A061019.

This page as a plain text file.
%I A239122 #10 Jan 03 2023 14:51:03
%S A239122 1,-1,-4,0,-5,1,-6,-14,-5,5,-6,-18,-31,-17,-2,14,-3,-21,-40,-60,-39,
%T A239122 -17,-40,-16,9,35,8,-20,-49,-79,-110,-142,-109,-75,-40,-4,-41,-3,36,
%U A239122 76,35,-7,-50,-94,-139,-93,-140,-188,-139,-189,-138,-190,-243,-189,-134
%N A239122 Partial sums of A061019.
%H A239122 Reinhard Zumkeller, <a href="/A239122/b239122.txt">Table of n, a(n) for n = 1..10000</a>
%t A239122 Accumulate[Table[n*(-1)^PrimeOmega[n],{n,70}]] (* _Harvey P. Dale_, Apr 02 2015 *)
%o A239122 (Haskell)
%o A239122 a239122 n = a239122_list !! (n-1)
%o A239122 a239122_list = scanl1 (+) a061019_list
%o A239122 (Python)
%o A239122 from functools import reduce
%o A239122 from operator import ixor
%o A239122 from sympy import factorint
%o A239122 def A239122(n): return sum(-i if reduce(ixor, factorint(i).values(), 0)&1 else i for i in range(1,n+1)) # _Chai Wah Wu_, Jan 03 2023
%Y A239122 Cf. A002819.
%K A239122 sign
%O A239122 1,3
%A A239122 _Reinhard Zumkeller_, Mar 10 2014