login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
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 (list; graph; refs; listen; history; text; internal format)
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.
LINKS
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
CROSSREFS
Sequence in context: A124219 A103833 A226172 * A046227 A120842 A319044
KEYWORD
nonn
AUTHOR
Omar E. Pol, Jan 23 2017
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 19 09:23 EDT 2024. Contains 371782 sequences. (Running on oeis4.)