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.

Previous Showing 11-17 of 17 results.

A242443 Number of ways of writing n, a positive integer, as an unordered sum of a triangular number (A000217), an even square (A016742) and a generalized pentagonal number (A001318).

Original entry on oeis.org

1, 1, 2, 1, 2, 3, 3, 4, 1, 4, 3, 4, 2, 2, 5, 3, 5, 3, 5, 4, 5, 7, 3, 4, 4, 6, 6, 4, 6, 3, 5, 7, 6, 4, 1, 7, 7, 6, 5, 6, 9, 5, 7, 7, 8, 6, 8, 4, 6, 6, 7, 9, 4, 10, 3, 6, 9, 7, 8, 5, 9, 7, 6, 7, 5, 11, 9, 7, 3, 7, 12, 13, 7, 7, 6, 9, 11, 6, 11, 8, 7, 10, 10, 8, 8, 8, 11, 5, 8, 5, 8, 11, 10, 10, 6, 14, 10, 6, 7, 7
Offset: 1

Views

Author

Robert G. Wilson v, May 14 2014

Keywords

Comments

It is conjectured (1.1) and then proved by theorem 1.2 that all positive integers can be so represented [Sun, pp. 4-5].

Crossrefs

Programs

  • Mathematica
    planeFigurative[n_, r_] := pf[n, r] = (n - 2) Binomial[r, 2] + r; s = Sort@ Table[ planeFigurative[3, i] + planeFigurative[3, j] + planeFigurative[3, k], {i, 0, 14}, {j, 0, 10, 2}, {k, -8, 8}]; Table[ Count[s, n], {n, 0, 50}]

A347627 Number of partitions of n into at most 4 triangular numbers.

Original entry on oeis.org

1, 1, 1, 2, 2, 1, 3, 2, 2, 3, 3, 2, 4, 4, 2, 4, 4, 3, 5, 4, 3, 5, 6, 4, 6, 4, 4, 6, 6, 4, 6, 8, 5, 7, 6, 4, 8, 8, 6, 6, 8, 6, 8, 8, 6, 9, 9, 6, 10, 9, 6, 10, 10, 6, 8, 10, 7, 11, 13, 8, 9, 10, 10, 10, 10, 7, 13, 14, 9, 10, 10, 10, 13, 14, 8, 10
Offset: 0

Views

Author

Ilya Gutkovskiy, Sep 09 2021

Keywords

Crossrefs

A357071 Number of partitions of n into at most 3 distinct positive triangular numbers.

Original entry on oeis.org

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

Views

Author

Ilya Gutkovskiy, Oct 25 2022

Keywords

Crossrefs

A167618 Convolution of A010054 with A052343.

Original entry on oeis.org

1, 2, 2, 3, 3, 2, 4, 5, 2, 4, 5, 3, 6, 5, 3, 4, 8, 5, 4, 6, 2, 9, 8, 4, 6, 6, 5, 7, 8, 3, 8, 11, 6, 4, 8, 5, 7, 12, 5, 9, 7, 5, 10, 8, 6, 8, 12, 5, 9, 12, 3, 10, 14, 3, 6, 8, 10, 14, 11, 8, 6, 14, 5, 7, 9, 8, 15, 14, 5, 6, 14, 8, 13, 11, 6, 9, 15, 8, 8, 15, 5, 12, 17, 6, 15, 8, 8, 16, 9, 6, 7, 19, 8, 15
Offset: 0

Views

Author

Reinhard Zumkeller, Nov 07 2009

Keywords

Comments

a(n) = SUM(A010054(k)*A052343(n-k): 0<=k<=n);
A002636(n) <= a(n).

A347628 Number of partitions of n into at most 6 triangular numbers.

Original entry on oeis.org

1, 1, 1, 2, 2, 2, 4, 3, 3, 4, 5, 4, 6, 6, 5, 8, 8, 6, 9, 9, 8, 11, 11, 9, 13, 13, 11, 13, 15, 12, 17, 17, 14, 19, 19, 16, 20, 21, 18, 22, 24, 19, 25, 26, 22, 26, 29, 24, 30, 31, 26, 33, 34, 28, 33, 36, 30, 37, 40, 33, 41, 43, 36, 40, 45, 38
Offset: 0

Views

Author

Ilya Gutkovskiy, Sep 09 2021

Keywords

Crossrefs

A176661 Partial sums of A061262.

Original entry on oeis.org

0, 3, 15, 36, 88, 145, 236, 357, 493, 704, 896, 1122, 1531, 1862, 2229, 2635, 3146, 3653, 4539, 5176, 5948, 6669, 7540, 8492, 9594, 10660, 11887, 13079, 14720, 16341, 17737, 19118, 20619, 22351, 24143, 26070, 28012, 30413, 33024, 35575, 37997
Offset: 0

Views

Author

Jonathan Vos Post, Apr 23 2010

Keywords

Comments

Partial sums of smallest number representable as the sum of 3 triangular numbers in exactly n ways. The subsequence of triangular numbers in the partial sum begins: 3, 15, 36. The subsequence of primes in the partial sum begins: 3, 1531, 11887, 17737, 37997, 43441.

Examples

			a(13) = 0 + 3 + 12 + 21 + 52 + 57 + 91 + 121 + 136 + 211 + 192 + 226 + 409 = 1531 is prime.
		

Crossrefs

Formula

a(n) = SUM[i=0..n] A061262(i).

A331753 Let m(k) be the index of the largest triangular number <= k; then a(n) is the smallest number k that can be written as the sum of three triangular numbers if the largest is the (m(k)-n)-th triangular number, but no larger.

Original entry on oeis.org

20, 50, 176, 110, 578, 614, 1163, 1070, 5135, 9503, 14648, 7928, 6035, 18653, 22130, 119204, 18128, 68258, 57335, 304799, 84725, 1024532, 215928, 692858, 688850, 637853, 736835, 1406105, 1801547, 1987469, 3673403, 654155, 8576861, 808718, 810146, 21515948
Offset: 1

Views

Author

Jon E. Schoenfield, Feb 02 2020

Keywords

Comments

Fermat asserted, and Gauss proved, that every number is the sum of three triangular numbers (cf. A002636).
For exactly half of the integers k in 1..11898, decomposing k into triangular numbers by the greedy algorithm (i.e., letting T1 be the largest triangular number <= k, then letting T2 be the largest triangular number <= k-T1, etc.) yields a decomposition of k into three or fewer positive triangular numbers, but for any K > 11898, the greedy algorithm decomposes more than half of the integers k in 1..K into four or more positive triangular numbers.
Even an approach that assigns only T1 "greedily" but allows T2 to be any triangular number will usually not yield a set of three triangular numbers whose sum is k: for more than half of the integers k in 1..K for any K > 40304762, no such sum exists in which the largest of the three triangular numbers is the largest triangular number <= k. The smallest such k is a(1)=20 (see Example section).
For some values of k, there exists no set of three triangular numbers summing to k unless the largest of the three is neither T(m(k)) nor T(m(k)-1); the smallest of these is a(2)=50, for which a solution to T(m(k)-2) + T2 + T3 = k does exist (see Example section).

Examples

			The largest triangular number <= 20 is T(5) = 5*6/2 = 15, and 20 cannot be expressed as the sum of 3 triangular numbers T1 + T2 + T3 if T1=15, but at T1 = T(5-1) = T(4) = 4*5/2 = 10, 20 can be expressed as T(4) + T(4) + T(0) = 10 + 10 + 0, and 20 is the smallest number with this property, so a(1)=20.
The largest triangular number <= 50 is T(9) = 9*10/2 = 45, and 50 can be expressed as T1 + T2 + T3 neither with T1 = T(9) = 45 nor with T1 = T(9-1) = T(8) = 36; however, at T1 = T(9-2) = T(7) = 28, 50 can be expressed as T(7) + T(6) + T(1) = 28 + 21 + 1, and 50 is the smallest number with this property, so a(2)=50.
		

Crossrefs

Cf. A000217 (triangular numbers), A002636 (number of ways of writing n as an unordered sum of at most 3 nonzero triangular numbers), A006893 (smallest number whose greedy decomposition uses n triangular numbers).
Previous Showing 11-17 of 17 results.