The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A292771 If sigma(n)-phi(n) is even then (sigma(n)-phi(n))/2 otherwise -1. 2
 0, 1, 1, -1, 1, 5, 1, -1, -1, 7, 1, 12, 1, 9, 8, -1, 1, -1, 1, 17, 10, 13, 1, 26, -1, 15, 11, 22, 1, 32, 1, -1, 14, 19, 12, -1, 1, 21, 16, 37, 1, 42, 1, 32, 27, 25, 1, 54, -1, -1, 20, 37, 1, 51, 16, 48, 22, 31, 1, 76, 1, 33, 34, -1, 18, 62, 1, 47, 26, 60, 1, -1, 1, 39, 42, 52, 18, 72, 1, 77, -1, 43, 1 (list; graph; refs; listen; history; text; internal format)
 OFFSET 1,6 COMMENTS a(n) = 1 if and only if n is prime. - Robert Israel, Sep 28 2017 LINKS Robert Israel, Table of n, a(n) for n = 1..10000 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 CROSSREFS Cf. A051612, A000010, A000203, A292770. Sequence in context: A028235 A028236 A066504 * A322837 A168677 A140210 Adjacent sequences:  A292768 A292769 A292770 * A292772 A292773 A292774 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 | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

Last modified March 30 22:55 EDT 2020. Contains 333132 sequences. (Running on oeis4.)