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.

A243224 Number of odd divisors d of n such that d > 1 and d(1+d/3)/2 <= n <= 3d(d-1)/2.

Original entry on oeis.org

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

Views

Author

Jean-Christophe Hervé, Jun 01 2014

Keywords

Comments

This sequence is useful for computing A243223, the number of partitions of n into summands in arithmetic progression with common difference 3. The definition follows Nyblom and Evans 2003 (see LINK) with slight modifications and corrections.

Examples

			a(6) = 1 because 3, the unique odd divisor > 1 of 6 satisfies 3(1+3/3)/2 <= 6 <= 3.3(3-1)/2.
		

Crossrefs

Cf. A243223.

Programs

  • PARI
    a(n) = sumdiv(n, d, (d > 1) && (d % 2) && (d*(1+d/3)/2 <= n) && (n <= 3*d*(d-1)/2)); \\ Michel Marcus, Jun 02 2014

A243225 Numbers which are not the sum of positive integers in an arithmetic progression with common difference 3.

Original entry on oeis.org

1, 2, 3, 4, 6, 8, 10, 14, 16, 20, 28, 32, 44, 52, 56, 64, 68, 76, 88, 104, 128, 136, 152, 184, 208, 232, 248, 256, 272, 296, 304, 328, 344, 368, 464, 496, 512, 592, 656, 688, 736, 752, 848, 928, 944, 976, 992, 1024, 1072, 1136, 1168, 1184, 1264, 1312, 1328, 1376, 1424, 1504, 1696, 1888
Offset: 1

Views

Author

Jean-Christophe Hervé, Jun 01 2014

Keywords

Comments

Also numbers which are not of the form n = (r+1)(2a+3r)/2 for any positive integers r and a >= 1.
Except a(3) = 3, these are the powers of 2 and the products of a power of two 2^k with an odd prime p such that 1+2^(k+1)/3 <= p <= 3(2^(k+1)-1). For example, 20 is in the sequence as 20 = 2^2*5 and 1+2^3/3 <= 5 <= 3(2^3-1).
The equivalent sequence for arithmetic progressions with a common difference of 2 is A000040, the prime numbers (i.e., the numbers > 1 which are not sum of positive integers in arithmetic progression with a common difference 2 are exactly the primes).

Examples

			5 is not in the sequence because 5 = 1+4.
		

Crossrefs

Cf. A243223.

Formula

A243223(a(n)) = 0.
Showing 1-2 of 2 results.