login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A079635 Sum of (2 - p mod 4) for all prime factors p of n (with repetition). 2
0, 0, -1, 0, 1, -1, -1, 0, -2, 1, -1, -1, 1, -1, 0, 0, 1, -2, -1, 1, -2, -1, -1, -1, 2, 1, -3, -1, 1, 0, -1, 0, -2, 1, 0, -2, 1, -1, 0, 1, 1, -2, -1, -1, -1, -1, -1, -1, -2, 2, 0, 1, 1, -3, 0, -1, -2, 1, -1, 0, 1, -1, -3, 0, 2, -2, -1, 1, -2, 0, -1, -2, 1, 1, 1, -1, -2, 0, -1, 1, -4, 1, -1, -2, 2, -1, 0, -1, 1 (list; graph; refs; listen; history; internal format)
OFFSET

1,9

COMMENTS

a(n) = A083025(n) - A065339(n).

LINKS

Reinhard Zumkeller, Table of n, a(n) for n = 1..10000

EXAMPLE

a(55) = a(5*11) = (2 - 5 mod 4)+(2 - 11 mod 4) = (2-1)+(2-3) = (1)+(-1) = 0.

MATHEMATICA

f[n_]:=Plus@@((2-Mod[#[[1]], 4])*#[[2]]&/@If[n==1, {}, FactorInteger[n]]); Table[f[n], {n, 100}] (* Ray Chandler, Dec 20 2011 *)

PROG

(Haskell)

a079635 1 = 0

a079635 n = sum $ map ((2 - ) . (`mod` 4)) $ a027746_row n

-- Reinhard Zumkeller, Jan 10 2012

CROSSREFS

Cf. A072202.

Cf. A027746.

Sequence in context: A037819 A090405 A168509 * A037909 A181506 A169987

Adjacent sequences:  A079632 A079633 A079634 * A079636 A079637 A079638

KEYWORD

sign

AUTHOR

Reinhard Zumkeller (reinhard.zumkeller(AT)gmail.com), Jan 30 2003

EXTENSIONS

Edited by Ray Chandler (rayjchandler(AT)sbcglobal.net), Dec 20 2011

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 14 02:39 EST 2012. Contains 205567 sequences.