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.

A087908 Largest integer not expressible as a nonnegative linear combination of n and n^2 + 1.

Original entry on oeis.org

-1, 3, 17, 47, 99, 179, 293, 447, 647, 899, 1209, 1583, 2027, 2547, 3149, 3839, 4623, 5507, 6497, 7599, 8819, 10163, 11637, 13247, 14999, 16899, 18953, 21167, 23547, 26099
Offset: 1

Views

Author

John W. Layman, Oct 15 2003

Keywords

Examples

			For n=2, we have to consider nonnegative linear combinations of 2 and 5. Now 3 is not such a combination, but 4=2*2 and 5=1*5 and any positive integer greater than 3 is of the form 2a+b where a and b are nonnegative integers with b equal to 4 or 5. Therefore a(2)=3.
		

Crossrefs

Cf. A064808.

Programs

Formula

a(n) = n^3 - n^2 - 1. [This follows from the well-known fact that the largest integer not expressible as a nonnegative linear combination of a and b is the number ab-a-b. - Matthias Beck (beck(AT)math.sfsu.edu), Sep 22 2005]
a(1)=-1, a(2)=3, a(3)=17, a(4)=47; for n>4, a(n) = 4*a(n-1) - 6*a(n-2) + 4*a(n-3) - a(n-4). - Harvey P. Dale, Jul 19 2011
G.f.: x*(x*((x-1)*x+7)-1)/(x-1)^4. - Harvey P. Dale, Jul 19 2011
a(n) = (n-1)*A064808(n) - n*A064808(n-1). [Bruno Berselli, May 19 2015]