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.

A338021 Number of partitions of n into two parts (s,t) such that s <= t and t | s*n.

Original entry on oeis.org

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

Views

Author

Wesley Ivan Hurt, Oct 06 2020

Keywords

Examples

			a(6) = 2; The partitions of 6 into 2 parts are (1,5), (2,4) and (3,3). Since 4 | 2*6 = 12 and 3 | 3*6 = 18, we have two such partitions.
		

Crossrefs

Cf. also A337101, A338117.

Programs

Formula

a(n) = Sum_{i=1..floor(n/2)} (1 - ceiling(n*i/(n-i)) + floor(n*i/(n-i))).

Extensions

Data section extended up to 105 terms by Antti Karttunen, Dec 12 2021