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.

A104435 Number of ways to split 1, 2, 3, ..., 2n into 2 arithmetic progressions each with n terms.

Original entry on oeis.org

1, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2
Offset: 1

Views

Author

Jonas Wallgren, Mar 17 2005

Keywords

Comments

The common difference in an arithmetic progression must be a positive integer. - David A. Corneth, Apr 14 2024

Examples

			From _R. J. Mathar_, Apr 14 2024: (Start)
a(2)=3 offers 3 ways of splitting (1,2,3,4): {(1,2),(3,4)}, {(1,3),(2,4)}, {(1,4),(2,3)}.
a(n)=2 for n>=3 because there are at least the two ways of splitting (1,2,..,2n) into the even and odd numbers. (End)
		

Crossrefs

Programs

Formula

a(1) = 1, a(2) = 3, a(n) = 2 for n >= 3. Proof of the latter: if the common difference in an arithmetic progression, starting with a number at least 1, is at least 3 then the largest term in that arithmetic progression is at least 1 + 3*(n-1) = 3*n - 2. But 3*n - 2 > 2*n for n > 2. - David A. Corneth, Apr 14 2024
G.f.: x*(1 + 2*x - x^2)/(1 - x). - Stefano Spezia, Apr 14 2024

Extensions

More terms from David A. Corneth, Apr 14 2024