OFFSET
1,3
EXAMPLE
Triangle begins:
n ....... Pairs
1 ..........0
2 ........ 1,3
3 ....... 1,0,5
4 ...... 1,3,5,7
5 ..... 0,3,0,7,0
6 .... 1,0,5,7,0,11
PROG
(PARI) iscomp(n) = (n!=1) && !isprime(n);
vecp(n) = {v = vector(n, i, 2*i-1); for (i = 1, n\2, if (iscomp(v[i]) || iscomp(v[n-i+1]), v[i] = 0; v[n-i+1] = 0); ); if ((n % 2), v[n\2+1] = 0); v; }
trgp(nn) = {for (n = 1, nn, v = vecp(n); for (k = 1, n, print1(v[k], ", "); ); print(); ); } \\ Michel Marcus, Feb 13 2014
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Omar E. Pol, Jan 25 2009
EXTENSIONS
More terms from Michel Marcus, Feb 13 2014
STATUS
approved