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

A136107 Number of representations of n as the difference of two positive triangular numbers.

Original entry on oeis.org

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

Views

Author

Keywords

Comments

a(n) is also the number of partitions of n into consecutive parts greater than 1. - Omar E. Pol, Feb 07 2022
a(n) is the number of solutions of the equations 2(x-1)y-(x-3)x=2(n+1) for 0A351284; y-values in A351285. Also the number of times n+1 appears in A351153. - Stefano Spezia, Feb 12 2022
Equivalence with Stefano Spezia solutions: The equation 2(x-1)y-(x-3)x=2(n+1) can be rewritten (y+1-x/2)(x+1)=n; proof by solving both for y. So solutions factorize n, and since x+1 must be an integer and y+1-x/2 must be an integer, x must be even. So (x+1)|n means we are looking for odd divisors of n, which is the A001227 term of the Alekseyev formula. The correction by A010054 in the Alekseyev formula means: if n is a triangular number, the solution x=y+1 where x>y is not counted by Spezia. - R. J. Mathar, Feb 12 2022

Examples

			a(2) = 1 because 3 - 1 = 2,
a(5) = 2 because 6 - 1 = 15 - 10 = 5,
a(9) = 3 because 10 - 1 = 15 - 6 = 45 - 36 = 9, etc.
For n = 21 the four partitions of 21 into consecutive parts are [21], [11, 10], [8, 7, 6] and [6, 5, 4, 3, 2, 1]. The last partition contains 1 as a part, hence there are only three partitions of 21 into consecutive parts whose parts are greater than 1, so a(21) = 3. - _Omar E. Pol_, Feb 07 2022
		

Crossrefs

Programs

  • Mathematica
    f[n_] := Block[{c = 0, k = 1}, While[k < n, If[ IntegerQ[ Sqrt[8 n + 4 k (k + 1) + 1]], c++ ]; k++ ]; c]; Table[f@n, {n, 105}]
  • PARI
    a(n) = numdiv(n>>valuation(n, 2)) - ispolygonal(n, 3); \\ Michel Marcus, Jan 08 2024

Formula

G.f.: Sum_{n>=1} x^((n^2+3*n)/2)/(1-x^n). - Vladeta Jovovic, May 13 2008
a(n) = A001227(n) - A010054(n). - Max Alekseyev, May 13 2009

A334077 a(n) is the smallest positive integer that can be expressed as the difference of two positive triangular numbers in at least n ways.

Original entry on oeis.org

2, 5, 9, 27, 45, 63, 105, 135, 225, 315, 315, 315, 945, 945, 945, 945, 1575, 1575, 2835, 2835, 3465, 3465, 3465, 3465, 10395, 10395, 10395, 10395, 10395, 10395, 10395, 10395, 17325, 17325, 17325, 17325, 31185, 31185, 31185, 31185, 45045, 45045, 45045, 45045
Offset: 1

Views

Author

Ilya Gutkovskiy, Apr 13 2020

Keywords

Crossrefs

A368076 a(n) is the least integer that can be expressed as the difference of two positive tetrahedral numbers in exactly n ways.

Original entry on oeis.org

3, 36, 2180, 10053736
Offset: 1

Views

Author

Ilya Gutkovskiy, Dec 10 2023

Keywords

Comments

Index of first occurrence of n in A368072.

Examples

			a(2) = 36: 36 = 56 - 20 = 120 - 84.
		

Crossrefs

Showing 1-3 of 3 results.