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!)
A292770 If sigma(n)+phi(n) is even then (sigma(n)+phi(n))/2 otherwise -1. 2
1, 2, 3, -1, 5, 7, 7, -1, -1, 11, 11, 16, 13, 15, 16, -1, 17, -1, 19, 25, 22, 23, 23, 34, -1, 27, 29, 34, 29, 40, 31, -1, 34, 35, 36, -1, 37, 39, 40, 53, 41, 54, 43, 52, 51, 47, 47, 70, -1, -1, 52, 61, 53, 69, 56, 72, 58, 59, 59, 92, 61, 63, 70, -1, 66, 82, 67, 79, 70, 84, 71, -1, 73, 75, 82, 88, 78, 96 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
MAPLE
f:= proc(n) local v;
v:= numtheory:-sigma(n)+numtheory:-phi(n);
if v::even then v/2 else -1 fi
end proc:
map(f, [$1..100]); # Robert Israel, Sep 28 2017
MATHEMATICA
Table[If[EvenQ[DivisorSigma[1, n]+EulerPhi[n]], (DivisorSigma[1, n]+EulerPhi[n])/2, -1], {n, 120}] (* Harvey P. Dale, Jun 19 2022 *)
CROSSREFS
Sequence in context: A359593 A358881 A197701 * A242107 A242108 A238941
KEYWORD
sign
AUTHOR
N. J. A. Sloane, Sep 28 2017
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 25 11:39 EDT 2024. Contains 371969 sequences. (Running on oeis4.)