cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

Showing 1-4 of 4 results.

A327263 Array T(n,k) in which the i-th row consists of numbers > 1 not in array U(i;n,k) = (i*n*k - (i-2)*A319929(n,k))/2 where i >= 1, n >= 1 and k >= 1, read by antidiagonals.

Original entry on oeis.org

3, 5, 2, 9, 3, 2, 13, 5, 3, 2, 21, 7, 4, 3, 2, 25, 11, 5, 4, 3, 2, 33, 13, 7, 5, 4, 3, 2, 37, 17, 9, 6, 5, 4, 3, 2, 45, 19, 10, 7, 6, 5, 4, 3, 2, 57, 23, 13, 9, 7, 6, 5, 4, 3, 2, 61, 29, 15, 11, 8, 7, 6, 5, 4, 3, 2, 73, 31, 17, 12, 9, 8, 7, 6, 5, 4, 3, 2
Offset: 1

Views

Author

David Lovler, Oct 15 2019

Keywords

Comments

All the U(i;n,k) mimic the ordinary multiplication table in that they are commutative, associative, have identity element 1 and have 0. However (except when i=2) they are partially distributive, meaning that distributivity works except if an even number is partitioned into a sum of two odd numbers. Only when i=2, the odd-even-dependent A319929 term disappears and normal distributivity holds.
U(0;n,k) = A319929(n,k);
U(1;n,k) = A322630(n,k);
U(2;n,k) = n*k;
U(3;n,k) = A322744(n,k);
U(4;n,k) = A327259(n,k);
U(i;n,k) = 2i*floor(n/2)*floor(k/2) + A319929(n,k).
Row 1 is 2p-1 where p is a prime number (A076274 without 1).
Row 2 is the prime numbers.
Row 3 is A307002.
Row 4 is A327261.
The i-th row of T(n,k) consists of numbers that sieve out of the array U(i;n,k) = (i*n*k - (i-2)*A319929(n,k))/2, in numerical order.
From David Lovler, Sep 02 2020: (Start)
Row 1 has no even numbers. Row 2 has one even number. Generally, the even numbers of the i-th row start with i-1 consecutive even numbers (from 2). This is because U(i;2,2) = 2*i gives the first even number not in row i.
Row 3 seems to have even numbers that, after 2, coincide with A112774 which has an infinite number of terms. For i > 3, as i increases, row i has a denser presence of even numbers, thus each row has an infinite number of even terms.
Generalization of the twin prime conjecture: Since row 2 is the prime numbers, we can observe the twin prime conjecture that after the first three odd primes, the sprinkling of pairs of consecutive prime numbers never ends. Concerning just odd terms, a similar conjecture can be stated for rows i >= 3. Row 3 starts with four odd numbers then the sprinkling of three consecutive odd number never ends. Row 4 starts with five odd numbers then the sprinkling of four consecutive odd numbers never ends. The pattern continues as row i starts with i+1 odd numbers then the sprinkling of i consecutive odd numbers never ends. We can take this back to row 1 which starts with two odd numbers then continues with isolated odd numbers.
Studying the even terms, there is an analog to the above generalization of the twin prime conjecture. Row 3 starts with two even numbers then continues with isolated even numbers. Row 4 starts with three even numbers then the sprinkling of pairs of consecutive even numbers never ends. Row 5 starts with four even numbers then the sprinkling of three consecutive even numbers never ends. The pattern continues as row i starts with i-1 even numbers then the sprinkling of i-2 consecutive even numbers never ends.
(End)

Examples

			3  5  9  13  21  25  33  37  45  57  61  73  81  85  93 105 117 121 133 141 145 ...
2  3  5   7  11  13  17  19  23  29  31  37  41  43  47  53  59  61  67  71  73 ...
2  3  4   5   7   9  10  13  15  17  21  22  23  25  29  31  34  37  39  41  45 ...
2  3  4   5   6   7   9  11  12  14  15  17  19  21  22  25  27  28  29  31  35 ...
2  3  4   5   6   7   8   9  11  13  14  16  17  18  19  21  23  25  26  28  29 ...
2  3  4   5   6   7   8   9  10  11  13  15  16  18  19  20  21  22  23  25  27 ...
2  3  4   5   6   7   8   9  10  11  12  13  15  17  18  20  21  22  23  24  25 ...
2  3  4   5   6   7   8   9  10  11  12  13  14  15  17  19  20  22  23  24  25 ...
2  3  4   5   6   7   8   9  10  11  12  13  14  15  16  17  19  21  22  24  25 ...
2  3  4   5   6   7   8   9  10  11  12  13  14  15  16  17  18  19  21  23  24 ...
...
		

Crossrefs

Programs

  • Mathematica
    row=12;max=200;U[i_,n_,k_]:=(i*n*k-(i-2)If[OddQ@n,If[OddQ@k,n+k-1,k],If[OddQ@k,n,0]])/2;t=Table[c=Union@Flatten@Table[U[i,n,k],{n,2,max},{k,2,max}];Complement[Range[2,max],c][[;;row]],{i,row}];Flatten@Table[t[[m,k-m+1]],{k,row},{m,k}] (* Giorgos Kalogeropoulos, Jun 08 2021 *)

Formula

With one exception there are likely no formulas for the rows of T(n,k) since their creation is based on a sieving process like the familiar prime number sieve. The exception is T(1,k) = 2*T(2,k)-1.

A345357 Numbers m > 4 such that [m-2..m+2] belong to A327261.

Original entry on oeis.org

5, 717, 2637, 14157, 89037, 112077, 149517, 156957, 180477, 235917, 255357, 267837, 269997, 293037, 399357, 447837, 533517, 592557, 679677, 703917, 770157, 909837, 929997, 1043997, 1158237, 1257597, 1283037, 1296477, 1333197, 1369197, 1500237, 1971357, 1998717, 2062557, 2099997
Offset: 1

Views

Author

David Lovler, Jun 15 2021

Keywords

Comments

Terms > 5 have 7 for their units digit. This is because the units digit of A327261 terms can't be 0 or 3 (row 3 of A327259 has all numbers that end in 0 or 3) and there are at most 2 consecutive even terms (see comment for A327263).

Crossrefs

Programs

  • PARI
    T319929(n, k) = if (n%2, if (k%2, n+k-1, k), if (k%2, n, 0));
    T(n, k) = 2*n*k - T319929(n, k); \\ A327259
    list(nn) = {my(list = List()); for (n=2, nn, for (k=2, nn\n, listput(list, T(n, k)); ); ); setminus([1..nn], Set(list)); } \\ A327261
    lista(nn) = {my(v=Vec(list(nn))); for (m=5, #v-1, my(x=v[m]); if (vecsearch(v, x-2) && vecsearch(v, x-1) && vecsearch(v, x+1) && vecsearch(v, x+2), print1(x, ", ")); ); }

A340748 Numbers m > 3 such that m-1, m, m+1 belong to A307002.

Original entry on oeis.org

4, 22, 94, 142, 262, 334, 358, 694, 862, 934, 1174, 1678, 1822, 2182, 2854, 3022, 3862, 3958, 4054, 4702, 4894, 5062, 5398, 5854, 6022, 6238, 6382, 6694, 7534, 7558, 7822, 8038, 8422, 9502, 9934, 10078, 10342, 10558, 11062, 11758, 12574, 12622, 13942, 14038, 14254, 14374, 15094, 16438, 16462
Offset: 1

Views

Author

David Lovler, Jan 30 2021

Keywords

Comments

All terms m == 1 (mod 3). To prove this, look at gaps of 3 in row 2 of array A322744(n,k). The longest strings of consecutive numbers not in A322744(n,k) can occur only for these 3 numbers. The number following such a gap is A322744(2,e) = (3*2*e)/2 = 3e for some even e. The middle of the string, m = A322744(2,e) - 2 = 3e - 2. Thus m == 1 (mod 3). After the first term, all terms m == 2 (mod 4).- David Lovler, Nov 29 2021

Crossrefs

Programs

  • PARI
    T319929(n, k) = if (n%2, if (k%2, n+k-1, k), if (k%2, n, 0));
    T(n, k) = (3*n*k - T319929(n, k))/2; \\ A322744
    list(nn) = {my(list = List()); for (n=2, nn, for (k=2, nn\n, listput(list, T(n, k)); ); ); setminus([1..nn], Set(list)); } \\ A307002
    lista(nn) = {my(v=Vec(list(nn))); for (m=4, #v-1, my(x=v[m]); if (vecsearch(v, x-1) && vecsearch(v, x+1), print1(x, ", ")););} \\ Michel Marcus, Apr 02 2021

A345473 Given the associative array U(n,k) described below, numbers m > 5 such that [m-3..m+3] are not in U(n,k) (excluding the first row and column).

Original entry on oeis.org

6, 56, 236, 956, 2636, 3356, 6236, 9716, 10196, 13436, 15896, 18296, 24716, 26396, 36116, 36956, 37196, 42956, 53036, 69356, 82556, 84536, 119516, 121496, 181556, 201116, 204236, 221756, 252116, 259676, 332636, 359036, 365036, 401516
Offset: 1

Views

Author

David Lovler, Jun 21 2021

Keywords

Comments

U(n,k) is a commutative and associative array with integer values that depend on whether n and k are odd or even.
U(n,k) = (5*n*k - 3*(n+k-1))/2 when n and k are both odd.
U(n,k) = (5*n*k - 3*n)/2 when n is even and k is odd.
U(n,k) = (5*n*k - 3*k)/2 when n is odd and k is even.
U(n,k) = 5*n*k/2 when n and k are both even.
U(n,1) = n for all n (identity element).
U(n,0) = 0 for all n.
The ordered list of numbers >5 that do not appear in array U(n,k) for n and k > 1 can have at most 3 consecutive even numbers and at most 5 consecutive odd numbers. See rows 2 and 3.
The terms all end in 6 because row 2 of U(n,k) has all numbers that end in 0 or 2 and there are at most 3 consecutive even numbers in the set of numbers not in array U(n,k) excluding the first row and column (see comment for A327263).
There are 119 terms up to 5*10^6.

Examples

			Array U(n,k) begins:
   1   2   3   4   5   6   7   8   9  10
   2  10  12  20  22  30  32  40  42  50
   3  12  15  24  27  36  39  48  51  60
   4  20  24  40  44  60  64  80  84 100
   5  22  27  44  49  66  71  88  93 110
   6  30  36  60  66  90  96 120 126 150
   7  32  39  64  71  96 103 128 135 160
   8  40  48  80  88 120 128 160 168 200
   9  42  51  84  93 126 135 168 177 210
  10  50  60 100 110 150 160 200 210 250
Numbers up to 100 not in U(n,k) (excluding row 1 and column 1): 2, 3, 4, 5, 6, 7, 8, 9, 11, 13, 14, 16, 17, 18, 19, 21, 23, 25, 26, 28, 29, 31, 33, 34, 35, 37, 38, 41, 43, 45, 46, 47, 53, 54, 55, 56, 57, 58, 59, 61, 65, 67, 68, 69, 73, 74, 76, 77, 78, 79, 81, 83, 85, 86, 89, 91, 94, 95, 97, 98.
		

Crossrefs

In A327263 U(n,k) is called U(5;n,k).

Programs

  • PARI
    T319929(n, k) = if (n%2, if (k%2, n+k-1, k), if (k%2, n, 0));
    U(n, k) = (5*n*k - 3*T319929(n, k))/2;
    list(nn) = {my(list = List()); for (n=2, nn, for (k=2, nn\n, listput(list, U(n, k)); ); ); setminus([1..nn], Set(list)); }
    lista(nn) = {my(v=Vec(list(nn))); for (m=6, #v-1, my(x=v[m]); if (#setintersect(v,[x-3..x+3])==7, print1(x, ", ")); ); }
Showing 1-4 of 4 results.