login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A086800 Triangle read by rows in which row n lists differences between prime(n) and prime(k) for 1 <= k <= n. 5
0, 1, 0, 3, 2, 0, 5, 4, 2, 0, 9, 8, 6, 4, 0, 11, 10, 8, 6, 2, 0, 15, 14, 12, 10, 6, 4, 0, 17, 16, 14, 12, 8, 6, 2, 0, 21, 20, 18, 16, 12, 10, 6, 4, 0, 27, 26, 24, 22, 18, 16, 12, 10, 6, 0, 29, 28, 26, 24, 20, 18, 14, 12, 8, 2, 0, 35, 34, 32, 30, 26, 24, 20, 18, 14, 8, 6, 0 (list; table; graph; refs; listen; history; text; internal format)
OFFSET
1,4
COMMENTS
Primes in this sequence are of course twin primes.
LINKS
EXAMPLE
2-2=0; 3-2=1, 3-3=0; 5-2=3, 5-3=2, 5=5=5; 7-2=5, 7-3=4, 7-5=2, 7-7=0, ...
0;
1, 0;
3, 2, 0;
5, 4, 2, 0;
9, 8, 6, 4, 0;
11, 10, 8, 6, 2, 0;
15, 14, 12, 10, 6, 4, 0;
17, 16, 14, 12, 8, 6, 2, 0;
PROG
(PARI) fn(n) = forprime(x=2, n, forprime(y=2, x, print1(x-y", ")))
(PARI) T(n, k) = prime(n) - prime(k);
tabl(nn) = for (n=1, nn, for (k=1, n, print1(T(n, k), ", ")); print); \\ Michel Marcus, Aug 08 2017
CROSSREFS
Cf. A040976 (1st column).
Sequence in context: A021316 A092092 A308179 * A326296 A246773 A359843
KEYWORD
easy,tabl,nonn
AUTHOR
Cino Hilliard, Aug 05 2003
EXTENSIONS
Offset corrected by Michel Marcus, Aug 08 2017
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 19 21:09 EDT 2024. Contains 371798 sequences. (Running on oeis4.)