login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A275771 a(n+3) = A008578(n+1) -a(n), a(0) = a(1) = a(2) = 0. 0
0, 0, 0, 1, 2, 3, 4, 5, 8, 9, 12, 11, 14, 17, 20, 23, 24, 23, 24, 29, 36, 37, 38, 35, 36, 41, 48, 53, 56, 53, 50, 51, 56, 63, 76, 75, 74, 63, 74, 77, 94, 89, 90, 79, 90, 91, 112, 103, 106, 87, 108, 117, 140 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,5

COMMENTS

A008578 gives the noncomposite numbers, the prime numbers at the beginning of the 20th century which included 1.

a(2n) = 0, 0, 2, 4, 8, 12, 14, 20, 24, 24, ... always even?

a(2n+3) =  1, 3, 5, 9, 11, 17, 23, 23, 29, ... always odd?

First differences: 0, 0, 1, 1, 1, 1, 1, 3, 1, 3, -1, 3, 3, 3, 3, 1, -1, 1, 5, 7, ... .

LINKS

Table of n, a(n) for n=0..52.

EXAMPLE

a(3) = 1-0 = 1, a(4) = 2-0 = 2, a(5) = 3-0 = 3, a(6) = 5-1 = 4, a(6) = 7-2 = 5, ... .

MATHEMATICA

RecurrenceTable[{a[n + 3] == If[n == 0, 1, Prime[n]] - a[n], a[0] == 0, a[1] == 0, a[2] == 0}, a, {n, 0, 52}] (* Michael De Vlieger, Aug 08 2016 *)

CROSSREFS

Cf. A000040, A008578, A113405, A274817.

Sequence in context: A302602 A242175 A325662 * A118956 A109850 A008749

Adjacent sequences:  A275768 A275769 A275770 * A275772 A275773 A275774

KEYWORD

nonn

AUTHOR

Paul Curtz, Aug 08 2016

STATUS

approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified July 14 15:44 EDT 2020. Contains 335729 sequences. (Running on oeis4.)