login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A239122 Partial sums of A061019. 3
1, -1, -4, 0, -5, 1, -6, -14, -5, 5, -6, -18, -31, -17, -2, 14, -3, -21, -40, -60, -39, -17, -40, -16, 9, 35, 8, -20, -49, -79, -110, -142, -109, -75, -40, -4, -41, -3, 36, 76, 35, -7, -50, -94, -139, -93, -140, -188, -139, -189, -138, -190, -243, -189, -134 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,3
LINKS
MATHEMATICA
Accumulate[Table[n*(-1)^PrimeOmega[n], {n, 70}]] (* Harvey P. Dale, Apr 02 2015 *)
PROG
(Haskell)
a239122 n = a239122_list !! (n-1)
a239122_list = scanl1 (+) a061019_list
(Python)
from functools import reduce
from operator import ixor
from sympy import factorint
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
CROSSREFS
Cf. A002819.
Sequence in context: A255369 A292177 A051352 * A195495 A003816 A309214
KEYWORD
sign
AUTHOR
Reinhard Zumkeller, Mar 10 2014
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 16 11:08 EDT 2024. Contains 371711 sequences. (Running on oeis4.)