login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A086802
Triangle read by rows in which row n lists (prime(n)-prime(k))/2 for 2 <= k <= n.
1
0, 1, 0, 2, 1, 0, 4, 3, 2, 0, 5, 4, 3, 1, 0, 7, 6, 5, 3, 2, 0, 8, 7, 6, 4, 3, 1, 0, 10, 9, 8, 6, 5, 3, 2, 0, 13, 12, 11, 9, 8, 6, 5, 3, 0, 14, 13, 12, 10, 9, 7, 6, 4, 1, 0, 17, 16, 15, 13, 12, 10, 9, 7, 4, 3, 0, 19, 18, 17, 15, 14, 12, 11, 9, 6, 5, 2, 0, 20, 19, 18, 16, 15, 13, 12, 10, 7, 6, 3, 1, 0
OFFSET
2,4
FORMULA
(3-3)/2=0; (5-3)/2=1; (5-5)/2=0; (7-3)/2=2; (7-5)/2=1; (7-7)/2=0
EXAMPLE
0;
1, 0;
2, 1, 0;
4, 3, 2, 0;
5, 4, 3, 1, 0;
7, 6, 5, 3, 2, 0;
8, 7, 6, 4, 3, 1, 0;
10, 9, 8, 6, 5, 3, 2, 0
PROG
(PARI) fn2(n) = forprime(x=3, n, forprime(y=3, x, print1((x-y)/2", ")))
CROSSREFS
Sequence in context: A322080 A361958 A334122 * A092488 A068527 A361989
KEYWORD
easy,tabl,nonn
AUTHOR
Cino Hilliard, Aug 05 2003
STATUS
approved