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.

A334007 a(n) is the least integer that can be expressed as the sum of one or more consecutive nonzero triangular numbers in exactly n ways.

Original entry on oeis.org

1, 10, 2180, 10053736, 13291443468940
Offset: 1

Views

Author

Ilya Gutkovskiy, Apr 12 2020

Keywords

Examples

			Let S(k, m) denote the sum of m triangular numbers starting from k(k+1)/2. We have
a(1) = S(1, 1);
a(2) = S(4, 1) = S(1, 3);
a(3) = S(31, 4) = S(27, 5) = S(9, 15);
a(4) = S(945, 22) = S(571, 56) = S(968, 21) = S(131, 266);
a(5) = S(4109, 38947) = S(25213, 20540) = S(10296, 32943) = S(32801, 15834) = S(31654, 16472).
		

Crossrefs

Extensions

a(5) from Giovanni Resta, Apr 13 2020

A307666 Number of partitions of n into consecutive positive triangular numbers.

Original entry on oeis.org

1, 0, 1, 1, 0, 1, 0, 0, 1, 2, 0, 0, 0, 0, 1, 1, 0, 0, 1, 1, 1, 0, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 1, 2, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 1, 0, 0, 2, 1, 0, 0, 0, 0, 0, 0, 0, 2, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 1, 0, 1, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 2
Offset: 1

Views

Author

Ilya Gutkovskiy, Apr 20 2019

Keywords

Comments

Equivalently, number of ways n can be expressed as the difference between two tetrahedral numbers. - Charlie Neder, Apr 24 2019
Records: a(10)=2, a(2180)=3, a(10053736)=4. - Robert Israel, Aug 20 2019

Examples

			10 = 1 + 3 + 6, so a(10) = 2.
		

Crossrefs

Programs

  • Maple
    N:= 100:
    V:= Vector(N):
    for i from 1 while i*(i+1)/2 <= N do
      s:= i*(i+1)*(i+2)/6;
      for j from i-1 to 0 by -1 do
        t:= j*(j+1)*(j+2)/6;
        if s-t > N then break fi;
        V[s-t]:= V[s-t]+1
      od;
    od:
    convert(V,list); # Robert Israel, Aug 20 2019

Formula

G.f.: Sum_{i>=1} Sum_{j>=i} Product_{k=i..j} x^(k*(k+1)/2).
Showing 1-2 of 2 results.