login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A235791 Irregular triangle read by rows: T(n,k), n >= 1, k >= 1, in which column k lists k copies of every positive integer in nondecreasing order, and the first element of column k is in row k(k+1)/2. 240

%I #197 Jul 02 2023 13:20:06

%S 1,2,3,1,4,1,5,2,6,2,1,7,3,1,8,3,1,9,4,2,10,4,2,1,11,5,2,1,12,5,3,1,

%T 13,6,3,1,14,6,3,2,15,7,4,2,1,16,7,4,2,1,17,8,4,2,1,18,8,5,3,1,19,9,5,

%U 3,1,20,9,5,3,2,21,10,6,3,2,1,22,10,6,4,2,1,23,11,6,4,2,1,24,11,7,4,2,1

%N Irregular triangle read by rows: T(n,k), n >= 1, k >= 1, in which column k lists k copies of every positive integer in nondecreasing order, and the first element of column k is in row k(k+1)/2.

%C The alternating sum of the squares of the elements of the n-th row equals the sum of all divisors of all positive integers <= n, i.e., Sum_{k=1..A003056(n)} (-1)^(k-1)*(T(n,k))^2 = A024916(n).

%C Row n has length A003056(n) hence the first element of column k is in row A000217(k).

%C For more information see A236104.

%C The sum of row n gives A060831(n), the sum of the number of odd divisors of all positive integers <= n. - _Omar E. Pol_, Mar 01 2014. [An equivalent assertion is that the sum of row n of A237048 is the number of odd divisors of n, and this was proved by _Hartmut F. W. Hoft_ in a comment in A237048. - _N. J. A. Sloane_, Dec 07 2020]

%C Comments from _Franklin T. Adams-Watters_ on sequences related to the "symmetric representation of sigma" in A235791 and related sequences, Mar 31 2014: (Start)

%C The place to start is with A235791, which is very simple. Then go to A237591, also very simple, and A237593, still very simple.

%C You then need to interpret the rows of A237593 as Dyck paths. This interpretation is in terms of run lengths, so 2,1,1,2 means up twice, down once, up once, and down twice. Because the rows of A237593 are symmetric and of even length, this path will always be symmetric.

%C Now the surprising fact is that the areas enclosed by the Dyck path for n (laid on its side) always includes the area enclosed for n-1; and the number of squares added is sigma(n).

%C Finally, look at the connected areas enclosed by n but not by n-1; the size of these areas is the symmetric representation of sigma. (End)

%C From _Hartmut F. W. Hoft_, Apr 07 2014: (Start)

%C Mathematica function has been written to check the first property up to n = 20000.

%C T(n,(sqrt(8n+1)-1)/2+1) = 0 for all n >= 1, which is useful for formulas for A237591 and A237593. (End)

%C Alternating row sums give A240542. - _Omar E. Pol_, Apr 16 2014

%C Conjecture: T(n,k) is also the total number of partitions of all positive integers <= n into exactly k consecutive parts, i.e., the partial column sum of A285898, or in accordance with the triangles of the same family: the partial column sum of A237048. - _Omar E. Pol_, Apr 28 2017, Nov 24 2020

%C The above conjecture is true. The proof will be added soon (it uses the generating function for the columns). - _N. J. A. Sloane_, Nov 24 2020

%C T(n,k) is also the total length of all line segments between the k-th vertex and the central vertex of the largest Dyck path of the symmetric representation of sigma(n). In other words: T(n,k) is the sum of the last (A003056(n)-k+1) terms of the n-th row of A237591. - _Omar E. Pol_, Sep 07 2021

%C T(n,k) is also the Manhattan distance between the k-th vertex and the central vertex of the Dyck path described in the n-th row of the triangle A237593. - _Omar E. Pol_, Jan 11 2023

%H G. C. Greubel, <a href="/A235791/b235791.txt">Table of n, a(n) for the first 150 rows, flattened</a>

%F T(n,k) = ceiling((n+1)/k - (k+1)/2) for 1 <= n, 1 <= k <= floor((sqrt(8n+1)-1)/2) = A003056(n). - _Hartmut F. W. Hoft_, Apr 07 2014

%F G.f. for column k (k >= 1): x^(k*(k+1)/2)/( (1-x)*(1-x^k) ). - _N. J. A. Sloane_, Nov 24 2020

%F T(n,k) = Sum_{j=1..n} A237048(j,k). - _Omar E. Pol_, May 18 2017

%F T(n,k) = sqrt(A236104(n,k)). - _Omar E. Pol_, Feb 14 2018

%F Sigma(n) = Sum_{k=1..A003056(n)} (-1)^(k-1) * (T(n,k)^2 - T(n-1,k)^2), assuming that T(k*(k+1)/2-1,k) = 0. - _Omar E. Pol_, Oct 10 2018

%F a(s(n,k)) = T(n,k), n >= 1, 1 <= k <= r = floor((sqrt(8*n + 1) - 1)/2), where s(n,k) = r*n - r*(r+1)*(r+2)/6 + k translates position (row n, column k) in the triangle of this sequence to its position in the sequence. - _Hartmut F. W. Hoft_, Feb 24 2021

%e Triangle begins:

%e 1;

%e 2;

%e 3, 1;

%e 4, 1;

%e 5, 2;

%e 6, 2, 1;

%e 7, 3, 1;

%e 8, 3, 1;

%e 9, 4, 2;

%e 10, 4, 2, 1;

%e 11, 5, 2, 1;

%e 12, 5, 3, 1;

%e 13, 6, 3, 1;

%e 14, 6, 3, 2;

%e 15, 7, 4, 2, 1;

%e 16, 7, 4, 2, 1;

%e 17, 8, 4, 2, 1;

%e 18, 8, 5, 3, 1;

%e 19, 9, 5, 3, 1;

%e 20, 9, 5, 3, 2;

%e 21, 10, 6, 3, 2, 1;

%e 22, 10, 6, 4, 2, 1;

%e 23, 11, 6, 4, 2, 1;

%e 24, 11, 7, 4, 2, 1;

%e 25, 12, 7, 4, 3, 1;

%e 26, 12, 7, 5, 3, 1;

%e 27, 13, 8, 5, 3, 2;

%e 28, 13, 8, 5, 3, 2, 1;

%e ...

%e For n = 10 the 10th row of triangle is 10, 4, 2, 1, so we have that 10^2 - 4^2 + 2^2 - 1^2 = 100 - 16 + 4 - 1 = 87, the same as A024916(10) = 87, the sum of all divisors of all positive integers <= 10.

%e From _Omar E. Pol_, Nov 19 2015: (Start)

%e Illustration of initial terms in the third quadrant:

%e . y

%e Row _|

%e 1 _|1|

%e 2 _|2 _|

%e 3 _|3 |1|

%e 4 _|4 _|1|

%e 5 _|5 |2 _|

%e 6 _|6 _|2|1|

%e 7 _|7 |3 |1|

%e 8 _|8 _|3 _|1|

%e 9 _|9 |4 |2 _|

%e 10 _|10 _|4 |2|1|

%e 11 _|11 |5 _|2|1|

%e 12 _|12 _|5 |3 |1|

%e 13 _|13 |6 |3 _|1|

%e 14 _|14 _|6 _|3|2 _|

%e 15 _|15 |7 |4 |2|1|

%e 16 _|16 _|7 |4 |2|1|

%e 17 _|17 |8 _|4 _|2|1|

%e 18 _|18 _|8 |5 |3 |1|

%e 19 _|19 |9 |5 |3 _|1|

%e 20 _|20 _|9 _|5 |3|2 _|

%e 21 _|21 |10 |6 _|3|2|1|

%e 22 _|22 _|10 |6 |4 |2|1|

%e 23 _|23 |11 _|6 |4 |2|1|

%e 24 _|24 _|11 |7 |4 _|2|1|

%e 25 _|25 |12 |7 _|4|3 |1|

%e 26 _|26 _|12 _|7 |5 |3 _|1|

%e 27 _|27 |13 |8 |5 |3|2 _|

%e 28 |28 |13 |8 |5 |3|2|1|

%e ...

%e T(n,k) is also the number of cells between the k-th vertical line segment (from left to right) and the y-axis in the n-th row of the structure.

%e Note that the number of horizontal line segments in the n-th row of the structure equals A001227(n), the number of odd divisors of n.

%e Also the diagram represents the left part of the front view of the pyramid described in A245092. (End)

%e For more information about the diagram see A286001. - _Omar E. Pol_, Dec 19 2020

%e From _Omar E. Pol_, Sep 08 2021: (Start)

%e For n = 12 the symmetric representation of sigma(12) in the fourth quadrant is as shown below: _

%e | |

%e | |

%e | |

%e | |

%e | |

%e _ _ _| |

%e _| _ _|

%e _| |

%e | _|

%e | _ _|

%e _ _ _ _ _ _| |3 1

%e |_ _ _ _ _ _ _|

%e 12 5

%e .

%e For n = 12 and k = 1 the total length of all line segments between the first vertex and the central vertex of the largest Dyck path is equal to 12, so T(12,1) = 12.

%e For n = 12 and k = 2 the total length of all line segments between the second vertex and the central vertex of the largest Dyck path is equal to 5, so T(12,2) = 5.

%e For n = 12 and k = 3 the total length of all line segments between the third vertex and the central vertex of the largest Dyck path is equal to 3, so T(12,3) = 3.

%e For n = 12 and k = 4 the total length of all line segments between the fourth vertex and the central vertex of the largest Dyck path is equal to 1, so T(12,4) = 1.

%e Hence the 12th row of triangle is [12, 5, 3, 1]. (End)

%t row[n_] := Floor[(Sqrt[8*n + 1] - 1)/2]; f[n_, k_] := Ceiling[(n + 1)/k - (k + 1)/2]; Table[f[n, k], {n, 1, 150}, {k, 1, row[n]}] // Flatten (* _Hartmut F. W. Hoft_, Apr 07 2014 *)

%o (PARI) row(n) = vector((sqrtint(8*n+1)-1)\2, i, 1+(n-(i*(i+1)/2))\i); \\ _Michel Marcus_, Mar 27 2014

%o (Python)

%o from sympy import sqrt

%o import math

%o def T(n, k): return int(math.ceil((n + 1)/k - (k + 1)/2))

%o for n in range(1, 21): print([T(n, k) for k in range(1, int(math.floor((sqrt(8*n + 1) - 1)/2)) + 1)]) # _Indranil Ghosh_, Apr 25 2017

%Y Columns 1..3: A000027, A008619, A008620.

%Y Operations on rows: A003056 (number of terms), A237591 (differences between terms), A060831 (sums), A339577 (products), A240542 (alternating sums), A236104 (squares), A339576 (sums of squares), A024916 (alternating sums of squares), A237048 (differences between rows), A042974 (right border).

%Y Cf. A000203, A000217, A001227, A196020, A211343, A228813, A231345, A231347, A235794, A236106, A236112, A237270, A237271, A237593, A239660, A245092, A261699, A262626, A286000, A286001, A280850, A280851, A296508, A335616.

%K nonn,tabf

%O 1,2

%A _Omar E. Pol_, Jan 23 2014.

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 25 04:42 EDT 2024. Contains 371964 sequences. (Running on oeis4.)