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

A377809 k*(k+3)/2 appears k times.

Original entry on oeis.org

2, 5, 5, 9, 9, 9, 14, 14, 14, 14, 20, 20, 20, 20, 20, 27, 27, 27, 27, 27, 27, 35, 35, 35, 35, 35, 35, 35, 44, 44, 44, 44, 44, 44, 44, 44, 54, 54, 54, 54, 54, 54, 54, 54, 54, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 90
Offset: 1

Views

Author

Chai Wah Wu, Nov 08 2024

Keywords

Examples

			As triangle:
   2;
   5,  5;
   9,  9,  9;
  14, 14, 14, 14;
  20, 20, 20, 20, 20;
  ...
		

Crossrefs

Programs

  • Mathematica
    s={};Do[AppendTo[s,Table[k(k+3)/2,k]],{k,12}];Flatten[s] (* James C. McMahon, Nov 09 2024 *)
  • Python
    from math import isqrt
    def A377809(n): return (r:=(m:=isqrt(k:=n<<1))+(k>m*(m+1)))*(r+3)>>1

Formula

a(n) = A002024(n)*(A002024(n)+3)/2.
First difference of A119713.
T(n,k) = A000096(n) for 1 <= k <= n. - Alois P. Heinz, Nov 09 2024
G.f.: x*y*(2 - x*y)/((1 - x)*(1 - x*y)^3). - Stefano Spezia, Nov 09 2024
Showing 1-1 of 1 results.