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

A351846 Irregular triangle read by rows: T(n,k), n >= 0, k >= 0, in which n appears 4*n + 1 times in row n.

Original entry on oeis.org

0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6
Offset: 0

Views

Author

Omar E. Pol, Feb 21 2022

Keywords

Comments

a(n) is the number of hexagonal numbers A000384 less than or equal to n, not counting 0 as hexagonal.
This sequence is related to hexagonal numbers as A003056 is related to triangular numbers (or generalized hexagonal numbers) A000217.

Examples

			Triangle begins:
  0;
  1, 1, 1, 1, 1;
  2, 2, 2, 2, 2, 2, 2, 2, 2;
  3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3;
  4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4;
  5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5;
  6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6;
  ...
		

Crossrefs

Row sums give A007742.
Row n has length A016813(n).
Column 0 gives A001477, the same as the right border.
Nonzero terms give the row lengths of the triangles A347263, A347529, A351819, A351824, A352269, A352499.

Programs

  • Mathematica
    Table[PadRight[{},4n+1,n],{n,0,7}]//Flatten (* Harvey P. Dale, Jun 04 2023 *)

Formula

a(n) = floor((sqrt(8*n + 1) + 1)/4). - Ridouane Oudra, Apr 09 2023

A341309 Sum of odd divisors of n that are <= A003056(n).

Original entry on oeis.org

1, 1, 1, 1, 1, 4, 1, 1, 4, 1, 1, 4, 1, 1, 9, 1, 1, 4, 1, 6, 4, 1, 1, 4, 6, 1, 4, 8, 1, 9, 1, 1, 4, 1, 13, 4, 1, 1, 4, 6, 1, 11, 1, 1, 18, 1, 1, 4, 8, 6, 4, 1, 1, 13, 6, 8, 4, 1, 1, 9, 1, 1, 20, 1, 6, 15, 1, 1, 4, 13, 1, 13, 1, 1, 9, 1, 19, 4, 1, 6, 13, 1, 1, 11, 6, 1, 4, 12, 1, 18, 21
Offset: 1

Views

Author

N. J. A. Sloane, Feb 14 2021

Keywords

Comments

Conjecture 1: a(n) is also the total number de parts in all partitions of n into an odd number of consecutive parts. - Omar E. Pol, Mar 16 2022
Conjecture 2: row sums of A352269. - Omar E. Pol, Mar 18 2022

Crossrefs

Programs

  • Mathematica
    A341309[n_]:=With[{t=Floor[(Sqrt[8n+1]-1)/2]},DivisorSum[n,#&,OddQ[#]&&#<=t&]];
    Array[A341309,100] (* Paolo Xausa, Mar 25 2023 *)
  • PARI
    a(n) = my(m=n>>valuation(n, 2), s=(sqrtint(8*n+1)-1)\2); sumdiv(m, d, if (d <= s, d)); \\ Michel Marcus, Mar 25 2023

Formula

a(n) = A204217(n) - A352446(n), conjectured. - Omar E. Pol, Mar 16 2022
Showing 1-2 of 2 results.