|
| |
|
|
A070238
|
|
Sign of core(n)-phi(n) where core(n) is the squarefree part of n and phi the Euler totient function.
|
|
0
| |
|
|
0, 1, 1, -1, 1, 1, 1, -1, -1, 1, 1, -1, 1, 1, 1, -1, 1, -1, 1, -1, 1, 1, 1, -1, -1, 1, -1, -1, 1, 1, 1, -1, 1, 1, 1, -1, 1, 1, 1, -1, 1, 1, 1, -1, -1, 1, 1, -1, -1, -1, 1, -1, 1, -1, 1, -1, 1, 1, 1, -1, 1, 1, -1, -1, 1, 1, 1, -1, 1, 1, 1, -1, 1, 1, -1, -1, 1, 1, 1, -1, -1, 1, 1, -1, 1, 1, 1, -1, 1, -1, 1, -1, 1, 1, 1, -1, 1, -1, -1, -1
(list; graph; refs; listen; history; internal format)
|
|
|
|
OFFSET
| 1,1
|
|
|
COMMENTS
| sum(k=1,a(k))>0 for n>1.
|
|
|
FORMULA
| For almost n, a(n)=2*mu(n)^2-1=2*A008683(n)-1. Below 1000, there are only 4 exceptions : n=420, 660, 780, 840.
|
|
|
PROG
| (PARI) for(n=1, 100, print1(sign(core(n)-eulerphi(n)), ", "))
|
|
|
CROSSREFS
| Sequence in context: A134824 A165476 A165596 * A062157 A103131 A112347
Adjacent sequences: A070235 A070236 A070237 * A070239 A070240 A070241
|
|
|
KEYWORD
| easy,sign
|
|
|
AUTHOR
| Benoit Cloitre (benoit7848c(AT)orange.fr), May 08 2002
|
| |
|
|