Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A135286
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A135286 Sum of staircase twin primes according to the rule: top * bottom + next top. +0
1
20, 46, 160, 352, 940, 1822, 3670, 5284, 10510, 11800, 19192, 22678, 32590, 37060, 39430, 52222, 57868, 73180, 79834, 97690, 121522, 176830, 187084, 213964, 273052, 325498, 360616, 382564, 412822, 436408, 656920, 676510, 686440, 737044, 778942, 1041430, 1066072, 1103560, 1128934, 1193614, 1328332, 1514176, 1634572, 1665400, 1696522, 1743826, 2040634, 2109784, 2197810, 2215750 (list; graph; listen)
OFFSET

1,1

COMMENT

While there is multiplication 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).

PROGRAM

(PARI) g(n) = for(x=1, n, y=twinu(x) * twinl(x) + twinl(x+1); print1(y", ")) twinl(n) = / *The nth 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 nth 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: A044097 A044478 A145220 this_sequence A053245 A115882 A007589

Adjacent sequences: A135283 A135284 A135285 this_sequence A135287 A135288 A135289

KEYWORD

nonn

AUTHOR

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

EXTENSIONS

All the entries were wrong. They have been corrected by Franklin T. Adams-Watters, Apr 29 2008

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified November 30 13:13 EST 2009. Contains 167758 sequences.


AT&T Labs Research