login
This site is supported by donations to The OEIS Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A212295 Number of ways to represent n as the sum of (zero or more) twin primes. 0
1, 0, 0, 1, 0, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 4, 4, 7, 6, 8, 9, 8, 14, 12, 18, 18, 19, 26, 24, 36, 35, 42, 49, 49, 68, 67, 86, 93, 100, 127, 126, 167, 172, 200, 235, 240, 313, 316, 389, 429, 464, 573, 584, 732, 778, 888, 1038, 1089, 1347, 1412, 1671, 1873, 2035, 2449, 2567, 3093 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,11

LINKS

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

PROG

(PARI) a(n, t=n)=if(n<3, !n, my(s=n%3==0); forprime(p=5, min(t, n), if(isprime(p+2), s+=a(n-p, p)+a(n-p-2, p+2))); s)

CROSSREFS

Cf. A212294.

Sequence in context: A145707 A145703 A029095 * A194315 A288577 A159270

Adjacent sequences:  A212292 A212293 A212294 * A212296 A212297 A212298

KEYWORD

nonn

AUTHOR

Charles R Greathouse IV, Jun 27 2012

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 16 23:49 EDT 2019. Contains 325092 sequences. (Running on oeis4.)