login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A281006
a(n) = A000203(n) - A052928(n-1).
1
1, 3, 2, 5, 2, 8, 2, 9, 5, 10, 2, 18, 2, 12, 10, 17, 2, 23, 2, 24, 12, 16, 2, 38, 7, 18, 14, 30, 2, 44, 2, 33, 16, 22, 14, 57, 2, 24, 18, 52, 2, 56, 2, 42, 34, 28, 2, 78, 9, 45, 22, 48, 2, 68, 18, 66, 24, 34, 2, 110, 2, 36, 42, 65, 20, 80, 2, 60, 28, 76, 2, 125, 2, 42, 50, 66, 20, 92, 2, 108, 41, 46, 2, 142, 24, 48, 34, 94, 2
OFFSET
1,2
COMMENTS
a(n) = 2 iff n is an odd prime (A065091).
Has a symmetric representation as a narrow pyramid with holes, in the same way as A249351.
FORMULA
a(n) = sigma(n) - 2*floor((n - 1)/2) = A000203(n) - 2*A004526(n-1).
a(n) = A048050(n) + A176059(n), n >= 2.
EXAMPLE
. 1 - 0 = 1
. 3 - 0 = 3
. 4 - 2 = 2
. 7 - 2 = 5
. 6 - 4 = 2
. 12 - 4 = 8
...
PROG
(PARI) A281006(n) = (sigma(n) - 2*((n-1)>>1)); \\ Antti Karttunen, Sep 25 2018
KEYWORD
nonn
AUTHOR
Omar E. Pol, Jan 23 2017
STATUS
approved