|
Search: id:A135274
|
|
|
| A135274 |
|
Difference and sum of staircase primes according to the rule: bottom - top + next top. |
|
+0 3
|
|
| 6, 13, 19, 25, 37, 47, 49, 65, 69, 77, 89, 103, 107, 113, 131, 141, 151, 159, 173, 185, 193, 199, 213, 239, 235, 247, 267, 275, 279, 287, 317, 317, 335, 353, 355, 373, 385, 393, 409, 427, 433, 441, 453, 469, 469, 499, 503, 513, 535, 565
(list; graph; listen)
|
|
|
OFFSET
|
1,1
|
|
|
COMMENT
|
We list the primes in staircase fashion as follows.
2
3.5
..7.11
....13.17
.......19.23
..........29.31
.............37.41
.....................
....................n
....................n+1.n+2.
The right diagonal, RD(n), is the set of top primes and the left diagonal, LD(x), is the set of bottom primes. Then a(n) = LD(n+1) - RD(n) + RD(n+2).
|
|
PROGRAM
|
(PARI) g(n) = forstep(x=1, n, 2, y=prime(x+1)-prime(x)+prime(x+2); print1(y", "))
|
|
CROSSREFS
|
Sequence in context: A095911 A013575 A075727 this_sequence A022388 A041471 A041695
Adjacent sequences: A135271 A135272 A135273 this_sequence A135275 A135276 A135277
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
Cino Hilliard (hillcino368(AT)hotmail.com), Dec 02 2007
|
|
|
Search completed in 0.002 seconds
|