login
A348736
a(n) = n - A326042(n), where A326042(n) = A064989(sigma(A003961(n))).
12
0, 1, 1, -7, 4, 4, 5, 5, -20, 9, 6, -10, 9, 12, 13, -33, 14, -11, 17, 9, 17, 17, 17, 18, -9, 22, 5, 6, 28, 28, 14, -23, 23, 31, 33, -283, 27, 36, 31, 37, 34, 38, 41, -11, 16, 40, 39, -50, -36, 16, 45, 8, 47, 32, 50, 50, 53, 57, 30, 38, 48, 45, 5, -1027, 61, 56, 63, 35, 57, 68, 40, -15, 70, 64, 7, 54, 67, 70, 69, 31
OFFSET
1,4
FORMULA
a(n) = n - A064989(A161942(A003961(n))).
PROG
(PARI)
A003961(n) = my(f = factor(n)); for (i=1, #f~, f[i, 1] = nextprime(f[i, 1]+1)); factorback(f); \\ From A003961
A064989(n) = {my(f); f = factor(n); if((n>1 && f[1, 1]==2), f[1, 2] = 0); for (i=1, #f~, f[i, 1] = precprime(f[i, 1]-1)); factorback(f)};
A326042(n) = A064989(sigma(A003961(n)));
A348736(n) = (n-A326042(n));
CROSSREFS
Cf. A348737, A348738 (positions of positive terms), A348739 (of negative terms).
Sequence in context: A354249 A245074 A194474 * A316161 A377010 A153349
KEYWORD
sign
AUTHOR
Antti Karttunen, Nov 02 2021
STATUS
approved