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”).

A261297
Triangle read by rows, where row n contains the n smallest available numbers of primality opposite to that of n, subject to the restriction that in the whole triangle each number k can be used only k times.
3
2, 1, 4, 4, 6, 8, 2, 3, 5, 7, 4, 6, 8, 9, 10, 3, 5, 7, 11, 13, 17, 4, 6, 8, 9, 10, 12, 14, 3, 5, 7, 11, 13, 17, 19, 23, 5, 7, 11, 13, 17, 19, 23, 29, 31, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 6, 8, 9, 10, 12, 14, 15, 16, 18, 20, 21, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 6, 8, 9, 10, 12, 14, 15, 16, 18, 20, 21, 22, 24, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67
OFFSET
1,1
COMMENTS
If n is prime the entries in row n must be nonprimes, and vice versa.
The sequence can be interpreted as a graph, see Eric Angelini's post to the SeqFan list.
LINKS
E. Angelini, Vertices, edges, primes and non-primes, SeqFan list, Sept. 16, 2015.
EXAMPLE
The table starts:
row: data T(n,k); k=1..n
1: [2]
2: [1, 4]
3: [4, 6, 8]
4: [2, 3, 5, 7]
5: [4, 6, 8, 9, 10]
6: [3, 5, 7, 11, 13, 17]
7: [4, 6, 8, 9, 10, 12, 14]
8: [3, 5, 7, 11, 13, 17, 19, 23]
9: [5, 7, 11, 13, 17, 19, 23, 29, 31]
10: [5, 7, 11, 13, 17, 19, 23, 29, 31, 37]
11: [6, 8, 9, 10, 12, 14, 15, 16, 18, 20, 21]
12: [7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47]
13: [6, 8, 9, 10, 12, 14, 15, 16, 18, 20, 21, 22, 24]
14: [7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59]
PROG
(PARI) {c=[[1, 0]]; for(n=1, 20, while(#c>1 && c[1][1]==c[1][2], c=c[2..-1]); r=[]; j=0; while(#r<n, j++>#c && c=concat(c, [[c[#c][1]+1, 0]]); isprime(n)!=isprime(c[j][1]) && c[j][2]<c[j][1] && c[j][2]++ && r=concat(r, c[j][1])); print(r))}
CROSSREFS
Cf. A261298: main diagonal T(n,n).
Cf. A000040: primes, A018252: nonprimes.
Column k=1 gives A261211.
Sequence in context: A093049 A326146 A081243 * A308034 A289918 A127480
KEYWORD
nonn,tabl,look
AUTHOR
M. F. Hasler, Sep 16 2015
STATUS
approved