cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A348736 a(n) = n - A326042(n), where A326042(n) = A064989(sigma(A003961(n))).

Original entry on oeis.org

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

Views

Author

Antti Karttunen, Nov 02 2021

Keywords

Crossrefs

Cf. A348737, A348738 (positions of positive terms), A348739 (of negative terms).

Programs

  • 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));

Formula

a(n) = n - A064989(A161942(A003961(n))).