login
A176066
Triangle read by rows: R(n,k)=semiprime(n+1) mod (semiprime(k)+1), 1<=k<=n.
3
1, 4, 2, 0, 3, 0, 4, 0, 4, 3, 0, 1, 5, 4, 0, 1, 0, 1, 10, 6, 5, 2, 1, 2, 0, 7, 6, 0, 0, 4, 5, 3, 10, 9, 3, 2, 1, 5, 6, 4, 11, 10, 4, 3, 0, 3, 5, 3, 0, 3, 1, 11, 10, 7, 6, 4, 6, 4, 1, 4, 2, 12, 11, 8, 7, 0, 0, 0, 5, 2, 5, 3, 13, 12, 9, 8, 1, 0, 3, 3, 8, 5, 8, 6, 16, 15, 12, 11, 4, 3, 2
OFFSET
1,2
FORMULA
R(n,k) = A001358(n+1) mod (1+A001358(k)).
EXAMPLE
The triangle begins as:
1;
4, 2;
0, 3, 0;
4, 0, 4, 3;
0, 1, 5, 4, 0;
...
MAPLE
A176066 := proc(n, k) A001358(n+1) mod ( A001358(k)+1) ; end proc:
MATHEMATICA
Table[Mod[#[[n+1]], #[[;; n]]+1], {n, Length[#]-1}] & [Select[Range[50], PrimeOmega[#] == 2 &]] (* Paolo Xausa, Jun 28 2024 *)
PROG
(PARI) trg(nn) = {semip = select(n->bigomega(n) == 2, vector(nn, i, i)); for (n = 1, #semip-1, for (k = 1, n, print1(semip[n+1] % (semip[k] + 1), ", "); ); ); } \\ Michel Marcus, Sep 11 2013
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
STATUS
approved