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

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A135285 Sum of staircase twin primes according to the rule: top * bottom - next top. 0
10, 24, 126, 294, 858, 1704, 3528, 5082, 10296, 11526, 18894, 22320, 32208, 36666, 38976, 51744, 57330, 72618, 79212, 96996, 120684, 175968, 186162, 212922, 271914, 324300, 359382, 381282, 411504, 434790, 655278, 674856, 684726, 735282, 776904 (list; graph; refs; listen; history; internal format)
OFFSET

1,1

COMMENTS

While there is multiplication and subtraction in the generation of this sequence, it is still called a sum because the arithmetic processes -,*,/ are derived from addition.

FORMULA

We list the twin primes in staircase fashion as in A135283. Then a(n) = tl(n) * tu(n) + (-tl(n+1)).

PROG

(PARI) g(n) = for(x=1, n, y=twinu(x) * twinl(x) - twinl(x+1); print1(y", ")) twinl(n) = / *The n-th lower twin prime. */ { local(c, x); c=0; x=1; while(c<n, if(ispseudoprime(prime(x)+2), c++); x++; ); return(prime(x-1)) } twinu(n) = /* The n-th upper twin prime. */ { local(c, x); c=0; x=1; while(c<n, if(isprime(prime(x)+2), c++); x++; ); return(prime(x)) }

CROSSREFS

Sequence in context: A067728 A058504 A126911 * A103071 A057462 A180043

Adjacent sequences:  A135282 A135283 A135284 * A135286 A135287 A135288

KEYWORD

nonn

AUTHOR

Cino Hilliard (hillcino368(AT)hotmail.com), Dec 03 2007

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 17 19:13 EST 2012. Contains 206085 sequences.