|
|
A062830
|
|
a(n) = n - phi(n) + 1.
|
|
6
|
|
|
1, 2, 2, 3, 2, 5, 2, 5, 4, 7, 2, 9, 2, 9, 8, 9, 2, 13, 2, 13, 10, 13, 2, 17, 6, 15, 10, 17, 2, 23, 2, 17, 14, 19, 12, 25, 2, 21, 16, 25, 2, 31, 2, 25, 22, 25, 2, 33, 8, 31, 20, 29, 2, 37, 16, 33, 22, 31, 2, 45, 2, 33, 28, 33, 18, 47, 2, 37, 26, 47, 2
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,2
|
|
COMMENTS
|
This is the cototient(A051953) + 1. If n = p*q for different primes p and q, a(n) = p + q. - Wesley Ivan Hurt, Aug 27 2013
If n is the product of twin primes, (a(n) +- 2)/2 gives the two primes. - Wesley Ivan Hurt, Sep 06 2013
|
|
LINKS
|
|
|
FORMULA
|
|
|
EXAMPLE
|
a(10) = 7, since 10 - phi(10) + 1 = 10 - 4 + 1 = 7. Also, since 10 is a squarefree semiprime, 7 represents the sum of the distinct prime factors of 10.
|
|
MAPLE
|
with(numtheory); seq(k - phi(k) + 1, k = 1..70); # Wesley Ivan Hurt, Aug 27 2013
|
|
MATHEMATICA
|
|
|
PROG
|
(PARI) j=[]; for(n=1, 200, j=concat(j, eulerphi(n)-n-1)); j
|
|
CROSSREFS
|
|
|
KEYWORD
|
easy,nonn
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|