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!)
A156074 Triangle read by rows: T(n, k) = 3 + prime(n+1) - prime(k+1) - prime(n-k+1). 1
1, 1, 1, 1, 2, 1, 1, 2, 2, 1, 1, 4, 4, 4, 1, 1, 2, 4, 4, 2, 1, 1, 4, 4, 6, 4, 4, 1, 1, 2, 4, 4, 4, 4, 2, 1, 1, 4, 4, 6, 4, 6, 4, 4, 1, 1, 6, 8, 8, 8, 8, 8, 8, 6, 1, 1, 2, 6, 8, 6, 8, 6, 8, 6, 2, 1, 1, 6, 6, 10, 10, 10, 10, 10, 10, 6, 6, 1, 1, 4, 8, 8, 10, 12, 10, 12, 10, 8, 8, 4, 1 (list; table; graph; refs; listen; history; text; internal format)
OFFSET
0,5
COMMENTS
Row sums are: {1, 2, 4, 6, 14, 14, 24, 22, 34, 62, 54, ...}.
LINKS
FORMULA
T(n, k) = 3 + prime(n+1) - prime(k+1) - prime(n-k+1).
EXAMPLE
Triangle begins as:
1;
1, 1;
1, 2, 1;
1, 2, 2, 1;
1, 4, 4, 4, 1;
1, 2, 4, 4, 2, 1;
1, 4, 4, 6, 4, 4, 1;
1, 2, 4, 4, 4, 4, 2, 1;
1, 4, 4, 6, 4, 6, 4, 4, 1;
1, 6, 8, 8, 8, 8, 8, 8, 6, 1;
1, 2, 6, 8, 6, 8, 6, 8, 6, 2, 1;
MAPLE
seq(seq( 3+ ithprime(n+1) -ithprime(k+1) -ithprime(n-k+1), k=0..n), n=0..15); # G. C. Greubel, Dec 02 2019
MATHEMATICA
Table[3 +Prime[n+1] -Prime[k+1] -Prime[n-k+1], {n, 0, 15}, {k, 0, n}]//Flatten
PROG
(PARI) T(n, k) = 3 + prime(n+1) - prime(k+1) - prime(n-k+1); \\ G. C. Greubel, Dec 02 2019
(Magma) P:=NthPrime; [3 +P(n+1) -P(k+1) -P(n-k+1): k in [0..n], n in [0..15]]; // G. C. Greubel, Dec 02 2019
(Sage) p=nth_prime; [[3 +p(n+1) -p(k+1) -p(n-k+1) for k in (0..n)] for n in (0..15)] # G. C. Greubel, Dec 02 2019
CROSSREFS
Sequence in context: A342767 A176653 A174842 * A051287 A278218 A216031
KEYWORD
nonn,tabl
AUTHOR
Roger L. Bagula, Feb 03 2009
EXTENSIONS
More terms added by G. C. Greubel, Dec 02 2019
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 14:10 EDT 2024. Contains 371792 sequences. (Running on oeis4.)