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-10 of 10 results.

A322744 Array T(n,k) = (3*n*k - A319929(n,k))/2, n >= 1, k >= 1, read by antidiagonals.

Original entry on oeis.org

1, 2, 2, 3, 6, 3, 4, 8, 8, 4, 5, 12, 11, 12, 5, 6, 14, 16, 16, 14, 6, 7, 18, 19, 24, 19, 18, 7, 8, 20, 24, 28, 28, 24, 20, 8, 9, 24, 27, 36, 33, 36, 27, 24, 9, 10, 26, 32, 40, 42, 42, 40, 32, 26, 10, 11, 30, 35, 48, 47, 54, 47, 48, 35, 30, 11, 12, 32, 40, 52, 56, 60, 60, 56, 52, 40, 32, 12
Offset: 1

Views

Author

David Lovler, Dec 24 2018

Keywords

Comments

Associative multiplication-like table whose values depend on whether n and k are odd or even.
Associativity is proved by checking the formula with eight cases of three odd and even arguments. T(n,k) is distributive as long as partitioning an even number into two odd numbers is not allowed.

Examples

			Array T(n,k) begins:
   1   2   3   4   5   6   7   8   9  10
   2   6   8  12  14  18  20  24  26  30
   3   8  11  16  19  24  27  32  35  40
   4  12  16  24  28  36  40  48  52  60
   5  14  19  28  33  42  47  56  61  70
   6  18  24  36  42  54  60  72  78  90
   7  20  27  40  47  60  67  80  87 100
   8  24  32  48  56  72  80  96 104 120
   9  26  35  52  61  78  87 104 113 130
  10  30  40  60  70  90 100 120 130 150
		

Crossrefs

Equals A003991 + A322630 - A319929.
0 and diagonal is A354594.

Programs

  • Mathematica
    Table[Function[n, (3 n k - If[OddQ@ n, If[OddQ@ k, n + k - 1, k], If[OddQ@ k, n, 0]])/2][m - k + 1], {m, 12}, {k, m}] // Flatten (* Michael De Vlieger, Apr 21 2019 *)
  • 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;
    matrix(6, 6, n, k, T(n, k)) \\ Michel Marcus, Dec 27 2018

Formula

T(n,k) = (3*n*k - (n + k - 1))/2 if n is odd and k is odd;
T(n,k) = (3*n*k - n)/2 if n is even and k is odd;
T(n,k) = (3*n*k - k)/2 if n is odd and k is even;
T(n,k) = 3*n*k/2 if n is even and k is even.
T(n,k) = 6*floor(n/2)*floor(k/2) + A319929(n,k).
T(n,n) = A354594(n). - David Lovler, Jul 09 2022

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.

A327259 Array T(n,k) = 2*n*k - A319929(n,k), n >= 1, k >= 1, read by antidiagonals.

Original entry on oeis.org

1, 2, 2, 3, 8, 3, 4, 10, 10, 4, 5, 16, 13, 16, 5, 6, 18, 20, 20, 18, 6, 7, 24, 23, 32, 23, 24, 7, 8, 26, 30, 36, 36, 30, 26, 8, 9, 32, 33, 48, 41, 48, 33, 32, 9, 10, 34, 40, 52, 54, 54, 52, 40, 34, 10, 11, 40, 43, 64, 59, 72, 59, 64, 43, 40, 11, 12, 42, 50, 68, 72, 78, 78, 72, 68, 50, 42, 12
Offset: 1

Views

Author

David Lovler, Aug 27 2019

Keywords

Comments

Associative multiplication-like table whose values depend on whether n and k are odd or even.
Associativity is proved by checking the formula with eight cases of three odd and even arguments. T(n,k) is distributive as long as partitioning an even number into two odd numbers is not allowed.
T(n,k) has the same group structure as A319929, A322630 and A322744. For those arrays, position (3,3) is 5, 7 and 11 respectively. T(3,3) = 13. If we didn't have the formula for these arrays, their entries could be computed knowing one position and applying the arithmetic rules.

Examples

			Array T(n,k) begins:
   1   2   3   4   5   6   7   8   9  10
   2   8  10  16  18  24  26  32  34  40
   3  10  13  20  23  30  33  40  43  50
   4  16  20  32  36  48  52  64  68  80
   5  18  23  36  41  54  59  72  77  90
   6  24  30  48  54  72  78  96 102 120
   7  26  33  52  59  78  85 104 111 130
   8  32  40  64  72  96 104 128 136 160
   9  34  43  68  77 102 111 136 145 170
  10  40  50  80  90 120 130 160 170 200
		

Crossrefs

Equals A322744 + A322630 - A319929.
Equals 4*A322630 - 3*A319929.
0 and diagonal is A354595.

Programs

  • Mathematica
    T[n_,k_]:=2n*k-If[Mod[n,2]==1,If[Mod[k,2]==1,n+k-1,k],If[Mod[k,2]==1,n,0]]; MatrixForm[Table[T[n,k],{n,1,10},{k,1,10}]] (* Stefano Spezia, Sep 05 2019 *)
  • PARI
    T(n,k) = 2*n*k - if (n%2, if (k%2, n+k-1, k), if (k%2, n, 0));
    matrix(8, 8, n, k, T(n,k)) \\ Michel Marcus, Sep 04 2019

Formula

T(n,k) = 2*n*k - n - k + 1 if n is odd and k is odd;
T(n,k) = 2*n*k - n if n is even and k is odd;
T(n,k) = 2*n*k - k if n is odd and k is even;
T(n,k) = 2*n*k if n is even and k is even.
T(n,k) = 8*floor(n/2)*floor(k/2) + A319929(n,k).
T(n,n) = A354595(n). - David Lovler, Jul 09 2022
Writing T(n,k) as (4*n*k - 2*A319929(n,k))/2 shows that the array is U(4;n,k) of A327263. - David Lovler, Jan 15 2022

A322630 Arithmetic table similar to multiplication with different rules for odd and even products, read by antidiagonals. T(n,k) = (n*k + A319929(n,k))/2.

Original entry on oeis.org

1, 2, 2, 3, 2, 3, 4, 4, 4, 4, 5, 4, 7, 4, 5, 6, 6, 8, 8, 6, 6, 7, 6, 11, 8, 11, 6, 7, 8, 8, 12, 12, 12, 12, 8, 8, 9, 8, 15, 12, 17, 12, 15, 8, 9, 10, 10, 16, 16, 18, 18, 16, 16, 10, 10, 11, 10, 19, 16, 23, 18, 23, 16, 19, 10, 11
Offset: 1

Views

Author

David Lovler, Dec 20 2018

Keywords

Comments

This table is akin to multiplication in that it is associative, 1 is the identity and 0 takes any number to 0. Associativity is proved by checking eight cases of three ordered odd and even numbers. Distributivity works except if an even number is partitioned into a sum of two odd numbers.
Excluding the first row and the first column, every number in the table is of the form 2i*j or 2i*j - 1 where i and j > 0. Every positive even number appears in the table. Odd numbers that do not appear are of the form 2p - 1 where p is a prime number.

Examples

			Array T(n,k) begins:
   1   2   3   4   5   6   7   8   9  10
   2   2   4   4   6   6   8   8  10  10
   3   4   7   8  11  12  15  16  19  20
   4   4   8   8  12  12  16  16  20  20
   5   6  11  12  17  18  23  24  29  30
   6   6  12  12  18  18  24  24  30  30
   7   8  15  16  23  24  31  32  39  40
   8   8  16  16  24  24  32  32  40  40
   9  10  19  20  29  30  39  40  49  50
  10  10  20  20  30  30  40  40  50  50
		

Crossrefs

0 and diagonal is A213037.

Programs

Formula

T(n,k) = (n*k + n + k - 1)/2 if n is odd and k is odd;
T(n,k) = (n*k + n)/2 if n is even and k is odd;
T(n,k) = (n*k + k)/2 if n is odd and k is even;
T(n,k) = n*k/2 if n is even and k is even.

Extensions

Name clarified by David Lovler, Jan 24 2022

A307002 Numbers > 1 not of the form (3n*k - A319929(n,k))/2 where n and k > 1.

Original entry on oeis.org

2, 3, 4, 5, 7, 9, 10, 13, 15, 17, 21, 22, 23, 25, 29, 31, 34, 37, 39, 41, 45, 46, 49, 53, 55, 57, 58, 63, 65, 69, 71, 73, 77, 79, 81, 82, 85, 93, 94, 95, 97, 101, 105, 106, 109, 111, 118, 119, 121, 125, 129, 133, 135, 137, 141, 142, 143, 149, 151, 153, 157
Offset: 1

Views

Author

David Lovler, Mar 19 2019

Keywords

Comments

All even terms > 2 appear to be semiprimes of the form 6m+4 (A112774).
The subsequence of odd terms is A307001. - David Lovler, Jan 17 2022

Crossrefs

Third row of array A327263.

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
    lista(nn) = {my(list = List()); for (n=2, nn, for (k=2, nn\n, listput(list, T(n, k)););); setminus([2..nn], Set(list));} \\ Michel Marcus, Jan 24 2021

Extensions

Name amended by David Lovler, Jan 25 2022

A327261 Numbers > 1 not of the form 2n*k - A319929(n,k) where n and k > 1.

Original entry on oeis.org

2, 3, 4, 5, 6, 7, 9, 11, 12, 14, 15, 17, 19, 21, 22, 25, 27, 28, 29, 31, 35, 37, 38, 39, 44, 45, 46, 47, 49, 51, 55, 57, 61, 62, 65, 67, 69, 71, 75, 76, 79, 81, 86, 87, 89, 91, 92, 94, 97, 99, 101, 105, 107, 109, 115, 117, 118, 119, 121
Offset: 1

Views

Author

David Lovler, Aug 27 2019

Keywords

Comments

The subsequence of odd terms is A327260. - David Lovler, Jan 23 2022

Crossrefs

Fourth row of array A327263.

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
    lista(nn) = {my(list = List()); for (n=2, nn, for (k=2, nn\n, listput(list, T(n, k)); ); ); setminus([2..nn], Set(list)); } \\ David Lovler, Apr 30 2021

Extensions

Name amended David Lovler, Jan 22 2022

A334922 Square array T(n,k) = ((3/2)*n*k + (1/2)*A319929(n,k))/2, n >= 1, k >= 1, read by antidiagonals.

Original entry on oeis.org

1, 2, 2, 3, 3, 3, 4, 5, 5, 4, 5, 6, 8, 6, 5, 6, 8, 10, 10, 8, 6, 7, 9, 13, 12, 13, 9, 7, 8, 11, 15, 16, 16, 15, 11, 8, 9, 12, 18, 18, 21, 18, 18, 12, 9, 10, 14, 20, 22, 24, 24, 22, 20, 14, 10, 11, 15, 23, 24, 29, 27, 29, 24, 23, 15, 11
Offset: 1

Views

Author

David Lovler, May 16 2020

Keywords

Comments

T(n,k) is commutative, associative, has identity element 1 and has 0. Also it is distributive except when an even number is partitioned into two odd numbers. Thus it has a multiplicative structure similar to that of A319929, A322630, A322744 and A327259 except that T(odd,odd) is not always odd, T(even,even) is not always even and T(odd,even) is not always even.
T(n,k) is in the same form as the supplementary arrays of A327263 called U(i;n,k). Here (and in A334923) i is being incremented by 1/2. When i is incremented by 1/4 or less, array values cease to be all integers, although all of the multiplication rules still hold.

Examples

			Array begins:
1   2   3   4   5   6   7   8   9  10 ...
2   3   5   6   8   9  11  12  14  15 ...
3   5   8  10  13  15  18  20  23  25 ...
4   6  10  12  16  18  22  24  28  30 ...
5   8  13  16  21  24  29  32  37  40 ...
6   9  15  18  24  27  33  36  42  45 ...
7  11  18  22  29  33  40  44  51  55 ...
8  12  20  24  32  36  44  48  56  60 ...
9  14  23  28  37  42  51  56  65  70 ...
10 15  25  30  40  45  55  60  70  75 ...
...
		

Crossrefs

Programs

  • Mathematica
    Table[Function[n, ((3/2)*n*k + (1/2)*If[OddQ@ n, If[OddQ@ k, n + k - 1, k], If[OddQ@ k, n, 0]])/2][m - k + 1], {m, 11}, {k, m}] // Flatten (* Michael De Vlieger, Jun 23 2020 *)

Formula

T(n,k) = 3*floor(n/2)*floor(k/2) + A319929(n,k).
T(n,k) = (A322630(n,k) + n*k)/2.
T(n,k) = (A319929 + A322744(n,k))/2.
T(n,k) = 2*n*k - A334923(n,k).

A334923 Square array T(n,k) = ((5/2)*n*k - (1/2)*A319929(n,k))/2, n >= 1, k >= 1, read by antidiagonals.

Original entry on oeis.org

1, 2, 2, 3, 5, 3, 4, 7, 7, 4, 5, 10, 10, 10, 5, 6, 12, 14, 14, 12, 6, 7, 15, 17, 20, 17, 15, 7, 8, 17, 21, 24, 24, 21, 17, 8, 9, 20, 24, 30, 29, 30, 24, 20, 9, 10, 22, 28, 34, 36, 36, 34, 28, 22, 10, 11, 25, 31, 40, 41, 45, 41, 40, 31, 25, 11
Offset: 1

Views

Author

David Lovler, May 25 2020

Keywords

Comments

T(n,k) is commutative, associative, has identity element 1 and has 0. Also it is distributive except when an even number is partitioned into two odd numbers. Thus it has a multiplicative structure similar to that of A319929, A322630, A322744 and A327259 except that T(odd,odd) is not always odd, T(even,even) is not always even and T(odd,even) is not always even.
T(n,k) is in the same form as the supplementary arrays of A327263 called U(i;n,k). Here (and in A334922) i is being incremented by 1/2. When i is incremented by 1/4 or less, array values cease to be all integers, although all of the multiplication rules still hold.

Examples

			Array begins:
1   2   3   4   5   6   7   8   9  10 ...
2   5   7  10  12  15  17  20  22  25 ...
3   7  10  14  17  21  24  28  31  35 ...
4  10  14  20  24  30  34  40  44  50 ...
5  12  17  24  29  36  41  48  53  60 ...
6  15  21  30  36  45  51  60  66  75 ...
7  17  24  34  41  51  58  68  75  85 ...
8  20  28  40  48  60  68  80  88 100 ...
9  22  31  44  53  66  75  88  97 110 ...
10 25  35  50  60  75  85 100 110 125 ...
...
		

Crossrefs

Programs

  • Mathematica
    Table[Function[n, ((5/2)*n*k - (1/2)*If[OddQ@ n, If[OddQ@ k, n + k - 1, k], If[OddQ@ k, n, 0]])/2][m - k + 1], {m, 11}, {k, m}] // Flatten (* Michael De Vlieger, Jun 23 2020 *)

Formula

T(n,k) = 5*floor(n/2)*floor(k/2) + A319929(n,k).
T(n,k) = (n*k + A322744(n,k))/2.
T(n,k) = (A322630(n,k) + A327259(n,k))/2.
T(n,k) = 2*n*k - A334922(n,k).

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

Original entry on oeis.org

8, 106, 26874, 105834, 1080234
Offset: 1

Views

Author

David Lovler, Jun 22 2021

Keywords

Comments

There are no more terms up to 5*10^6.
All terms equal 1 (mod 7).
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) = (7*n*k - 5*(n+k-1))/2 when n and k are both odd,
U(n,k) = (7*n*k - 5*n)/2 when n is even and k is odd,
U(n,k) = (7*n*k - 5*k)/2 when n is odd and k is even and
U(n,k) = 7*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.
U(n,k) can be expressed as (7*n*k - 5*U(0;n,k))/2, where U(0;n,k) has four cases.
U(0;n,k) = n+k-1 when n and k are both odd,
U(0;n,k) = n when n is even and k is odd,
U(0;n,k) = k when n is odd and k is even and
U(0;n,k) = 0 when n and k are both even.
The ordered list of numbers > 7 that do not appear in array U(n,k) for n and k > 1 can have at most 5 consecutive even numbers and at most 7 consecutive odd numbers. See rows 2 and 3.
U(n,k) is part of a hierarchy of multiplication-like arrays, mentioned in A327263, in which the entries depend on the parity of n and k. U(0;n,k), which is A319929(n,k), is their common parity-dependent component. For i >= 0, U(i;n,k) = (i*n*k - (i-2)*U(0;n,k))/2. In the current sequence U(n,k) = U(7;n,k). Each of these arrays leaves behind a list of numbers that do not appear outside of row 1 and column 1. Think of the prime number sieve.
U(2;n,k) is normal multiplication. For i > 2, these lists are progressively more dense and include even numbers as well as odd numbers. This allows strings of consecutive integers. Here we are interested in the maximum length strings for each i.
The ordered list of numbers > i that do not appear in array U(i;n,k) for n and k > 1 can have at most i-2 consecutive even numbers and at most i consecutive odd numbers. To verify this, look at rows 2 and 3. i consecutive odd numbers cannot interleaf with i-2 even numbers, but i-1 odd numbers can. Thus the longest strings for each i are of length 2i-3. When i is even, m is odd. When i is odd, m is even.
In general, there are more terms when i is odd than when i is even. This is because there are a few ways that i consecutive odd number can overlap i-2 consecutive even numbers.
For this sequence and similar sequences constructed from U(i;n,k), all terms m == 1 (mod i). To prove this, look at gaps of 2i-3 in row 2 of U(i;n,k). The longest strings of consecutive numbers not in U(i;n,k) can occur only for these 2i-3 numbers. The second number before any of the gaps is an even number of the form U(i;2,e) = i*2*e/2 == 0 (mod i) (where e is an even number). The middle of the string, m = U(i;2,e) + i + 1. Thus m == 1 (mod i).
Likewise, for any i, all terms m == 2 (mod i+1).
The following observations are included to expand upon the theme. For odd i in [9..23], the number of terms in [i+2..5*10^6] represented as [i, number of terms] are [9, 3], [11, 8], [13, 3], [15, 0], [17, 3], [19, 3], [21, 0], [23, 3]. For odd i in [25..99], 11 i's have no terms in [i+2..5*10^5], 12 have 1 such term, 9 have 2, 4 have 3, 1 has 4 and 1 has 5 such terms.
The scarcity of terms for even i's is borne out by the observation that up to 5*10^6, for even i in [6..22], the only terms > i+1 occur when i = 14 (1667), i = 20 (3341 and 1663181) and i = 22 (16171). Continuing the observation for even i in [24..140], up to 5*10^5 only 14 i's have a term > i+1.

Examples

			Array U(0;n,k) = A319929(n,k) begins:
   1   2   3   4   5   6   7   8   9  10
   2   0   2   0   2   0   2   0   2   0
   3   2   5   4   7   6   9   8  11  10
   4   0   4   0   4   0   4   0   4   0
   5   2   7   4   9   6  11   8  13  10
   6   0   6   0   6   0   6   0   6   0
   7   2   9   4  11   6  13   8  15  10
   8   0   8   0   8   0   8   0   8   0
   9   2  11   4  13   6  15   8  17  10
  10   0  10   0  10   0  10   0  10   0
Array U(n,k) = U(7;n,k) begins:
   1   2   3   4   5   6   7   8   9  10
   2  14  16  28  30  42  44  56  58  70
   3  16  19  32  35  48  51  64  67  80
   4  28  32  56  60  84  88 112 116 140
   5  30  35  60  65  90  95 120 125 150
   6  42  48  84  90 126 132 168 174 210
   7  44  51  88  95 132 139 176 183 220
   8  56  64 112 120 168 176 224 232 280
   9  58  67 116 125 174 183 232 241 290
  10  70  80 140 150 210 220 280 290 350
Numbers up to 200 not in U(n,k) (excluding row 1 and column 1): 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 15, 17, 18, 20, 21, 22, 23, 24, 25, 26, 27, 29, 31, 33, 34, 36, 37, 38, 39, 40, 41, 43, 45, 46, 47, 49, 50, 52, 53, 54, 55, 57, 59, 61, 62, 63, 66, 68, 69, 71, 73, 74, 75, 76, 77, 78, 79, 81, 82, 85, 87, 89, 91, 92, 93, 94, 97, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 113, 117, 118, 119, 121, 122, 123, 124, 127, 129, 130, 133, 134, 135, 136, 137, 138, 141, 143, 145, 146, 148, 149, 151, 152, 153, 157, 158, 159, 161, 162, 164, 165, 166, 167, 169, 171, 173, 175, 177, 178, 181, 186, 187, 188, 189, 190, 191, 193, 194, 197, 199.
		

Crossrefs

In A327263 U(n,k) is called U(7;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) = (7*n*k - 5*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=8, #v-1, my(x=v[m]); if (#setintersect(v, [x-5..x+5])==11, print1(x, ", ")); ); }
    
  • PARI
    /* This program computes terms of sequences based on U(i;n,k) for i >= 2. */
    T319929(n, k) = if (n%2, if (k%2, n+k-1, k), if (k%2, n, 0));
    U(n, k) = (i*n*k - (i-2)*T319929(n, k))/2; \\ U(i; n, k)
    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=i+1, #v-1, my(x=if(Mod(v[m],i)==1,v[m])); if (#setintersect(v,[x-i+2..x+i-2])==2*i-3, print1(x, ", ")); ); }
    /* Type for example: i=4; lista(10^6) */

A354596 Array T(n,k) = k^2 + (2n-4)*floor(k/2)^2, n >= 0, k >= 0, read by descending antidiagonals.

Original entry on oeis.org

0, 1, 0, 0, 1, 0, 5, 2, 1, 0, 0, 7, 4, 1, 0, 9, 8, 9, 6, 1, 0, 0, 17, 16, 11, 8, 1, 0, 13, 18, 25, 24, 13, 10, 1, 0, 0, 31, 36, 33, 32, 15, 12, 1, 0, 17, 32, 49, 54, 41, 40, 17, 14, 1, 0, 0, 49, 64, 67, 72, 49, 48, 19, 16, 1, 0, 21, 50, 81, 96, 85, 90, 57, 56, 21, 18, 1, 0
Offset: 0

Views

Author

David Lovler, Jun 01 2022

Keywords

Comments

Column k is an arithmetic progression with difference 2*A008794(k).
Odd rows of A133728 triangle are contained in row 0.
For i = 0 through 4, row i is 0 and the diagonal of A319929, A322630 = A213037, A003991, A322744, and A327259, respectively. In general, row i is 0 and the diagonal of array U(i;n,k) described in A327263.

Examples

			T(n,k) begins:
  0,   1,   0,   5,   0,   9,   0,  13, ...
  0,   1,   2,   7,   8,  17,  18,  31, ...
  0,   1,   4,   9,  16,  25,  36,  49, ...
  0,   1,   6,  11,  24,  33,  54,  67, ...
  0,   1,   8,  13,  32,  41,  72,  85, ...
  0,   1,  10,  15,  40,  49,  90, 103, ...
  0,   1,  12,  17,  48,  57, 108, 121, ...
  ...
		

Crossrefs

Programs

  • Mathematica
    T[n_, k_] := k^2 + (2*n - 4)*Floor[k/2]^2; Table[T[n - k, k], {n, 0, 10}, {k, n, 0, -1}] // Flatten (* Amiram Eldar, Jun 20 2022 *)
  • PARI
    T(n,k) = k^2 + (2*n-4)*(k\2)^2;

Formula

T(n,k) = U(n;k,k) (see A327263).
For each row, T(n,k) = T(n,k-1) + 2*T(n,k-2) - 2*T(n,k-3) - T(n,k-4) + T(n,k-5), k >= 5.
G.f. for row n: x*(1 + (2*n-1)*x + 3*x^2 + (2*n-3)*x^3)/((1 - x)^3*(1 + x)^2). When n = 2, this reduces to x*(1 + x)/(1 - x)^3.
E.g.f. for row n: (((4-n)*x + n*x^2)*cosh(x) + (n-2 + n*x + n*x^2)*sinh(x))/2. When n = 2, this reduces to (x + x^2)*cosh(x) + (x + x^2)*sinh(x) = (x + x^2)*exp(x).
Showing 1-10 of 10 results.